[ad_1]
If you wish to guarantee that your code adopts Swift concurrency as accurately as potential in Swift 5.7, it is a good suggestion so as to add the -warn-concurrency compiler flag to your challenge’s construct settings.
To do that, choose your challenge’s goal and navigate to the Construct Settings tab. Ensure you choose All from the listing of settings that’s proven (Fundamental is the default) and kind Different Swift within the searchbar to search out the Different Swift Flags construct settings. Double click on on the empty house beneath your app title and hit the + button within the popup that is offered. Kind -warn-concurrency, and hit enter.
The screenshot beneath reveals all of the related elements so that you can see:

You’ve got now succesfully enabled a stricter set of compiler checks in your concurrency code that may, for instance, produce warnings in your code that touches Sendable in a extra correct method. This lets you modify your code now, relatively than when a few of these warnings turn out to be errors in Swift 6.
[ad_2]
