How to hide the home indicator - SwiftUI
iOS 16+
To Hide Bottom home indicator line on SwiftUI use .persistentSystemOverlays(.hidden)
. It also support animation. First it will show dark & turns to light gray with animation.
struct ContentView: View {
var body: some View {
Text("iPhone Home Indicator is Hidden")
.persistentSystemOverlays(.hidden)
}
}