{"repo":"markbattistella/BezelKit","free":true,"listed":false,"github":"https://github.com/markbattistella/BezelKit","clone":"git clone https://github.com/markbattistella/BezelKit.git","description":"BezelKit is a Swift package designed to simplify the process of accessing device-specific bezel sizes in apps. Knowing the exact bezel size can be crucial for aligning UI elements, creating immersive experiences, or when you need pixel-perfect design layouts.","language":"Swift","stars":113,"topics":["corner-radius","package-manager","swift","swift-package-manager","swiftui","ui-design","hacktoberfest","open-source","ios","macos"],"license":"MIT","category":"mobile-apps","readme_excerpt":"BezelKit Perfecting Corners, One Radius at a Time Overview BezelKit is a Swift package designed to simplify the process of accessing device-specific bezel sizes in apps. Knowing the exact bezel size can be crucial for aligning UI elements, creating immersive experiences, or when you need pixel-perfect design layouts. By providing an easy-to-use API, BezelKit allows developers to focus more on their app's functionality rather than wrestling with device metrics. Rationale Quick summary - There is no public API from Apple for fetching device bezel sizes - Using the internal API can jeopardise App Store eligibility - Static bezel values can cause UI distortions across devices - BezelKit offers an easy-to-use solution for accurate bezel metrics Longer explanation Apple currently does not offer a public API for fetching the bezel radius of its devices. Although an internal API exists, using it jeopardises the app's eligibility for the App Store — a risk that's not justifiable for a mere UI element. Another consideration stems from the variability in screen bezel dimensions across different Apple devices. Setting a static bezel value is problematic for several reasons: 1. If the actual bezel radius is smaller or larger than the static value, the UI corners will appear disproportionately thick or thin. 2. On older devices or those with square screens, such as the SE models, the display will inaccurately feature curved corners when it should not. While Apple has provided the Container","default_branch":null,"files":null,"tree":[],"storefront":"/r/markbattistella","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/markbattistella/BezelKit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}