We also have a false positive warning, it looks like a compiler bug. The warning refers to the second parameter which is of type URLSessionTaskDelegate, we can’t see it here because it is nil by default, it would look like this if the second parameter didn't have a default value:
Even though we pass nil here, it complains that we are passing a non-sendable argument. So I'll leave this one as is for now. Let's see if this will be fixed in the next Swift version.
Closes part of #136
Description
Fixes these warnings:
We also have a false positive warning, it looks like a compiler bug. The warning refers to the second parameter which is of type
URLSessionTaskDelegate
, we can’t see it here because it is nil by default, it would look like this if the second parameter didn't have a default value:Even though we pass nil here, it complains that we are passing a non-sendable argument. So I'll leave this one as is for now. Let's see if this will be fixed in the next Swift version.
Testing Steps
Demo app > Display remote SVG