bolsinga / site

SwiftUI Package to display Shows
https://www.bolsinga.com
3 stars 1 forks source link

Use @preconcurrency CoreLocation #665

Closed bolsinga closed 11 months ago

bolsinga commented 11 months ago

Fixes:

/Users/bolsinga/Documents/code/git/site/Sources/Site/Music/UI/MusicDestinationModifier.swift:25:37: warning: non-sendable type 'CLPlacemark' returned by implicitly asynchronous call to actor-isolated function cannot cross actor boundary
              try await vault.atlas.geocode($0.venue)
                                    ^
CoreLocation.CLPlacemark:2:12: note: class 'CLPlacemark' does not conform to the 'Sendable' protocol
open class CLPlacemark : NSObject, NSCopying, NSSecureCoding {
           ^
/Users/bolsinga/Documents/code/git/site/Sources/Site/Music/UI/MusicDestinationModifier.swift:8:2: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreLocation'
 import CoreLocation
 ^
 @preconcurrency