News
Entertainment
Science & Technology
Life
Culture & Art
Hobbies
News
Entertainment
Science & Technology
Culture & Art
Hobbies
14 | Follower
If you call SwiftUI’s <code>task</code> modifier inside a view’s <code>body</code> property, the async operation will run on the main actor. However, this isn’t the case if you call <code>task</code> from a helper property or function that isn’t main-actor-annotated. Why?
Mac apps built with Xcode 14.0 and 14.0.1 may contain concurrency bugs because the Swift 5.7 compiler can generate invalid code when targeting the macOS 12 SDK. If you distribute Mac apps, you should build them with Xcode 13.4.1 until Xcode 14.1 is released.
SwiftUI views and view modifiers can be divided into “rendering“ and “non-rendering” groups. The position of the `animation` modifier with respect to non-rendering modifiers is irrelevant for the question if a change gets animated or not.