Post

Replies

Boosts

Views

Activity

Reply to Can I use async/await under iOS15.0?
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.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’21
Reply to Refreshable lists with 2 columns
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() }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Refreshable lists with 2 columns
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?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to Can I use async/await under iOS15.0?
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.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’21
Reply to await call in didSet block
I just figured it out that it works like this: didSet { async { await pinPosition() } }
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Jun ’21