You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After I update the library to last version
this parts that I don't now how to update
private struct PullToRefresh: UIViewRepresentable {
}
private struct PullToRefreshIOS16: UIViewRepresentable {
}
extension View {
public func PullToRefresh(onRefresh: @escaping () -> Void) -> some View {
return overlay {
if #available(iOS 16.0, *) {
PullToRefreshIOS16(onRefresh: onRefresh)
.frame(width: 0, height: 0)
} else {
PullToRefresh(onRefresh: onRefresh)
.frame(width: 0, height: 0)
}
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions