
Two keywords that turn actor isolation from a wall into a precision tool. nonisolated opts a member out of isolation (useful for computed properties that read only constants, and for fixing delegate crashes from CLLocationManager and similar). isolated on a function parameter makes the function run directly on whatever actor you pass in. transaction closure pattern with isolated parameter lets you group multiple operations without multiple suspension points. #isolation captures caller isolation automatically. nonisolated(unsafe) is a migration escape hatch for legacy globals. isolated deinit in Swift 6.2. And the shift from nonisolated async always hopping away to nonisolated(nonsending) vs @concurrent.
Khoa Pham is a Senior iOS and Web Developer at DNB in Oslo, Norway, where he works on Mobilbank and Spare. He has been developing iOS apps since 2016, formerly at Shortcut AS working on the Cutters app, and at Hyper Interaktiv AS where he built apps including Cubus Friends, BikBok Life, Atea Community, TINE Handel, Displom Is Bilen, Motimate, MyCubus, and TINE Jakten. He also built the Grete Roede app using React Native. Khoa contributes to open source and shares his knowledge on his website onmyway133.com. His philosophy is simple: what you don't know is what you haven't learned.