Migrating to the Swift 6 language mode
mainThe Swift 6 language mode enables strict compiler safety checks to guarantee that concurrent programs are free of data races. This mode is opt-in and can be enabled on a per-target basis, allowing for incremental migration.
It is important to distinguish between the compiler version and the language mode. The Swift 6 compiler supports four distinct language modes:
6(Full Swift 6 safety checks)54.24
Targets using previous language modes or code in other languages can interoperate with modules migrated to the Swift 6 language mode.