mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 04:04:07 +00:00
Disable RefreshControl on iOS 16
Causes crashes
This commit is contained in:
@@ -17,7 +17,10 @@ struct RefreshControlModifier: ViewModifier {
|
||||
}
|
||||
|
||||
func body(content: Content) -> some View {
|
||||
content
|
||||
if #available(iOS 16.0, macOS 13.0, tvOS 16.0, *) {
|
||||
return content
|
||||
} else {
|
||||
return content
|
||||
.background(
|
||||
GeometryReader { geometry in
|
||||
ScrollViewMatcher(
|
||||
@@ -33,6 +36,7 @@ struct RefreshControlModifier: ViewModifier {
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension View {
|
||||
|
Reference in New Issue
Block a user