It looks like the LazyVGrid is what I need to have for the columns, unfortunately the refreshable modifier is not working. Is it a bug or the refreshable modifier is available only on lists?
Post
Replies
Boosts
Views
Activity
this is my implementation so far :)
ScrollView {
LazyVGrid(columns: columns) {
ForEach(self.model.data) { feature in
FeatureRow(feature: feature, cover: feature.firstPicture)
}
}
}.refreshable {
self.load()
}
.onAppear {
self.load()
}
Yes... I also tried this earlier and it looks like you can only use this features only on the new beta operating systems. It's a shame... I don't see why async/await is binded to the os. I think this is just a swift feature hidden under some os version flags. I wonder if the apple developers can come with more details why can't we use this in for eg. ios14.
Probably it will take at least one year until it will be widely adopted. I guess this is how apple forces us to constantly update our software stack.
I just figured it out that it works like this:
didSet {
async {
await pinPosition()
}
}