WWDC22 SALE: Save 50% on all my Swift books and bundles! >>

To notch or not to notch? NotchKit can help you decide.

Try out both options and see what looks best

Paul Hudson       @twostraws

Enterprising WWDC 2017 scholar Harshil Shah has created a framework that lets you simulate how your app could look on iPhone X if you wanted to try ignoring the notch.

His project, NotchKit, “is a simple way to hide the notch on the iPhone X and create a card-like interface for your apps,” and works by subclassing UIWindow so that you can choose to make apps that #EmbraceTheNotch or ignore it entirely if you prefer.

Shah makes it clear that Apple’s human interface guidelines ask developers not to try to hide the sensor housing, but much more interesting is his rationale for sharing his work:

It only took me a couple of days using the simulator to realise that embracing the notch is the way forward. My intention with open-sourcing this was to make it easier for others to reach that conclusion as well.

If you’re still on the fence about the notch – Notch or Not, as it were – perhaps you should give his framework a try and decide for yourself.

Link: NotchKit on GitHub

Hacking with Swift is sponsored by RevenueCat

SPONSORED You know StoreKit, but you don’t want to do StoreKit. RevenueCat makes it easy to deploy, manage, and analyze in-app subscriptions on iOS and Android so you can focus on building your app.

Explore the docs

Sponsor Hacking with Swift and reach the world's largest Swift community!

Buy Pro Swift Buy Swift Design Patterns Buy Testing Swift Buy Hacking with iOS Buy Swift Coding Challenges Buy Swift on Sundays Volume One Buy Server-Side Swift (Vapor Edition) Buy Advanced iOS Volume One Buy Advanced iOS Volume Two Buy Advanced iOS Volume Three Buy Hacking with watchOS Buy Hacking with tvOS Buy Hacking with macOS Buy Dive Into SpriteKit Buy Swift in Sixty Seconds Buy Objective-C for Swift Developers Buy Server-Side Swift (Kitura Edition) Buy Beyond Code

About the author

Paul Hudson is the creator of Hacking with Swift, the most comprehensive series of Swift books in the world. He's also the editor of Swift Developer News, the maintainer of the Swift Knowledge Base, and a speaker at Swift events around the world. If you're curious you can learn more here.

Was this page useful? Let us know!

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.