mirror of
https://github.com/yattee/yattee.git
synced 2024-12-14 06:10:32 +05:30
Disable RefreshControl on iOS 16
Causes crashes
This commit is contained in:
parent
b82d68db8b
commit
950a4459e8
@ -17,7 +17,10 @@ struct RefreshControlModifier: ViewModifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func body(content: Content) -> some View {
|
func body(content: Content) -> some View {
|
||||||
content
|
if #available(iOS 16.0, macOS 13.0, tvOS 16.0, *) {
|
||||||
|
return content
|
||||||
|
} else {
|
||||||
|
return content
|
||||||
.background(
|
.background(
|
||||||
GeometryReader { geometry in
|
GeometryReader { geometry in
|
||||||
ScrollViewMatcher(
|
ScrollViewMatcher(
|
||||||
@ -34,6 +37,7 @@ struct RefreshControlModifier: ViewModifier {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
extension View {
|
extension View {
|
||||||
func refreshControl(onValueChanged: @escaping (_ refreshControl: UIRefreshControl) -> Void) -> some View {
|
func refreshControl(onValueChanged: @escaping (_ refreshControl: UIRefreshControl) -> Void) -> some View {
|
||||||
|
Loading…
Reference in New Issue
Block a user