SwiftUI Weekly - Issue #209
Yielding and debouncing in Swift ConcurrencyI decided to continue the topic of Swift Concurrency to cover some not-obvious things. This week we will talk about task yielding and debouncing. Swift concurrency language features provide us with two simple but very powerful functions: yield and sleep. We will try to learn how and when to use them. Designing a custom lazy list in SwiftUI with better performanceMac apps often need to handle large datasets efficiently, but SwiftUI’s standard SwiftUI Phase Animation "Bug"I noticed that phase animators weren’t behaving as expected, and I initially assumed I’d found a bug in SwiftUI. It took me way too long to realize the problem here, that’s why I am writing this up. Spoiler alert: there is no bug . Symmetrical and asymmetrical transitions in SwiftUI with the Scroll Transition modifierLearn how to implement animated scroll transitions when the view enters and exits the visible area in a SwiftUI application. Tapping on Stack ViewsA quick tip on using the contentShape view modifier to solve a SwiftUI gesture problem that often catches me out. |