
[iOS/Swift] Say Hello to Swift 6.2, WWDC25

ยท
learnings/Swift
(ํฌ์คํ
๋ด์ฉ ์ธ ๋ง์ ๊ธฐ๋ฅ์ด ์ถ๊ฐ๋์๊ณ , ๋ณ๊ฒฝ๋์ต๋๋ค.)New Feature in ConcurrencyDefault Actor Inference; ๊ธฐ๋ณธ ์กํฐ ์ถ๋ก ; SE-466Swift 6.2๋ถํฐ ๊ธฐ๋ณธ์ ์ผ๋ก ๊ฐ์ฒด๋ฅผ Main Actor๋ก ์ถ๋ก ํฉ๋๋ค.SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor defaults// As-is@MainActorclass DataController { func load() { } func save() { }}struct App { let controller = DataController() init() { controller.load() }}// To-be// ์ด์ ๋ชจ๋ ๊ฐ์ฒด๋ ๊ธฐ๋ณธ์ ์ผ๋ก Global Acto..