chris-swift-dev/AdvancedList

Could it 'Pull to refresh' first page?

Closed this issue · 5 comments

Could it 'Pull to refresh' first page?

Thanks!

@hxgdzyuyi Thanks. But it is New in iOS 15.

How to refresh in iOS 13/14?

https://developer.apple.com/forums/thread/654432


Not everything is available in SwiftUI yet cc @rushairer

Hey ho,

just a short reminder: nearly all devices running iOS 13 can be upgraded to iOS 15.

You can simply attach the new refreshable modifier to the AdvancedList:

if #available(iOS 15, macOS 12, tvOS 15, *) {
    yourAdvancedList
    .refreshable {
        ...
    }
} else {
    yourAdvancedList
}

@crelies thanks