mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 06:49:12 +00:00
viewmodifier for backwards compat
This commit is contained in:
@@ -63,3 +63,13 @@ struct navigationInlineLarge: ViewModifier {
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
struct presentationSizeForm: ViewModifier {
|
||||
func body(content: Content) -> some View {
|
||||
if #available(iOS 18, macOS 15, *) {
|
||||
content.presentationSizing(.form)
|
||||
} else {
|
||||
content
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user