Xcode – Swift concurrency warning. The compiler warns that my concurrent code will not compile in Swift 6 but all the variables are local
I want to try concurrent processing of an array for the first time. The compiler gives this warning: "Mutation of captured var 'scaledImage' in concurrently-executing code; this is an error in Swift 6". I then revised the code by copying…