SwiftUI 4 and iOS 16 introduce the `persistentSystemOverlays` view modifier, which provides a clean way to hide the home indicator on Face ID-based iPhone and iPad devices. Previously this required UIKit-based workarounds. The post shows a simple usage example and also provides a backward-compatible view extension that safely applies the modifier only when running on iOS 16+, with an additional compiler version check for projects that still need to build with Xcode 13.

3m read timeFrom danielsaidi.com
Post cover image
1 Impression