Hide home indicator

This commit is contained in:
Arkadiusz Fal
2022-06-22 00:18:16 +02:00
parent 13208a4444
commit c0f395b2df
6 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import SwiftUI
extension Backport where Content: View {
@ViewBuilder func persistentSystemOverlays(_ visible: Bool) -> some View {
if #available(iOS 16.0, macOS 13.0, tvOS 16.0, *) {
content.persistentSystemOverlays(visible ? .visible : .hidden)
} else {
content
}
}
}