Build Information
Failed to build LPMapView, reference main (f600c5
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 05:13:08 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:222:46: error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
10 |
11 | @available(iOS 16.0, *)
12 | public struct MapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
220 | // MARK: - Methods
221 |
222 | private func preferredConfiguration() -> MKMapConfiguration {
| | `- error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing instance method
223 | let preferredConfig: MKMapConfiguration
224 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:242:59: error: cannot find type 'UILongPressGestureRecognizer' in scope
240 | }
241 |
242 | private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
| `- error: cannot find type 'UILongPressGestureRecognizer' in scope
243 | UILongPressGestureRecognizer(
244 | target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:242:47: error: cannot find type 'Context' in scope
240 | }
241 |
242 | private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
| `- error: cannot find type 'Context' in scope
243 | UILongPressGestureRecognizer(
244 | target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:12:24: error: cannot find type 'UIViewRepresentable' in scope
10 |
11 | @available(iOS 16.0, *)
12 | public struct MapView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
13 | public typealias UIViewType = MKMapView
14 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:153:28: error: 'nil' requires a contextual type
151 | self.userTrackingMode = userTrackingMode
152 | self.onSelection = onSelection
153 | self.onLongPress = nil
| `- error: 'nil' requires a contextual type
154 | self.userLocationChanged = userLocationChanged
155 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:164:17: error: 'userTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS 16.0, *)
12 | public struct MapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
157 | // MARK: - UIViewRepresentable
158 |
159 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add @available attribute to enclosing instance method
160 | let mapView = MKMapView()
161 | mapView.delegate = context.coordinator
162 | mapView.setRegion(region, animated: animated)
163 | mapView.showsUserLocation = showsUserLocation
164 | mapView.userTrackingMode = userTrackingMode
| |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
165 | mapView.selectableMapFeatures = selectableFeatures
166 | mapView.isZoomEnabled = zoomEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:165:17: error: value of type 'MKMapView' has no member 'selectableMapFeatures'
163 | mapView.showsUserLocation = showsUserLocation
164 | mapView.userTrackingMode = userTrackingMode
165 | mapView.selectableMapFeatures = selectableFeatures
| `- error: value of type 'MKMapView' has no member 'selectableMapFeatures'
166 | mapView.isZoomEnabled = zoomEnabled
167 | mapView.isScrollEnabled = scrollEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:171:17: error: 'preferredConfiguration' is only available in macOS 13.0 or newer
10 |
11 | @available(iOS 16.0, *)
12 | public struct MapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
157 | // MARK: - UIViewRepresentable
158 |
159 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add @available attribute to enclosing instance method
160 | let mapView = MKMapView()
161 | mapView.delegate = context.coordinator
:
169 | mapView.isRotateEnabled = rotateEnabled
170 |
171 | mapView.preferredConfiguration = preferredConfiguration()
| |- error: 'preferredConfiguration' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
172 | mapView.addGestureRecognizer(longPressGesture(in: context))
173 | return mapView
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:160:23: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
157 | // MARK: - UIViewRepresentable
158 |
159 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
160 | let mapView = MKMapView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
161 | mapView.delegate = context.coordinator
162 | mapView.setRegion(region, animated: animated)
MapKit.MKMapView:125:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
123 | public init(frame frameRect: NSRect)
124 | public init?(coder: NSCoder)
125 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:162:17: warning: call to main actor-isolated instance method 'setRegion(_:animated:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
157 | // MARK: - UIViewRepresentable
158 |
159 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
160 | let mapView = MKMapView()
161 | mapView.delegate = context.coordinator
162 | mapView.setRegion(region, animated: animated)
| `- warning: call to main actor-isolated instance method 'setRegion(_:animated:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
163 | mapView.showsUserLocation = showsUserLocation
164 | mapView.userTrackingMode = userTrackingMode
MapKit.MKMapView:9:26: note: calls to instance method 'setRegion(_:animated:)' from outside of its actor context are implicitly asynchronous
7 | @NSCopying open var preferredConfiguration: MKMapConfiguration { get set }
8 | open var region: MKCoordinateRegion { get set }
9 | @MainActor open func setRegion(_ region: MKCoordinateRegion, animated: Bool)
| `- note: calls to instance method 'setRegion(_:animated:)' from outside of its actor context are implicitly asynchronous
10 | open var centerCoordinate: CLLocationCoordinate2D { get set }
11 | open func setCenter(_ coordinate: CLLocationCoordinate2D, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:163:17: warning: main actor-isolated property 'showsUserLocation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 | // MARK: - UIViewRepresentable
158 |
159 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
160 | let mapView = MKMapView()
161 | mapView.delegate = context.coordinator
162 | mapView.setRegion(region, animated: animated)
163 | mapView.showsUserLocation = showsUserLocation
| `- warning: main actor-isolated property 'showsUserLocation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 | mapView.userTrackingMode = userTrackingMode
165 | mapView.selectableMapFeatures = selectableFeatures
MapKit.MKMapView:82:14: note: mutation of this property is only permitted within the actor
80 | @available(macOS, introduced: 10.11, deprecated: 100000)
81 | open var showsTraffic: Bool { get set }
82 | open var showsUserLocation: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
83 | open var userLocation: MKUserLocation { get }
84 | @available(macOS 11.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:164:17: warning: main actor-isolated property 'userTrackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 | // MARK: - UIViewRepresentable
158 |
159 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
160 | let mapView = MKMapView()
161 | mapView.delegate = context.coordinator
162 | mapView.setRegion(region, animated: animated)
163 | mapView.showsUserLocation = showsUserLocation
164 | mapView.userTrackingMode = userTrackingMode
| `- warning: main actor-isolated property 'userTrackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
165 | mapView.selectableMapFeatures = selectableFeatures
166 | mapView.isZoomEnabled = zoomEnabled
MapKit.MKMapView:85:14: note: mutation of this property is only permitted within the actor
83 | open var userLocation: MKUserLocation { get }
84 | @available(macOS 11.0, *)
85 | open var userTrackingMode: MKUserTrackingMode { get set }
| `- note: mutation of this property is only permitted within the actor
86 | @available(macOS 11.0, *)
87 | open func setUserTrackingMode(_ mode: MKUserTrackingMode, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:166:17: warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 | // MARK: - UIViewRepresentable
158 |
159 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
160 | let mapView = MKMapView()
161 | mapView.delegate = context.coordinator
:
164 | mapView.userTrackingMode = userTrackingMode
165 | mapView.selectableMapFeatures = selectableFeatures
166 | mapView.isZoomEnabled = zoomEnabled
| `- warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | mapView.isScrollEnabled = scrollEnabled
168 | mapView.isPitchEnabled = pitchEnabled
MapKit.MKMapView:46:14: note: mutation of this property is only permitted within the actor
44 | @available(swift, obsoleted: 3, renamed: "convert(_:toRegionFrom:)")
45 | open func convertRect(_ rect: CGRect, toRegionFromView view: NSView?) -> MKCoordinateRegion
46 | open var isZoomEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
47 | @available(swift, obsoleted: 3, renamed: "isZoomEnabled")
48 | open var zoomEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:167:17: warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 | // MARK: - UIViewRepresentable
158 |
159 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
160 | let mapView = MKMapView()
161 | mapView.delegate = context.coordinator
:
165 | mapView.selectableMapFeatures = selectableFeatures
166 | mapView.isZoomEnabled = zoomEnabled
167 | mapView.isScrollEnabled = scrollEnabled
| `- warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
168 | mapView.isPitchEnabled = pitchEnabled
169 | mapView.isRotateEnabled = rotateEnabled
MapKit.MKMapView:49:14: note: mutation of this property is only permitted within the actor
47 | @available(swift, obsoleted: 3, renamed: "isZoomEnabled")
48 | open var zoomEnabled: Bool { get set }
49 | open var isScrollEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
50 | @available(swift, obsoleted: 3, renamed: "isScrollEnabled")
51 | open var scrollEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:168:17: warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 | // MARK: - UIViewRepresentable
158 |
159 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
160 | let mapView = MKMapView()
161 | mapView.delegate = context.coordinator
:
166 | mapView.isZoomEnabled = zoomEnabled
167 | mapView.isScrollEnabled = scrollEnabled
168 | mapView.isPitchEnabled = pitchEnabled
| `- warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
169 | mapView.isRotateEnabled = rotateEnabled
170 |
MapKit.MKMapView:58:14: note: mutation of this property is only permitted within the actor
56 | open var rotateEnabled: Bool { get set }
57 | @available(macOS 10.9, *)
58 | open var isPitchEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.9, *)
60 | @available(swift, obsoleted: 3, renamed: "isPitchEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:169:17: warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 | // MARK: - UIViewRepresentable
158 |
159 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
160 | let mapView = MKMapView()
161 | mapView.delegate = context.coordinator
:
167 | mapView.isScrollEnabled = scrollEnabled
168 | mapView.isPitchEnabled = pitchEnabled
169 | mapView.isRotateEnabled = rotateEnabled
| `- warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
170 |
171 | mapView.preferredConfiguration = preferredConfiguration()
MapKit.MKMapView:53:14: note: mutation of this property is only permitted within the actor
51 | open var scrollEnabled: Bool { get set }
52 | @available(macOS 10.9, *)
53 | open var isRotateEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
54 | @available(macOS 10.9, *)
55 | @available(swift, obsoleted: 3, renamed: "isRotateEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:171:17: warning: main actor-isolated property 'preferredConfiguration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 | // MARK: - UIViewRepresentable
158 |
159 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
160 | let mapView = MKMapView()
161 | mapView.delegate = context.coordinator
:
169 | mapView.isRotateEnabled = rotateEnabled
170 |
171 | mapView.preferredConfiguration = preferredConfiguration()
| `- warning: main actor-isolated property 'preferredConfiguration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
172 | mapView.addGestureRecognizer(longPressGesture(in: context))
173 | return mapView
MapKit.MKMapView:7:25: note: mutation of this property is only permitted within the actor
5 | open var mapType: MKMapType { get set }
6 | @available(macOS 13.0, *)
7 | @NSCopying open var preferredConfiguration: MKMapConfiguration { get set }
| `- note: mutation of this property is only permitted within the actor
8 | open var region: MKCoordinateRegion { get set }
9 | @MainActor open func setRegion(_ region: MKCoordinateRegion, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:181:17: error: 'userTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS 16.0, *)
12 | public struct MapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add @available attribute to enclosing instance method
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
179 |
180 | mapView.showsUserLocation = showsUserLocation
181 | mapView.userTrackingMode = userTrackingMode
| |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
182 | mapView.selectableMapFeatures = selectableFeatures
183 | mapView.isZoomEnabled = zoomEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:182:17: error: value of type 'MKMapView' has no member 'selectableMapFeatures'
180 | mapView.showsUserLocation = showsUserLocation
181 | mapView.userTrackingMode = userTrackingMode
182 | mapView.selectableMapFeatures = selectableFeatures
| `- error: value of type 'MKMapView' has no member 'selectableMapFeatures'
183 | mapView.isZoomEnabled = zoomEnabled
184 | mapView.isScrollEnabled = scrollEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:187:17: error: 'preferredConfiguration' is only available in macOS 13.0 or newer
10 |
11 | @available(iOS 16.0, *)
12 | public struct MapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add @available attribute to enclosing instance method
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
:
185 | mapView.isPitchEnabled = pitchEnabled
186 | mapView.isRotateEnabled = rotateEnabled
187 | mapView.preferredConfiguration = preferredConfiguration()
| |- error: 'preferredConfiguration' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
188 |
189 | if routeVisibility == .visible {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:177:17: warning: call to main actor-isolated instance method 'removeOverlays' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
| `- warning: call to main actor-isolated instance method 'removeOverlays' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
178 | mapView.removeAnnotations(mapView.annotations)
179 |
MapKit.MKMapView:15:26: note: calls to instance method 'removeOverlays' from outside of its actor context are implicitly asynchronous
13 | open func remove(_ overlay: any MKOverlay)
14 | @available(macOS 10.9, *)
15 | @MainActor open func removeOverlays(_ overlays: [any MKOverlay])
| `- note: calls to instance method 'removeOverlays' from outside of its actor context are implicitly asynchronous
16 | @available(macOS 10.9, *)
17 | open func insertOverlay(_ overlay: any MKOverlay, at index: Int, level: MKOverlayLevel)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:177:40: warning: main actor-isolated property 'overlays' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
| `- warning: main actor-isolated property 'overlays' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
178 | mapView.removeAnnotations(mapView.annotations)
179 |
MapKit.MKMapView:46:14: note: property declared here
44 | open func exchangeOverlay(_ overlay1: any MKOverlay, withOverlay overlay2: any MKOverlay)
45 | @available(macOS 10.9, *)
46 | open var overlays: [any MKOverlay] { get }
| `- note: property declared here
47 | @available(macOS 10.9, *)
48 | @MainActor open func overlays(in level: MKOverlayLevel) -> [any MKOverlay]
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:178:17: warning: call to main actor-isolated instance method 'removeAnnotations' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
| `- warning: call to main actor-isolated instance method 'removeAnnotations' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
179 |
180 | mapView.showsUserLocation = showsUserLocation
MapKit.MKMapView:94:15: note: calls to instance method 'removeAnnotations' from outside of its actor context are implicitly asynchronous
92 | open func addAnnotations(_ annotations: [any MKAnnotation])
93 | open func removeAnnotation(_ annotation: any MKAnnotation)
94 | open func removeAnnotations(_ annotations: [any MKAnnotation])
| `- note: calls to instance method 'removeAnnotations' from outside of its actor context are implicitly asynchronous
95 | open var annotations: [any MKAnnotation] { get }
96 | @available(macOS 10.9, *)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:178:43: warning: main actor-isolated property 'annotations' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
| `- warning: main actor-isolated property 'annotations' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
179 |
180 | mapView.showsUserLocation = showsUserLocation
MapKit.MKMapView:95:14: note: property declared here
93 | open func removeAnnotation(_ annotation: any MKAnnotation)
94 | open func removeAnnotations(_ annotations: [any MKAnnotation])
95 | open var annotations: [any MKAnnotation] { get }
| `- note: property declared here
96 | @available(macOS 10.9, *)
97 | open func annotations(in mapRect: MKMapRect) -> Set<AnyHashable>
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:180:17: warning: main actor-isolated property 'showsUserLocation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
179 |
180 | mapView.showsUserLocation = showsUserLocation
| `- warning: main actor-isolated property 'showsUserLocation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
181 | mapView.userTrackingMode = userTrackingMode
182 | mapView.selectableMapFeatures = selectableFeatures
MapKit.MKMapView:82:14: note: mutation of this property is only permitted within the actor
80 | @available(macOS, introduced: 10.11, deprecated: 100000)
81 | open var showsTraffic: Bool { get set }
82 | open var showsUserLocation: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
83 | open var userLocation: MKUserLocation { get }
84 | @available(macOS 11.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:181:17: warning: main actor-isolated property 'userTrackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
179 |
180 | mapView.showsUserLocation = showsUserLocation
181 | mapView.userTrackingMode = userTrackingMode
| `- warning: main actor-isolated property 'userTrackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
182 | mapView.selectableMapFeatures = selectableFeatures
183 | mapView.isZoomEnabled = zoomEnabled
MapKit.MKMapView:85:14: note: mutation of this property is only permitted within the actor
83 | open var userLocation: MKUserLocation { get }
84 | @available(macOS 11.0, *)
85 | open var userTrackingMode: MKUserTrackingMode { get set }
| `- note: mutation of this property is only permitted within the actor
86 | @available(macOS 11.0, *)
87 | open func setUserTrackingMode(_ mode: MKUserTrackingMode, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:183:17: warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
:
181 | mapView.userTrackingMode = userTrackingMode
182 | mapView.selectableMapFeatures = selectableFeatures
183 | mapView.isZoomEnabled = zoomEnabled
| `- warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
184 | mapView.isScrollEnabled = scrollEnabled
185 | mapView.isPitchEnabled = pitchEnabled
MapKit.MKMapView:46:14: note: mutation of this property is only permitted within the actor
44 | @available(swift, obsoleted: 3, renamed: "convert(_:toRegionFrom:)")
45 | open func convertRect(_ rect: CGRect, toRegionFromView view: NSView?) -> MKCoordinateRegion
46 | open var isZoomEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
47 | @available(swift, obsoleted: 3, renamed: "isZoomEnabled")
48 | open var zoomEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:184:17: warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
:
182 | mapView.selectableMapFeatures = selectableFeatures
183 | mapView.isZoomEnabled = zoomEnabled
184 | mapView.isScrollEnabled = scrollEnabled
| `- warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
185 | mapView.isPitchEnabled = pitchEnabled
186 | mapView.isRotateEnabled = rotateEnabled
MapKit.MKMapView:49:14: note: mutation of this property is only permitted within the actor
47 | @available(swift, obsoleted: 3, renamed: "isZoomEnabled")
48 | open var zoomEnabled: Bool { get set }
49 | open var isScrollEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
50 | @available(swift, obsoleted: 3, renamed: "isScrollEnabled")
51 | open var scrollEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:185:17: warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
:
183 | mapView.isZoomEnabled = zoomEnabled
184 | mapView.isScrollEnabled = scrollEnabled
185 | mapView.isPitchEnabled = pitchEnabled
| `- warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
186 | mapView.isRotateEnabled = rotateEnabled
187 | mapView.preferredConfiguration = preferredConfiguration()
MapKit.MKMapView:58:14: note: mutation of this property is only permitted within the actor
56 | open var rotateEnabled: Bool { get set }
57 | @available(macOS 10.9, *)
58 | open var isPitchEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.9, *)
60 | @available(swift, obsoleted: 3, renamed: "isPitchEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:186:17: warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
:
184 | mapView.isScrollEnabled = scrollEnabled
185 | mapView.isPitchEnabled = pitchEnabled
186 | mapView.isRotateEnabled = rotateEnabled
| `- warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
187 | mapView.preferredConfiguration = preferredConfiguration()
188 |
MapKit.MKMapView:53:14: note: mutation of this property is only permitted within the actor
51 | open var scrollEnabled: Bool { get set }
52 | @available(macOS 10.9, *)
53 | open var isRotateEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
54 | @available(macOS 10.9, *)
55 | @available(swift, obsoleted: 3, renamed: "isRotateEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:187:17: warning: main actor-isolated property 'preferredConfiguration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
:
185 | mapView.isPitchEnabled = pitchEnabled
186 | mapView.isRotateEnabled = rotateEnabled
187 | mapView.preferredConfiguration = preferredConfiguration()
| `- warning: main actor-isolated property 'preferredConfiguration' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
188 |
189 | if routeVisibility == .visible {
MapKit.MKMapView:7:25: note: mutation of this property is only permitted within the actor
5 | open var mapType: MKMapType { get set }
6 | @available(macOS 13.0, *)
7 | @NSCopying open var preferredConfiguration: MKMapConfiguration { get set }
| `- note: mutation of this property is only permitted within the actor
8 | open var region: MKCoordinateRegion { get set }
9 | @MainActor open func setRegion(_ region: MKCoordinateRegion, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:191:21: warning: call to main actor-isolated instance method 'addOverlay' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
:
189 | if routeVisibility == .visible {
190 | let polyline = MKPolyline(coordinates: points.map { $0.coordinate }, count: points.count)
191 | mapView.addOverlay(polyline)
| `- warning: call to main actor-isolated instance method 'addOverlay' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
192 | }
193 |
MapKit.MKMapView:58:26: note: calls to instance method 'addOverlay' from outside of its actor context are implicitly asynchronous
56 | open func rendererForOverlay(_ overlay: any MKOverlay) -> MKOverlayRenderer?
57 | @available(macOS 10.9, *)
58 | @MainActor open func addOverlay(_ overlay: any MKOverlay)
| `- note: calls to instance method 'addOverlay' from outside of its actor context are implicitly asynchronous
59 | @available(macOS 10.9, *)
60 | @available(swift, obsoleted: 4.2, renamed: "addOverlay(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:196:25: warning: call to main actor-isolated instance method 'addAnnotation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
194 | if annotationVisibility == .visible {
195 | points.forEach { point in
196 | mapView.addAnnotation(point)
| `- warning: call to main actor-isolated instance method 'addAnnotation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
197 | }
198 | }
MapKit.MKMapView:91:15: note: calls to instance method 'addAnnotation' from outside of its actor context are implicitly asynchronous
89 | @available(swift, obsoleted: 3, renamed: "isUserLocationVisible")
90 | open var userLocationVisible: Bool { get }
91 | open func addAnnotation(_ annotation: any MKAnnotation)
| `- note: calls to instance method 'addAnnotation' from outside of its actor context are implicitly asynchronous
92 | open func addAnnotations(_ annotations: [any MKAnnotation])
93 | open func removeAnnotation(_ annotation: any MKAnnotation)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:202:21: warning: call to main actor-isolated instance method 'showAnnotations(_:animated:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
:
200 | // fit annotations only when not tracking user location
201 | if fitAnnotations && userTrackingMode == .none {
202 | mapView.showAnnotations(mapView.annotations, animated: animated)
| `- warning: call to main actor-isolated instance method 'showAnnotations(_:animated:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
203 | }
204 | }
MapKit.MKMapView:122:15: note: calls to instance method 'showAnnotations(_:animated:)' from outside of its actor context are implicitly asynchronous
120 | open var annotationVisibleRect: CGRect { get }
121 | @available(macOS 10.9, *)
122 | open func showAnnotations(_ annotations: [any MKAnnotation], animated: Bool)
| `- note: calls to instance method 'showAnnotations(_:animated:)' from outside of its actor context are implicitly asynchronous
123 | public init(frame frameRect: NSRect)
124 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:202:45: warning: main actor-isolated property 'annotations' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
174 | }
175 |
176 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
177 | mapView.removeOverlays(mapView.overlays)
178 | mapView.removeAnnotations(mapView.annotations)
:
200 | // fit annotations only when not tracking user location
201 | if fitAnnotations && userTrackingMode == .none {
202 | mapView.showAnnotations(mapView.annotations, animated: animated)
| `- warning: main actor-isolated property 'annotations' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
203 | }
204 | }
MapKit.MKMapView:95:14: note: property declared here
93 | open func removeAnnotation(_ annotation: any MKAnnotation)
94 | open func removeAnnotations(_ annotations: [any MKAnnotation])
95 | open var annotations: [any MKAnnotation] { get }
| `- note: property declared here
96 | @available(macOS 10.9, *)
97 | open func annotations(in mapRect: MKMapRect) -> Set<AnyHashable>
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:14:29: error: cannot find type 'UIColor' in scope
12 |
13 | struct Configuration {
14 | var annotationTint: UIColor
| `- error: cannot find type 'UIColor' in scope
15 | var showCallout: Bool
16 | var routeStyle: MapRouteStyle
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:18:28: error: cannot find type 'UIGestureRecognizer' in scope
16 | var routeStyle: MapRouteStyle
17 | var onSelection: ((MKAnnotation) -> Void)?
18 | var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
| `- error: cannot find type 'UIGestureRecognizer' in scope
19 | var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:223:30: error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
10 |
11 | @available(iOS 16.0, *)
12 | public struct MapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
220 | // MARK: - Methods
221 |
222 | private func preferredConfiguration() -> MKMapConfiguration {
| `- note: add @available attribute to enclosing instance method
223 | let preferredConfig: MKMapConfiguration
| |- error: 'MKMapConfiguration' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
224 |
225 | switch mapConfiguration {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:227:26: error: 'MKStandardMapConfiguration' is only available in macOS 13.0 or newer
10 |
11 | @available(iOS 16.0, *)
12 | public struct MapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
220 | // MARK: - Methods
221 |
222 | private func preferredConfiguration() -> MKMapConfiguration {
| `- note: add @available attribute to enclosing instance method
223 | let preferredConfig: MKMapConfiguration
224 |
225 | switch mapConfiguration {
226 | case .standard:
227 | let config = MKStandardMapConfiguration(elevationStyle: elevationStyle)
| |- error: 'MKStandardMapConfiguration' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
228 | config.pointOfInterestFilter = poiFilter
229 | preferredConfig = config
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:231:26: error: 'MKHybridMapConfiguration' is only available in macOS 13.0 or newer
10 |
11 | @available(iOS 16.0, *)
12 | public struct MapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
220 | // MARK: - Methods
221 |
222 | private func preferredConfiguration() -> MKMapConfiguration {
| `- note: add @available attribute to enclosing instance method
223 | let preferredConfig: MKMapConfiguration
224 |
:
229 | preferredConfig = config
230 | case .hybrid:
231 | let config = MKHybridMapConfiguration(elevationStyle: elevationStyle)
| |- error: 'MKHybridMapConfiguration' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
232 | config.pointOfInterestFilter = poiFilter
233 | preferredConfig = config
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView.swift:235:26: error: 'MKImageryMapConfiguration' is only available in macOS 13.0 or newer
10 |
11 | @available(iOS 16.0, *)
12 | public struct MapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
220 | // MARK: - Methods
221 |
222 | private func preferredConfiguration() -> MKMapConfiguration {
| `- note: add @available attribute to enclosing instance method
223 | let preferredConfig: MKMapConfiguration
224 |
:
233 | preferredConfig = config
234 | case .satellite:
235 | let config = MKImageryMapConfiguration(elevationStyle: elevationStyle)
| |- error: 'MKImageryMapConfiguration' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
236 | preferredConfig = config
237 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewAnnotation.swift:48:15: error: cannot find type 'UIColor' in scope
46 | subtitle: String? = nil,
47 | systemImage: String? = nil,
48 | tint: UIColor? = nil,
| `- error: cannot find type 'UIColor' in scope
49 | displayPriotity: MKFeatureDisplayPriority = .required
50 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewAnnotation.swift:27:22: error: cannot find type 'UIColor' in scope
25 |
26 | /// The color which will be used to tint the annotation marker.
27 | public var tint: UIColor?
| `- error: cannot find type 'UIColor' in scope
28 |
29 | /// The display priority of the annotation view.
[14/15] Compiling LPMapView MapCoordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:14:29: error: cannot find type 'UIColor' in scope
12 |
13 | struct Configuration {
14 | var annotationTint: UIColor
| `- error: cannot find type 'UIColor' in scope
15 | var showCallout: Bool
16 | var routeStyle: MapRouteStyle
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:18:28: error: cannot find type 'UIGestureRecognizer' in scope
16 | var routeStyle: MapRouteStyle
17 | var onSelection: ((MKAnnotation) -> Void)?
18 | var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
| `- error: cannot find type 'UIGestureRecognizer' in scope
19 | var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/MapRouteStyle.swift:13:15: error: cannot find type 'UIColor' in scope
11 | public protocol MapRouteStyle {
12 | /// The line's tint color.
13 | var tint: UIColor { get set }
| `- error: cannot find type 'UIColor' in scope
14 |
15 | /// The line's width in points.
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:60:78: error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
9 | import MapKit
10 |
11 | public class MapCoordinator: NSObject, MKMapViewDelegate {
| `- note: add @available attribute to enclosing class
12 |
13 | struct Configuration {
:
58 | }
59 |
60 | private func markerAnnotationView(from annotation: MapViewAnnotation) -> MKMarkerAnnotationView {
| | `- error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
61 | let annotationView = MKMarkerAnnotationView(annotation: annotation, reuseIdentifier: nil)
62 | annotationView.animatesWhenAdded = false
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:48:17: error: cannot override 'mapView' which has been marked unavailable
46 | }
47 |
48 | public func mapView(_ mapView: MKMapView, didSelect annotation: MKAnnotation) {
| `- error: cannot override 'mapView' which has been marked unavailable
49 | configuration.onSelection?(annotation)
50 | }
MapKit.MKMapViewDelegate:37:19: note: 'mapView(_:didSelect:)' has been explicitly marked unavailable here
35 | optional func mapView(_ mapView: MKMapView, didDeselectAnnotationView view: MKAnnotationView)
36 | @available(macOS, unavailable)
37 | optional func mapView(_ mapView: MKMapView, didSelect annotation: any MKAnnotation)
| `- note: 'mapView(_:didSelect:)' has been explicitly marked unavailable here
38 | @available(swift, obsoleted: 3, renamed: "mapView(_:didSelect:)")
39 | @available(macOS, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:61:30: error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
9 | import MapKit
10 |
11 | public class MapCoordinator: NSObject, MKMapViewDelegate {
| `- note: add @available attribute to enclosing class
12 |
13 | struct Configuration {
:
58 | }
59 |
60 | private func markerAnnotationView(from annotation: MapViewAnnotation) -> MKMarkerAnnotationView {
| `- note: add @available attribute to enclosing instance method
61 | let annotationView = MKMarkerAnnotationView(annotation: annotation, reuseIdentifier: nil)
| |- error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
62 | annotationView.animatesWhenAdded = false
63 | annotationView.markerTintColor = annotation.tint ?? configuration.annotationTint
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewAnnotation.swift:27:22: error: cannot find type 'UIColor' in scope
25 |
26 | /// The color which will be used to tint the annotation marker.
27 | public var tint: UIColor?
| `- error: cannot find type 'UIColor' in scope
28 |
29 | /// The display priority of the annotation view.
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:66:41: error: cannot find 'UIImage' in scope
64 | annotationView.displayPriority = annotation.displayPriority
65 | if let systemImage = annotation.systemImage {
66 | annotationView.glyphImage = UIImage(systemName: systemImage)
| `- error: cannot find 'UIImage' in scope
67 | annotationView.leftCalloutAccessoryView = UIImageView(image: .init(systemName: systemImage))
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:67:55: error: cannot find 'UIImageView' in scope
65 | if let systemImage = annotation.systemImage {
66 | annotationView.glyphImage = UIImage(systemName: systemImage)
67 | annotationView.leftCalloutAccessoryView = UIImageView(image: .init(systemName: systemImage))
| `- error: cannot find 'UIImageView' in scope
68 | }
69 | if annotation.title != nil {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:67:75: error: cannot infer contextual base in reference to member 'init'
65 | if let systemImage = annotation.systemImage {
66 | annotationView.glyphImage = UIImage(systemName: systemImage)
67 | annotationView.leftCalloutAccessoryView = UIImageView(image: .init(systemName: systemImage))
| `- error: cannot infer contextual base in reference to member 'init'
68 | }
69 | if annotation.title != nil {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:71:56: error: cannot find 'UIView' in scope
69 | if annotation.title != nil {
70 | annotationView.canShowCallout = configuration.showCallout
71 | annotationView.rightCalloutAccessoryView = UIView(frame: .zero)
| `- error: cannot find 'UIView' in scope
72 | }
73 | return annotationView
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:71:71: error: cannot infer contextual base in reference to member 'zero'
69 | if annotation.title != nil {
70 | annotationView.canShowCallout = configuration.showCallout
71 | annotationView.rightCalloutAccessoryView = UIView(frame: .zero)
| `- error: cannot infer contextual base in reference to member 'zero'
72 | }
73 | return annotationView
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:77:39: error: cannot find type 'UILongPressGestureRecognizer' in scope
75 |
76 | @objc func action(sender: Any?) {
77 | if let longPress = sender as? UILongPressGestureRecognizer,
| `- error: cannot find type 'UILongPressGestureRecognizer' in scope
78 | let mapView = longPress.view as? MKMapView {
79 | let location = longPress.location(in: mapView)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentValues.swift:32:28: error: cannot find type 'UIColor' in scope
30 | }
31 |
32 | var mapAnnotationTint: UIColor {
| `- error: cannot find type 'UIColor' in scope
33 | get { self[MapAnnotationTintKey.self] }
34 | set { self[MapAnnotationTintKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:6: error: generic parameter 'T' could not be inferred
20 | // MARK: Annotation
21 | @Environment(\.mapAnnotationVisibility) private var annotationVisibility
22 | @Environment(\.mapAnnotationTint) private var annotationTint
| `- error: generic parameter 'T' could not be inferred
23 | @Environment(\.mapShowCallout) private var showCallout
24 | @Environment(\.mapFitAnnotations) private var fitAnnotations
SwiftUICore.Environment:6:12: note: in call to initializer
4 | public init(_ objectType: Value.Type) where Value : AnyObject, Value : Observable
5 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
6 | public init<T>(_ objectType: T.Type) where Value == T?, T : AnyObject, T : Observable
| `- note: in call to initializer
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:18: error: cannot infer key path type from context; consider explicitly specifying a root type
20 | // MARK: Annotation
21 | @Environment(\.mapAnnotationVisibility) private var annotationVisibility
22 | @Environment(\.mapAnnotationTint) private var annotationTint
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
23 | @Environment(\.mapShowCallout) private var showCallout
24 | @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:18:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
16 |
17 | // MARK: Route
18 | @Environment(\.mapRouteVisibility) private var routeVisibility
| `- error: 'Environment' is only available in macOS 10.15 or newer
19 | @Environment(\.mapRouteStyle) private var routeStyle
20 | // MARK: Annotation
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:19:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
17 | // MARK: Route
18 | @Environment(\.mapRouteVisibility) private var routeVisibility
19 | @Environment(\.mapRouteStyle) private var routeStyle
| `- error: 'Environment' is only available in macOS 10.15 or newer
20 | // MARK: Annotation
21 | @Environment(\.mapAnnotationVisibility) private var annotationVisibility
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:21:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
19 | @Environment(\.mapRouteStyle) private var routeStyle
20 | // MARK: Annotation
21 | @Environment(\.mapAnnotationVisibility) private var annotationVisibility
| `- error: 'Environment' is only available in macOS 10.15 or newer
22 | @Environment(\.mapAnnotationTint) private var annotationTint
23 | @Environment(\.mapShowCallout) private var showCallout
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
20 | // MARK: Annotation
21 | @Environment(\.mapAnnotationVisibility) private var annotationVisibility
22 | @Environment(\.mapAnnotationTint) private var annotationTint
| `- error: 'Environment' is only available in macOS 10.15 or newer
23 | @Environment(\.mapShowCallout) private var showCallout
24 | @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:23:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
21 | @Environment(\.mapAnnotationVisibility) private var annotationVisibility
22 | @Environment(\.mapAnnotationTint) private var annotationTint
23 | @Environment(\.mapShowCallout) private var showCallout
| `- error: 'Environment' is only available in macOS 10.15 or newer
24 | @Environment(\.mapFitAnnotations) private var fitAnnotations
25 | // MARK: Configuration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:24:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
22 | @Environment(\.mapAnnotationTint) private var annotationTint
23 | @Environment(\.mapShowCallout) private var showCallout
24 | @Environment(\.mapFitAnnotations) private var fitAnnotations
| `- error: 'Environment' is only available in macOS 10.15 or newer
25 | // MARK: Configuration
26 | @Environment(\.mapConfiguration) private var mapConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:26:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
24 | @Environment(\.mapFitAnnotations) private var fitAnnotations
25 | // MARK: Configuration
26 | @Environment(\.mapConfiguration) private var mapConfiguration
| `- error: 'Environment' is only available in macOS 10.15 or newer
27 | @Environment(\.mapPOIFilter) private var poiFilter
28 | // MARK: UserInteraction
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:27:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
25 | // MARK: Configuration
26 | @Environment(\.mapConfiguration) private var mapConfiguration
27 | @Environment(\.mapPOIFilter) private var poiFilter
| `- error: 'Environment' is only available in macOS 10.15 or newer
28 | // MARK: UserInteraction
29 | @Environment(\.mapInteractionZoom) private var zoomEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:29:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
27 | @Environment(\.mapPOIFilter) private var poiFilter
28 | // MARK: UserInteraction
29 | @Environment(\.mapInteractionZoom) private var zoomEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
30 | @Environment(\.mapInteractionScroll) private var scrollEnabled
31 | @Environment(\.mapInteractionPitch) private var pitchEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:30:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
28 | // MARK: UserInteraction
29 | @Environment(\.mapInteractionZoom) private var zoomEnabled
30 | @Environment(\.mapInteractionScroll) private var scrollEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
31 | @Environment(\.mapInteractionPitch) private var pitchEnabled
32 | @Environment(\.mapInteractionRotate) private var rotateEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:31:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
29 | @Environment(\.mapInteractionZoom) private var zoomEnabled
30 | @Environment(\.mapInteractionScroll) private var scrollEnabled
31 | @Environment(\.mapInteractionPitch) private var pitchEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
32 | @Environment(\.mapInteractionRotate) private var rotateEnabled
33 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:32:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
30 | @Environment(\.mapInteractionScroll) private var scrollEnabled
31 | @Environment(\.mapInteractionPitch) private var pitchEnabled
32 | @Environment(\.mapInteractionRotate) private var rotateEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
33 |
34 | @Binding
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:34:6: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
32 | @Environment(\.mapInteractionRotate) private var rotateEnabled
33 |
34 | @Binding
| `- error: 'Binding' is only available in macOS 10.15 or newer
35 | private var region: MKCoordinateRegion
36 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:38:35: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
36 |
37 | private var showsUserLocation: Bool = false
38 | private var userTrackingMode: MKUserTrackingMode = .none
| `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
39 |
40 | @Binding
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:40:6: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
38 | private var userTrackingMode: MKUserTrackingMode = .none
39 |
40 | @Binding
| `- error: 'Binding' is only available in macOS 10.15 or newer
41 | private var points: [MapViewAnnotation]
42 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:44:32: error: cannot find type 'UIGestureRecognizer' in scope
42 |
43 | private var onSelection: ((MKAnnotation) -> Void)?
44 | private var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
| `- error: cannot find type 'UIGestureRecognizer' in scope
45 | private var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
46 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:75:24: error: cannot find type 'UIGestureRecognizer' in scope
73 | annotations: Binding<[MapViewAnnotation]>,
74 | onSelection: ((MKAnnotation) -> Void)? = nil,
75 | onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
| `- error: cannot find type 'UIGestureRecognizer' in scope
76 | userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
77 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:70:17: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
67 | /// - userLocationChanged: A callback passing in the changed
68 | /// `MKUserLocation`.
69 | public init(
| `- note: add @available attribute to enclosing initializer
70 | region: Binding<MKCoordinateRegion>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
71 | showsUserLocation: Bool = false,
72 | userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:72:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
67 | /// - userLocationChanged: A callback passing in the changed
68 | /// `MKUserLocation`.
69 | public init(
| `- note: add @available attribute to enclosing initializer
70 | region: Binding<MKCoordinateRegion>,
71 | showsUserLocation: Bool = false,
72 | userTrackingMode: MKUserTrackingMode = .none,
| `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
73 | annotations: Binding<[MapViewAnnotation]>,
74 | onSelection: ((MKAnnotation) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:73:22: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
67 | /// - userLocationChanged: A callback passing in the changed
68 | /// `MKUserLocation`.
69 | public init(
| `- note: add @available attribute to enclosing initializer
70 | region: Binding<MKCoordinateRegion>,
71 | showsUserLocation: Bool = false,
72 | userTrackingMode: MKUserTrackingMode = .none,
73 | annotations: Binding<[MapViewAnnotation]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
74 | onSelection: ((MKAnnotation) -> Void)? = nil,
75 | onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:108:24: error: cannot find type 'UIGestureRecognizer' in scope
106 | userTrackingMode: MKUserTrackingMode = .none,
107 | annotations: Binding<[MapViewAnnotation]>,
108 | onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
| `- error: cannot find type 'UIGestureRecognizer' in scope
109 | userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
110 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:104:17: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
101 | /// `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 | /// from where the gesture happened on the ``MapView``.
103 | public init(
| `- note: add @available attribute to enclosing initializer
104 | region: Binding<MKCoordinateRegion>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
105 | showsUserLocation: Bool = false,
106 | userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:106:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
101 | /// `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 | /// from where the gesture happened on the ``MapView``.
103 | public init(
| `- note: add @available attribute to enclosing initializer
104 | region: Binding<MKCoordinateRegion>,
105 | showsUserLocation: Bool = false,
106 | userTrackingMode: MKUserTrackingMode = .none,
| `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
107 | annotations: Binding<[MapViewAnnotation]>,
108 | onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:107:22: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
101 | /// `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 | /// from where the gesture happened on the ``MapView``.
103 | public init(
| `- note: add @available attribute to enclosing initializer
104 | region: Binding<MKCoordinateRegion>,
105 | showsUserLocation: Bool = false,
106 | userTrackingMode: MKUserTrackingMode = .none,
107 | annotations: Binding<[MapViewAnnotation]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
108 | onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
109 | userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:136:17: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
133 | /// - onSelection: A callback passing in a `MKAnnotation`
134 | /// item that was selected in the ``MapView``.
135 | public init(
| `- note: add @available attribute to enclosing initializer
136 | region: Binding<MKCoordinateRegion>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
137 | showsUserLocation: Bool = false,
138 | userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:138:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
133 | /// - onSelection: A callback passing in a `MKAnnotation`
134 | /// item that was selected in the ``MapView``.
135 | public init(
| `- note: add @available attribute to enclosing initializer
136 | region: Binding<MKCoordinateRegion>,
137 | showsUserLocation: Bool = false,
138 | userTrackingMode: MKUserTrackingMode = .none,
| `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
139 | annotations: Binding<[MapViewAnnotation]>,
140 | onSelection: ((MKAnnotation) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:139:22: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
133 | /// - onSelection: A callback passing in a `MKAnnotation`
134 | /// item that was selected in the ``MapView``.
135 | public init(
| `- note: add @available attribute to enclosing initializer
136 | region: Binding<MKCoordinateRegion>,
137 | showsUserLocation: Bool = false,
138 | userTrackingMode: MKUserTrackingMode = .none,
139 | annotations: Binding<[MapViewAnnotation]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
140 | onSelection: ((MKAnnotation) -> Void)?,
141 | userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:152:37: error: cannot find type 'Context' in scope
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- error: cannot find type 'Context' in scope
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:169:61: error: cannot find type 'Context' in scope
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- error: cannot find type 'Context' in scope
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:226:59: error: cannot find type 'UILongPressGestureRecognizer' in scope
224 | }
225 |
226 | private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
| `- error: cannot find type 'UILongPressGestureRecognizer' in scope
227 | UILongPressGestureRecognizer(
228 | target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:226:47: error: cannot find type 'Context' in scope
224 | }
225 |
226 | private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
| `- error: cannot find type 'Context' in scope
227 | UILongPressGestureRecognizer(
228 | target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:12:25: error: cannot find type 'UIViewRepresentable' in scope
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
13 | public typealias UIViewType = MKMapView
14 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:148:28: error: 'nil' requires a contextual type
146 | self.userTrackingMode = userTrackingMode
147 | self.onSelection = onSelection
148 | self.onLongPress = nil
| `- error: 'nil' requires a contextual type
149 | self.userLocationChanged = userLocationChanged
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:157:17: error: 'userTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add @available attribute to enclosing instance method
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
155 | mapView.setRegion(region, animated: true)
156 | mapView.showsUserLocation = showsUserLocation
157 | mapView.userTrackingMode = userTrackingMode
| |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
158 | mapView.mapType = mapStyle()
159 | mapView.pointOfInterestFilter = poiFilter
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:159:17: error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add @available attribute to enclosing instance method
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
157 | mapView.userTrackingMode = userTrackingMode
158 | mapView.mapType = mapStyle()
159 | mapView.pointOfInterestFilter = poiFilter
| |- error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | mapView.isZoomEnabled = zoomEnabled
161 | mapView.isScrollEnabled = scrollEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:153:23: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
154 | mapView.delegate = context.coordinator
155 | mapView.setRegion(region, animated: true)
MapKit.MKMapView:125:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
123 | public init(frame frameRect: NSRect)
124 | public init?(coder: NSCoder)
125 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:155:17: warning: call to main actor-isolated instance method 'setRegion(_:animated:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
155 | mapView.setRegion(region, animated: true)
| `- warning: call to main actor-isolated instance method 'setRegion(_:animated:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
156 | mapView.showsUserLocation = showsUserLocation
157 | mapView.userTrackingMode = userTrackingMode
MapKit.MKMapView:9:26: note: calls to instance method 'setRegion(_:animated:)' from outside of its actor context are implicitly asynchronous
7 | @NSCopying open var preferredConfiguration: MKMapConfiguration { get set }
8 | open var region: MKCoordinateRegion { get set }
9 | @MainActor open func setRegion(_ region: MKCoordinateRegion, animated: Bool)
| `- note: calls to instance method 'setRegion(_:animated:)' from outside of its actor context are implicitly asynchronous
10 | open var centerCoordinate: CLLocationCoordinate2D { get set }
11 | open func setCenter(_ coordinate: CLLocationCoordinate2D, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:156:17: warning: main actor-isolated property 'showsUserLocation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
155 | mapView.setRegion(region, animated: true)
156 | mapView.showsUserLocation = showsUserLocation
| `- warning: main actor-isolated property 'showsUserLocation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 | mapView.userTrackingMode = userTrackingMode
158 | mapView.mapType = mapStyle()
MapKit.MKMapView:82:14: note: mutation of this property is only permitted within the actor
80 | @available(macOS, introduced: 10.11, deprecated: 100000)
81 | open var showsTraffic: Bool { get set }
82 | open var showsUserLocation: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
83 | open var userLocation: MKUserLocation { get }
84 | @available(macOS 11.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:157:17: warning: main actor-isolated property 'userTrackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
155 | mapView.setRegion(region, animated: true)
156 | mapView.showsUserLocation = showsUserLocation
157 | mapView.userTrackingMode = userTrackingMode
| `- warning: main actor-isolated property 'userTrackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
158 | mapView.mapType = mapStyle()
159 | mapView.pointOfInterestFilter = poiFilter
MapKit.MKMapView:85:14: note: mutation of this property is only permitted within the actor
83 | open var userLocation: MKUserLocation { get }
84 | @available(macOS 11.0, *)
85 | open var userTrackingMode: MKUserTrackingMode { get set }
| `- note: mutation of this property is only permitted within the actor
86 | @available(macOS 11.0, *)
87 | open func setUserTrackingMode(_ mode: MKUserTrackingMode, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:158:17: warning: main actor-isolated property 'mapType' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
156 | mapView.showsUserLocation = showsUserLocation
157 | mapView.userTrackingMode = userTrackingMode
158 | mapView.mapType = mapStyle()
| `- warning: main actor-isolated property 'mapType' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
159 | mapView.pointOfInterestFilter = poiFilter
160 | mapView.isZoomEnabled = zoomEnabled
MapKit.MKMapView:5:14: note: mutation of this property is only permitted within the actor
3 | @IBOutlet weak open var delegate: (any MKMapViewDelegate)? { get set }
4 | @available(macOS, introduced: 10.9, deprecated: 100000)
5 | open var mapType: MKMapType { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @available(macOS 13.0, *)
7 | @NSCopying open var preferredConfiguration: MKMapConfiguration { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:159:17: warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
157 | mapView.userTrackingMode = userTrackingMode
158 | mapView.mapType = mapStyle()
159 | mapView.pointOfInterestFilter = poiFilter
| `- warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
160 | mapView.isZoomEnabled = zoomEnabled
161 | mapView.isScrollEnabled = scrollEnabled
MapKit.MKMapView:75:25: note: mutation of this property is only permitted within the actor
73 | open var showsScale: Bool { get set }
74 | @available(macOS, introduced: 10.15, deprecated: 100000)
75 | @NSCopying open var pointOfInterestFilter: MKPointOfInterestFilter? { get set }
| `- note: mutation of this property is only permitted within the actor
76 | @available(macOS, introduced: 10.9, deprecated: 10.15, message: "Use pointOfInterestFilter")
77 | open var showsPointsOfInterest: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:160:17: warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
158 | mapView.mapType = mapStyle()
159 | mapView.pointOfInterestFilter = poiFilter
160 | mapView.isZoomEnabled = zoomEnabled
| `- warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
161 | mapView.isScrollEnabled = scrollEnabled
162 | mapView.isPitchEnabled = pitchEnabled
MapKit.MKMapView:46:14: note: mutation of this property is only permitted within the actor
44 | @available(swift, obsoleted: 3, renamed: "convert(_:toRegionFrom:)")
45 | open func convertRect(_ rect: CGRect, toRegionFromView view: NSView?) -> MKCoordinateRegion
46 | open var isZoomEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
47 | @available(swift, obsoleted: 3, renamed: "isZoomEnabled")
48 | open var zoomEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:161:17: warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
159 | mapView.pointOfInterestFilter = poiFilter
160 | mapView.isZoomEnabled = zoomEnabled
161 | mapView.isScrollEnabled = scrollEnabled
| `- warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
162 | mapView.isPitchEnabled = pitchEnabled
163 | mapView.isRotateEnabled = rotateEnabled
MapKit.MKMapView:49:14: note: mutation of this property is only permitted within the actor
47 | @available(swift, obsoleted: 3, renamed: "isZoomEnabled")
48 | open var zoomEnabled: Bool { get set }
49 | open var isScrollEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
50 | @available(swift, obsoleted: 3, renamed: "isScrollEnabled")
51 | open var scrollEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:162:17: warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
160 | mapView.isZoomEnabled = zoomEnabled
161 | mapView.isScrollEnabled = scrollEnabled
162 | mapView.isPitchEnabled = pitchEnabled
| `- warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
163 | mapView.isRotateEnabled = rotateEnabled
164 |
MapKit.MKMapView:58:14: note: mutation of this property is only permitted within the actor
56 | open var rotateEnabled: Bool { get set }
57 | @available(macOS 10.9, *)
58 | open var isPitchEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.9, *)
60 | @available(swift, obsoleted: 3, renamed: "isPitchEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:163:17: warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
161 | mapView.isScrollEnabled = scrollEnabled
162 | mapView.isPitchEnabled = pitchEnabled
163 | mapView.isRotateEnabled = rotateEnabled
| `- warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 |
165 | mapView.addGestureRecognizer(longPressGesture(in: context))
MapKit.MKMapView:53:14: note: mutation of this property is only permitted within the actor
51 | open var scrollEnabled: Bool { get set }
52 | @available(macOS 10.9, *)
53 | open var isRotateEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
54 | @available(macOS 10.9, *)
55 | @available(swift, obsoleted: 3, renamed: "isRotateEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:174:17: error: 'userTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add @available attribute to enclosing instance method
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
172 |
173 | mapView.showsUserLocation = showsUserLocation
174 | mapView.userTrackingMode = userTrackingMode
| |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
175 | mapView.mapType = mapStyle()
176 | mapView.pointOfInterestFilter = poiFilter
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:176:17: error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add @available attribute to enclosing instance method
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
174 | mapView.userTrackingMode = userTrackingMode
175 | mapView.mapType = mapStyle()
176 | mapView.pointOfInterestFilter = poiFilter
| |- error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
177 | mapView.isZoomEnabled = zoomEnabled
178 | mapView.isScrollEnabled = scrollEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:170:17: warning: call to main actor-isolated instance method 'removeOverlays' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
| `- warning: call to main actor-isolated instance method 'removeOverlays' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
171 | mapView.removeAnnotations(mapView.annotations)
172 |
MapKit.MKMapView:15:26: note: calls to instance method 'removeOverlays' from outside of its actor context are implicitly asynchronous
13 | open func remove(_ overlay: any MKOverlay)
14 | @available(macOS 10.9, *)
15 | @MainActor open func removeOverlays(_ overlays: [any MKOverlay])
| `- note: calls to instance method 'removeOverlays' from outside of its actor context are implicitly asynchronous
16 | @available(macOS 10.9, *)
17 | open func insertOverlay(_ overlay: any MKOverlay, at index: Int, level: MKOverlayLevel)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:170:40: warning: main actor-isolated property 'overlays' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
| `- warning: main actor-isolated property 'overlays' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
171 | mapView.removeAnnotations(mapView.annotations)
172 |
MapKit.MKMapView:46:14: note: property declared here
44 | open func exchangeOverlay(_ overlay1: any MKOverlay, withOverlay overlay2: any MKOverlay)
45 | @available(macOS 10.9, *)
46 | open var overlays: [any MKOverlay] { get }
| `- note: property declared here
47 | @available(macOS 10.9, *)
48 | @MainActor open func overlays(in level: MKOverlayLevel) -> [any MKOverlay]
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:171:17: warning: call to main actor-isolated instance method 'removeAnnotations' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
| `- warning: call to main actor-isolated instance method 'removeAnnotations' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 |
173 | mapView.showsUserLocation = showsUserLocation
MapKit.MKMapView:94:15: note: calls to instance method 'removeAnnotations' from outside of its actor context are implicitly asynchronous
92 | open func addAnnotations(_ annotations: [any MKAnnotation])
93 | open func removeAnnotation(_ annotation: any MKAnnotation)
94 | open func removeAnnotations(_ annotations: [any MKAnnotation])
| `- note: calls to instance method 'removeAnnotations' from outside of its actor context are implicitly asynchronous
95 | open var annotations: [any MKAnnotation] { get }
96 | @available(macOS 10.9, *)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:171:43: warning: main actor-isolated property 'annotations' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
| `- warning: main actor-isolated property 'annotations' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
172 |
173 | mapView.showsUserLocation = showsUserLocation
MapKit.MKMapView:95:14: note: property declared here
93 | open func removeAnnotation(_ annotation: any MKAnnotation)
94 | open func removeAnnotations(_ annotations: [any MKAnnotation])
95 | open var annotations: [any MKAnnotation] { get }
| `- note: property declared here
96 | @available(macOS 10.9, *)
97 | open func annotations(in mapRect: MKMapRect) -> Set<AnyHashable>
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:173:17: warning: main actor-isolated property 'showsUserLocation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
172 |
173 | mapView.showsUserLocation = showsUserLocation
| `- warning: main actor-isolated property 'showsUserLocation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
174 | mapView.userTrackingMode = userTrackingMode
175 | mapView.mapType = mapStyle()
MapKit.MKMapView:82:14: note: mutation of this property is only permitted within the actor
80 | @available(macOS, introduced: 10.11, deprecated: 100000)
81 | open var showsTraffic: Bool { get set }
82 | open var showsUserLocation: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
83 | open var userLocation: MKUserLocation { get }
84 | @available(macOS 11.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:174:17: warning: main actor-isolated property 'userTrackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
172 |
173 | mapView.showsUserLocation = showsUserLocation
174 | mapView.userTrackingMode = userTrackingMode
| `- warning: main actor-isolated property 'userTrackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 | mapView.mapType = mapStyle()
176 | mapView.pointOfInterestFilter = poiFilter
MapKit.MKMapView:85:14: note: mutation of this property is only permitted within the actor
83 | open var userLocation: MKUserLocation { get }
84 | @available(macOS 11.0, *)
85 | open var userTrackingMode: MKUserTrackingMode { get set }
| `- note: mutation of this property is only permitted within the actor
86 | @available(macOS 11.0, *)
87 | open func setUserTrackingMode(_ mode: MKUserTrackingMode, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:175:17: warning: main actor-isolated property 'mapType' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
173 | mapView.showsUserLocation = showsUserLocation
174 | mapView.userTrackingMode = userTrackingMode
175 | mapView.mapType = mapStyle()
| `- warning: main actor-isolated property 'mapType' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
176 | mapView.pointOfInterestFilter = poiFilter
177 | mapView.isZoomEnabled = zoomEnabled
MapKit.MKMapView:5:14: note: mutation of this property is only permitted within the actor
3 | @IBOutlet weak open var delegate: (any MKMapViewDelegate)? { get set }
4 | @available(macOS, introduced: 10.9, deprecated: 100000)
5 | open var mapType: MKMapType { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @available(macOS 13.0, *)
7 | @NSCopying open var preferredConfiguration: MKMapConfiguration { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:176:17: warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
174 | mapView.userTrackingMode = userTrackingMode
175 | mapView.mapType = mapStyle()
176 | mapView.pointOfInterestFilter = poiFilter
| `- warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
177 | mapView.isZoomEnabled = zoomEnabled
178 | mapView.isScrollEnabled = scrollEnabled
MapKit.MKMapView:75:25: note: mutation of this property is only permitted within the actor
73 | open var showsScale: Bool { get set }
74 | @available(macOS, introduced: 10.15, deprecated: 100000)
75 | @NSCopying open var pointOfInterestFilter: MKPointOfInterestFilter? { get set }
| `- note: mutation of this property is only permitted within the actor
76 | @available(macOS, introduced: 10.9, deprecated: 10.15, message: "Use pointOfInterestFilter")
77 | open var showsPointsOfInterest: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:177:17: warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
175 | mapView.mapType = mapStyle()
176 | mapView.pointOfInterestFilter = poiFilter
177 | mapView.isZoomEnabled = zoomEnabled
| `- warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
178 | mapView.isScrollEnabled = scrollEnabled
179 | mapView.isPitchEnabled = pitchEnabled
MapKit.MKMapView:46:14: note: mutation of this property is only permitted within the actor
44 | @available(swift, obsoleted: 3, renamed: "convert(_:toRegionFrom:)")
45 | open func convertRect(_ rect: CGRect, toRegionFromView view: NSView?) -> MKCoordinateRegion
46 | open var isZoomEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
47 | @available(swift, obsoleted: 3, renamed: "isZoomEnabled")
48 | open var zoomEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:178:17: warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
176 | mapView.pointOfInterestFilter = poiFilter
177 | mapView.isZoomEnabled = zoomEnabled
178 | mapView.isScrollEnabled = scrollEnabled
| `- warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
179 | mapView.isPitchEnabled = pitchEnabled
180 | mapView.isRotateEnabled = rotateEnabled
MapKit.MKMapView:49:14: note: mutation of this property is only permitted within the actor
47 | @available(swift, obsoleted: 3, renamed: "isZoomEnabled")
48 | open var zoomEnabled: Bool { get set }
49 | open var isScrollEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
50 | @available(swift, obsoleted: 3, renamed: "isScrollEnabled")
51 | open var scrollEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:179:17: warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
177 | mapView.isZoomEnabled = zoomEnabled
178 | mapView.isScrollEnabled = scrollEnabled
179 | mapView.isPitchEnabled = pitchEnabled
| `- warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
180 | mapView.isRotateEnabled = rotateEnabled
181 |
MapKit.MKMapView:58:14: note: mutation of this property is only permitted within the actor
56 | open var rotateEnabled: Bool { get set }
57 | @available(macOS 10.9, *)
58 | open var isPitchEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.9, *)
60 | @available(swift, obsoleted: 3, renamed: "isPitchEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:180:17: warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
178 | mapView.isScrollEnabled = scrollEnabled
179 | mapView.isPitchEnabled = pitchEnabled
180 | mapView.isRotateEnabled = rotateEnabled
| `- warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
181 |
182 | if routeVisibility == .visible {
MapKit.MKMapView:53:14: note: mutation of this property is only permitted within the actor
51 | open var scrollEnabled: Bool { get set }
52 | @available(macOS 10.9, *)
53 | open var isRotateEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
54 | @available(macOS 10.9, *)
55 | @available(swift, obsoleted: 3, renamed: "isRotateEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:184:21: warning: call to main actor-isolated instance method 'addOverlay' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
182 | if routeVisibility == .visible {
183 | let polyline = MKPolyline(coordinates: points.map { $0.coordinate }, count: points.count)
184 | mapView.addOverlay(polyline)
| `- warning: call to main actor-isolated instance method 'addOverlay' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 | }
186 |
MapKit.MKMapView:58:26: note: calls to instance method 'addOverlay' from outside of its actor context are implicitly asynchronous
56 | open func rendererForOverlay(_ overlay: any MKOverlay) -> MKOverlayRenderer?
57 | @available(macOS 10.9, *)
58 | @MainActor open func addOverlay(_ overlay: any MKOverlay)
| `- note: calls to instance method 'addOverlay' from outside of its actor context are implicitly asynchronous
59 | @available(macOS 10.9, *)
60 | @available(swift, obsoleted: 4.2, renamed: "addOverlay(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:189:25: warning: call to main actor-isolated instance method 'addAnnotation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 | if annotationVisibility == .visible {
188 | points.forEach { point in
189 | mapView.addAnnotation(point)
| `- warning: call to main actor-isolated instance method 'addAnnotation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | }
191 | }
MapKit.MKMapView:91:15: note: calls to instance method 'addAnnotation' from outside of its actor context are implicitly asynchronous
89 | @available(swift, obsoleted: 3, renamed: "isUserLocationVisible")
90 | open var userLocationVisible: Bool { get }
91 | open func addAnnotation(_ annotation: any MKAnnotation)
| `- note: calls to instance method 'addAnnotation' from outside of its actor context are implicitly asynchronous
92 | open func addAnnotations(_ annotations: [any MKAnnotation])
93 | open func removeAnnotation(_ annotation: any MKAnnotation)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:195:21: warning: call to main actor-isolated instance method 'showAnnotations(_:animated:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
193 | // fit annotations only when not tracking user location
194 | if fitAnnotations && userTrackingMode == .none {
195 | mapView.showAnnotations(mapView.annotations, animated: true)
| `- warning: call to main actor-isolated instance method 'showAnnotations(_:animated:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
196 | }
197 | }
MapKit.MKMapView:122:15: note: calls to instance method 'showAnnotations(_:animated:)' from outside of its actor context are implicitly asynchronous
120 | open var annotationVisibleRect: CGRect { get }
121 | @available(macOS 10.9, *)
122 | open func showAnnotations(_ annotations: [any MKAnnotation], animated: Bool)
| `- note: calls to instance method 'showAnnotations(_:animated:)' from outside of its actor context are implicitly asynchronous
123 | public init(frame frameRect: NSRect)
124 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:195:45: warning: main actor-isolated property 'annotations' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
193 | // fit annotations only when not tracking user location
194 | if fitAnnotations && userTrackingMode == .none {
195 | mapView.showAnnotations(mapView.annotations, animated: true)
| `- warning: main actor-isolated property 'annotations' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
196 | }
197 | }
MapKit.MKMapView:95:14: note: property declared here
93 | open func removeAnnotation(_ annotation: any MKAnnotation)
94 | open func removeAnnotations(_ annotations: [any MKAnnotation])
95 | open var annotations: [any MKAnnotation] { get }
| `- note: property declared here
96 | @available(macOS 10.9, *)
97 | open func annotations(in mapRect: MKMapRect) -> Set<AnyHashable>
[15/15] Compiling LPMapView MapView+Compatibility.swift
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:14:29: error: cannot find type 'UIColor' in scope
12 |
13 | struct Configuration {
14 | var annotationTint: UIColor
| `- error: cannot find type 'UIColor' in scope
15 | var showCallout: Bool
16 | var routeStyle: MapRouteStyle
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:18:28: error: cannot find type 'UIGestureRecognizer' in scope
16 | var routeStyle: MapRouteStyle
17 | var onSelection: ((MKAnnotation) -> Void)?
18 | var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
| `- error: cannot find type 'UIGestureRecognizer' in scope
19 | var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/MapRouteStyle/MapRouteStyle.swift:13:15: error: cannot find type 'UIColor' in scope
11 | public protocol MapRouteStyle {
12 | /// The line's tint color.
13 | var tint: UIColor { get set }
| `- error: cannot find type 'UIColor' in scope
14 |
15 | /// The line's width in points.
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:60:78: error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
9 | import MapKit
10 |
11 | public class MapCoordinator: NSObject, MKMapViewDelegate {
| `- note: add @available attribute to enclosing class
12 |
13 | struct Configuration {
:
58 | }
59 |
60 | private func markerAnnotationView(from annotation: MapViewAnnotation) -> MKMarkerAnnotationView {
| | `- error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
61 | let annotationView = MKMarkerAnnotationView(annotation: annotation, reuseIdentifier: nil)
62 | annotationView.animatesWhenAdded = false
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:48:17: error: cannot override 'mapView' which has been marked unavailable
46 | }
47 |
48 | public func mapView(_ mapView: MKMapView, didSelect annotation: MKAnnotation) {
| `- error: cannot override 'mapView' which has been marked unavailable
49 | configuration.onSelection?(annotation)
50 | }
MapKit.MKMapViewDelegate:37:19: note: 'mapView(_:didSelect:)' has been explicitly marked unavailable here
35 | optional func mapView(_ mapView: MKMapView, didDeselectAnnotationView view: MKAnnotationView)
36 | @available(macOS, unavailable)
37 | optional func mapView(_ mapView: MKMapView, didSelect annotation: any MKAnnotation)
| `- note: 'mapView(_:didSelect:)' has been explicitly marked unavailable here
38 | @available(swift, obsoleted: 3, renamed: "mapView(_:didSelect:)")
39 | @available(macOS, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:61:30: error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
9 | import MapKit
10 |
11 | public class MapCoordinator: NSObject, MKMapViewDelegate {
| `- note: add @available attribute to enclosing class
12 |
13 | struct Configuration {
:
58 | }
59 |
60 | private func markerAnnotationView(from annotation: MapViewAnnotation) -> MKMarkerAnnotationView {
| `- note: add @available attribute to enclosing instance method
61 | let annotationView = MKMarkerAnnotationView(annotation: annotation, reuseIdentifier: nil)
| |- error: 'MKMarkerAnnotationView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
62 | annotationView.animatesWhenAdded = false
63 | annotationView.markerTintColor = annotation.tint ?? configuration.annotationTint
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewAnnotation.swift:27:22: error: cannot find type 'UIColor' in scope
25 |
26 | /// The color which will be used to tint the annotation marker.
27 | public var tint: UIColor?
| `- error: cannot find type 'UIColor' in scope
28 |
29 | /// The display priority of the annotation view.
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:66:41: error: cannot find 'UIImage' in scope
64 | annotationView.displayPriority = annotation.displayPriority
65 | if let systemImage = annotation.systemImage {
66 | annotationView.glyphImage = UIImage(systemName: systemImage)
| `- error: cannot find 'UIImage' in scope
67 | annotationView.leftCalloutAccessoryView = UIImageView(image: .init(systemName: systemImage))
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:67:55: error: cannot find 'UIImageView' in scope
65 | if let systemImage = annotation.systemImage {
66 | annotationView.glyphImage = UIImage(systemName: systemImage)
67 | annotationView.leftCalloutAccessoryView = UIImageView(image: .init(systemName: systemImage))
| `- error: cannot find 'UIImageView' in scope
68 | }
69 | if annotation.title != nil {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:67:75: error: cannot infer contextual base in reference to member 'init'
65 | if let systemImage = annotation.systemImage {
66 | annotationView.glyphImage = UIImage(systemName: systemImage)
67 | annotationView.leftCalloutAccessoryView = UIImageView(image: .init(systemName: systemImage))
| `- error: cannot infer contextual base in reference to member 'init'
68 | }
69 | if annotation.title != nil {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:71:56: error: cannot find 'UIView' in scope
69 | if annotation.title != nil {
70 | annotationView.canShowCallout = configuration.showCallout
71 | annotationView.rightCalloutAccessoryView = UIView(frame: .zero)
| `- error: cannot find 'UIView' in scope
72 | }
73 | return annotationView
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:71:71: error: cannot infer contextual base in reference to member 'zero'
69 | if annotation.title != nil {
70 | annotationView.canShowCallout = configuration.showCallout
71 | annotationView.rightCalloutAccessoryView = UIView(frame: .zero)
| `- error: cannot infer contextual base in reference to member 'zero'
72 | }
73 | return annotationView
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapCoordinator.swift:77:39: error: cannot find type 'UILongPressGestureRecognizer' in scope
75 |
76 | @objc func action(sender: Any?) {
77 | if let longPress = sender as? UILongPressGestureRecognizer,
| `- error: cannot find type 'UILongPressGestureRecognizer' in scope
78 | let mapView = longPress.view as? MKMapView {
79 | let location = longPress.location(in: mapView)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapViewOptions/EnvironmentValues.swift:32:28: error: cannot find type 'UIColor' in scope
30 | }
31 |
32 | var mapAnnotationTint: UIColor {
| `- error: cannot find type 'UIColor' in scope
33 | get { self[MapAnnotationTintKey.self] }
34 | set { self[MapAnnotationTintKey.self] = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:6: error: generic parameter 'T' could not be inferred
20 | // MARK: Annotation
21 | @Environment(\.mapAnnotationVisibility) private var annotationVisibility
22 | @Environment(\.mapAnnotationTint) private var annotationTint
| `- error: generic parameter 'T' could not be inferred
23 | @Environment(\.mapShowCallout) private var showCallout
24 | @Environment(\.mapFitAnnotations) private var fitAnnotations
SwiftUICore.Environment:6:12: note: in call to initializer
4 | public init(_ objectType: Value.Type) where Value : AnyObject, Value : Observable
5 | @available(iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0, *)
6 | public init<T>(_ objectType: T.Type) where Value == T?, T : AnyObject, T : Observable
| `- note: in call to initializer
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:18: error: cannot infer key path type from context; consider explicitly specifying a root type
20 | // MARK: Annotation
21 | @Environment(\.mapAnnotationVisibility) private var annotationVisibility
22 | @Environment(\.mapAnnotationTint) private var annotationTint
| `- error: cannot infer key path type from context; consider explicitly specifying a root type
23 | @Environment(\.mapShowCallout) private var showCallout
24 | @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:18:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
16 |
17 | // MARK: Route
18 | @Environment(\.mapRouteVisibility) private var routeVisibility
| `- error: 'Environment' is only available in macOS 10.15 or newer
19 | @Environment(\.mapRouteStyle) private var routeStyle
20 | // MARK: Annotation
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:19:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
17 | // MARK: Route
18 | @Environment(\.mapRouteVisibility) private var routeVisibility
19 | @Environment(\.mapRouteStyle) private var routeStyle
| `- error: 'Environment' is only available in macOS 10.15 or newer
20 | // MARK: Annotation
21 | @Environment(\.mapAnnotationVisibility) private var annotationVisibility
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:21:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
19 | @Environment(\.mapRouteStyle) private var routeStyle
20 | // MARK: Annotation
21 | @Environment(\.mapAnnotationVisibility) private var annotationVisibility
| `- error: 'Environment' is only available in macOS 10.15 or newer
22 | @Environment(\.mapAnnotationTint) private var annotationTint
23 | @Environment(\.mapShowCallout) private var showCallout
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:22:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
20 | // MARK: Annotation
21 | @Environment(\.mapAnnotationVisibility) private var annotationVisibility
22 | @Environment(\.mapAnnotationTint) private var annotationTint
| `- error: 'Environment' is only available in macOS 10.15 or newer
23 | @Environment(\.mapShowCallout) private var showCallout
24 | @Environment(\.mapFitAnnotations) private var fitAnnotations
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:23:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
21 | @Environment(\.mapAnnotationVisibility) private var annotationVisibility
22 | @Environment(\.mapAnnotationTint) private var annotationTint
23 | @Environment(\.mapShowCallout) private var showCallout
| `- error: 'Environment' is only available in macOS 10.15 or newer
24 | @Environment(\.mapFitAnnotations) private var fitAnnotations
25 | // MARK: Configuration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:24:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
22 | @Environment(\.mapAnnotationTint) private var annotationTint
23 | @Environment(\.mapShowCallout) private var showCallout
24 | @Environment(\.mapFitAnnotations) private var fitAnnotations
| `- error: 'Environment' is only available in macOS 10.15 or newer
25 | // MARK: Configuration
26 | @Environment(\.mapConfiguration) private var mapConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:26:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
24 | @Environment(\.mapFitAnnotations) private var fitAnnotations
25 | // MARK: Configuration
26 | @Environment(\.mapConfiguration) private var mapConfiguration
| `- error: 'Environment' is only available in macOS 10.15 or newer
27 | @Environment(\.mapPOIFilter) private var poiFilter
28 | // MARK: UserInteraction
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:27:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
25 | // MARK: Configuration
26 | @Environment(\.mapConfiguration) private var mapConfiguration
27 | @Environment(\.mapPOIFilter) private var poiFilter
| `- error: 'Environment' is only available in macOS 10.15 or newer
28 | // MARK: UserInteraction
29 | @Environment(\.mapInteractionZoom) private var zoomEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:29:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
27 | @Environment(\.mapPOIFilter) private var poiFilter
28 | // MARK: UserInteraction
29 | @Environment(\.mapInteractionZoom) private var zoomEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
30 | @Environment(\.mapInteractionScroll) private var scrollEnabled
31 | @Environment(\.mapInteractionPitch) private var pitchEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:30:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
28 | // MARK: UserInteraction
29 | @Environment(\.mapInteractionZoom) private var zoomEnabled
30 | @Environment(\.mapInteractionScroll) private var scrollEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
31 | @Environment(\.mapInteractionPitch) private var pitchEnabled
32 | @Environment(\.mapInteractionRotate) private var rotateEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:31:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
29 | @Environment(\.mapInteractionZoom) private var zoomEnabled
30 | @Environment(\.mapInteractionScroll) private var scrollEnabled
31 | @Environment(\.mapInteractionPitch) private var pitchEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
32 | @Environment(\.mapInteractionRotate) private var rotateEnabled
33 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:32:6: error: 'Environment' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
30 | @Environment(\.mapInteractionScroll) private var scrollEnabled
31 | @Environment(\.mapInteractionPitch) private var pitchEnabled
32 | @Environment(\.mapInteractionRotate) private var rotateEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
33 |
34 | @Binding
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:34:6: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
32 | @Environment(\.mapInteractionRotate) private var rotateEnabled
33 |
34 | @Binding
| `- error: 'Binding' is only available in macOS 10.15 or newer
35 | private var region: MKCoordinateRegion
36 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:38:35: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
36 |
37 | private var showsUserLocation: Bool = false
38 | private var userTrackingMode: MKUserTrackingMode = .none
| `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
39 |
40 | @Binding
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:40:6: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
38 | private var userTrackingMode: MKUserTrackingMode = .none
39 |
40 | @Binding
| `- error: 'Binding' is only available in macOS 10.15 or newer
41 | private var points: [MapViewAnnotation]
42 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:44:32: error: cannot find type 'UIGestureRecognizer' in scope
42 |
43 | private var onSelection: ((MKAnnotation) -> Void)?
44 | private var onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?
| `- error: cannot find type 'UIGestureRecognizer' in scope
45 | private var userLocationChanged: ((MKUserLocation?, Error?) -> Void)?
46 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:75:24: error: cannot find type 'UIGestureRecognizer' in scope
73 | annotations: Binding<[MapViewAnnotation]>,
74 | onSelection: ((MKAnnotation) -> Void)? = nil,
75 | onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
| `- error: cannot find type 'UIGestureRecognizer' in scope
76 | userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
77 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:70:17: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
67 | /// - userLocationChanged: A callback passing in the changed
68 | /// `MKUserLocation`.
69 | public init(
| `- note: add @available attribute to enclosing initializer
70 | region: Binding<MKCoordinateRegion>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
71 | showsUserLocation: Bool = false,
72 | userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:72:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
67 | /// - userLocationChanged: A callback passing in the changed
68 | /// `MKUserLocation`.
69 | public init(
| `- note: add @available attribute to enclosing initializer
70 | region: Binding<MKCoordinateRegion>,
71 | showsUserLocation: Bool = false,
72 | userTrackingMode: MKUserTrackingMode = .none,
| `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
73 | annotations: Binding<[MapViewAnnotation]>,
74 | onSelection: ((MKAnnotation) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:73:22: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
67 | /// - userLocationChanged: A callback passing in the changed
68 | /// `MKUserLocation`.
69 | public init(
| `- note: add @available attribute to enclosing initializer
70 | region: Binding<MKCoordinateRegion>,
71 | showsUserLocation: Bool = false,
72 | userTrackingMode: MKUserTrackingMode = .none,
73 | annotations: Binding<[MapViewAnnotation]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
74 | onSelection: ((MKAnnotation) -> Void)? = nil,
75 | onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:108:24: error: cannot find type 'UIGestureRecognizer' in scope
106 | userTrackingMode: MKUserTrackingMode = .none,
107 | annotations: Binding<[MapViewAnnotation]>,
108 | onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
| `- error: cannot find type 'UIGestureRecognizer' in scope
109 | userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
110 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:104:17: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
101 | /// `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 | /// from where the gesture happened on the ``MapView``.
103 | public init(
| `- note: add @available attribute to enclosing initializer
104 | region: Binding<MKCoordinateRegion>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
105 | showsUserLocation: Bool = false,
106 | userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:106:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
101 | /// `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 | /// from where the gesture happened on the ``MapView``.
103 | public init(
| `- note: add @available attribute to enclosing initializer
104 | region: Binding<MKCoordinateRegion>,
105 | showsUserLocation: Bool = false,
106 | userTrackingMode: MKUserTrackingMode = .none,
| `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
107 | annotations: Binding<[MapViewAnnotation]>,
108 | onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:107:22: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
101 | /// `UILongPressGestureRecognizer` and a `CLLocationCoordinate2D`
102 | /// from where the gesture happened on the ``MapView``.
103 | public init(
| `- note: add @available attribute to enclosing initializer
104 | region: Binding<MKCoordinateRegion>,
105 | showsUserLocation: Bool = false,
106 | userTrackingMode: MKUserTrackingMode = .none,
107 | annotations: Binding<[MapViewAnnotation]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
108 | onLongPress: ((UIGestureRecognizer.State, CLLocationCoordinate2D) -> Void)?,
109 | userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:136:17: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
133 | /// - onSelection: A callback passing in a `MKAnnotation`
134 | /// item that was selected in the ``MapView``.
135 | public init(
| `- note: add @available attribute to enclosing initializer
136 | region: Binding<MKCoordinateRegion>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
137 | showsUserLocation: Bool = false,
138 | userTrackingMode: MKUserTrackingMode = .none,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:138:27: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
133 | /// - onSelection: A callback passing in a `MKAnnotation`
134 | /// item that was selected in the ``MapView``.
135 | public init(
| `- note: add @available attribute to enclosing initializer
136 | region: Binding<MKCoordinateRegion>,
137 | showsUserLocation: Bool = false,
138 | userTrackingMode: MKUserTrackingMode = .none,
| `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
139 | annotations: Binding<[MapViewAnnotation]>,
140 | onSelection: ((MKAnnotation) -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:139:22: error: 'Binding' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
133 | /// - onSelection: A callback passing in a `MKAnnotation`
134 | /// item that was selected in the ``MapView``.
135 | public init(
| `- note: add @available attribute to enclosing initializer
136 | region: Binding<MKCoordinateRegion>,
137 | showsUserLocation: Bool = false,
138 | userTrackingMode: MKUserTrackingMode = .none,
139 | annotations: Binding<[MapViewAnnotation]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
140 | onSelection: ((MKAnnotation) -> Void)?,
141 | userLocationChanged: ((MKUserLocation?, Error?) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:152:37: error: cannot find type 'Context' in scope
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- error: cannot find type 'Context' in scope
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:169:61: error: cannot find type 'Context' in scope
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- error: cannot find type 'Context' in scope
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:226:59: error: cannot find type 'UILongPressGestureRecognizer' in scope
224 | }
225 |
226 | private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
| `- error: cannot find type 'UILongPressGestureRecognizer' in scope
227 | UILongPressGestureRecognizer(
228 | target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:226:47: error: cannot find type 'Context' in scope
224 | }
225 |
226 | private func longPressGesture(in context: Context) -> UILongPressGestureRecognizer {
| `- error: cannot find type 'Context' in scope
227 | UILongPressGestureRecognizer(
228 | target: context.coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:12:25: error: cannot find type 'UIViewRepresentable' in scope
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
13 | public typealias UIViewType = MKMapView
14 |
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:148:28: error: 'nil' requires a contextual type
146 | self.userTrackingMode = userTrackingMode
147 | self.onSelection = onSelection
148 | self.onLongPress = nil
| `- error: 'nil' requires a contextual type
149 | self.userLocationChanged = userLocationChanged
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:157:17: error: 'userTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add @available attribute to enclosing instance method
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
155 | mapView.setRegion(region, animated: true)
156 | mapView.showsUserLocation = showsUserLocation
157 | mapView.userTrackingMode = userTrackingMode
| |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
158 | mapView.mapType = mapStyle()
159 | mapView.pointOfInterestFilter = poiFilter
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:159:17: error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add @available attribute to enclosing instance method
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
157 | mapView.userTrackingMode = userTrackingMode
158 | mapView.mapType = mapStyle()
159 | mapView.pointOfInterestFilter = poiFilter
| |- error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | mapView.isZoomEnabled = zoomEnabled
161 | mapView.isScrollEnabled = scrollEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:153:23: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
154 | mapView.delegate = context.coordinator
155 | mapView.setRegion(region, animated: true)
MapKit.MKMapView:125:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
123 | public init(frame frameRect: NSRect)
124 | public init?(coder: NSCoder)
125 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:155:17: warning: call to main actor-isolated instance method 'setRegion(_:animated:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
155 | mapView.setRegion(region, animated: true)
| `- warning: call to main actor-isolated instance method 'setRegion(_:animated:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
156 | mapView.showsUserLocation = showsUserLocation
157 | mapView.userTrackingMode = userTrackingMode
MapKit.MKMapView:9:26: note: calls to instance method 'setRegion(_:animated:)' from outside of its actor context are implicitly asynchronous
7 | @NSCopying open var preferredConfiguration: MKMapConfiguration { get set }
8 | open var region: MKCoordinateRegion { get set }
9 | @MainActor open func setRegion(_ region: MKCoordinateRegion, animated: Bool)
| `- note: calls to instance method 'setRegion(_:animated:)' from outside of its actor context are implicitly asynchronous
10 | open var centerCoordinate: CLLocationCoordinate2D { get set }
11 | open func setCenter(_ coordinate: CLLocationCoordinate2D, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:156:17: warning: main actor-isolated property 'showsUserLocation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
155 | mapView.setRegion(region, animated: true)
156 | mapView.showsUserLocation = showsUserLocation
| `- warning: main actor-isolated property 'showsUserLocation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
157 | mapView.userTrackingMode = userTrackingMode
158 | mapView.mapType = mapStyle()
MapKit.MKMapView:82:14: note: mutation of this property is only permitted within the actor
80 | @available(macOS, introduced: 10.11, deprecated: 100000)
81 | open var showsTraffic: Bool { get set }
82 | open var showsUserLocation: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
83 | open var userLocation: MKUserLocation { get }
84 | @available(macOS 11.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:157:17: warning: main actor-isolated property 'userTrackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
155 | mapView.setRegion(region, animated: true)
156 | mapView.showsUserLocation = showsUserLocation
157 | mapView.userTrackingMode = userTrackingMode
| `- warning: main actor-isolated property 'userTrackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
158 | mapView.mapType = mapStyle()
159 | mapView.pointOfInterestFilter = poiFilter
MapKit.MKMapView:85:14: note: mutation of this property is only permitted within the actor
83 | open var userLocation: MKUserLocation { get }
84 | @available(macOS 11.0, *)
85 | open var userTrackingMode: MKUserTrackingMode { get set }
| `- note: mutation of this property is only permitted within the actor
86 | @available(macOS 11.0, *)
87 | open func setUserTrackingMode(_ mode: MKUserTrackingMode, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:158:17: warning: main actor-isolated property 'mapType' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
156 | mapView.showsUserLocation = showsUserLocation
157 | mapView.userTrackingMode = userTrackingMode
158 | mapView.mapType = mapStyle()
| `- warning: main actor-isolated property 'mapType' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
159 | mapView.pointOfInterestFilter = poiFilter
160 | mapView.isZoomEnabled = zoomEnabled
MapKit.MKMapView:5:14: note: mutation of this property is only permitted within the actor
3 | @IBOutlet weak open var delegate: (any MKMapViewDelegate)? { get set }
4 | @available(macOS, introduced: 10.9, deprecated: 100000)
5 | open var mapType: MKMapType { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @available(macOS 13.0, *)
7 | @NSCopying open var preferredConfiguration: MKMapConfiguration { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:159:17: warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
157 | mapView.userTrackingMode = userTrackingMode
158 | mapView.mapType = mapStyle()
159 | mapView.pointOfInterestFilter = poiFilter
| `- warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
160 | mapView.isZoomEnabled = zoomEnabled
161 | mapView.isScrollEnabled = scrollEnabled
MapKit.MKMapView:75:25: note: mutation of this property is only permitted within the actor
73 | open var showsScale: Bool { get set }
74 | @available(macOS, introduced: 10.15, deprecated: 100000)
75 | @NSCopying open var pointOfInterestFilter: MKPointOfInterestFilter? { get set }
| `- note: mutation of this property is only permitted within the actor
76 | @available(macOS, introduced: 10.9, deprecated: 10.15, message: "Use pointOfInterestFilter")
77 | open var showsPointsOfInterest: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:160:17: warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
158 | mapView.mapType = mapStyle()
159 | mapView.pointOfInterestFilter = poiFilter
160 | mapView.isZoomEnabled = zoomEnabled
| `- warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
161 | mapView.isScrollEnabled = scrollEnabled
162 | mapView.isPitchEnabled = pitchEnabled
MapKit.MKMapView:46:14: note: mutation of this property is only permitted within the actor
44 | @available(swift, obsoleted: 3, renamed: "convert(_:toRegionFrom:)")
45 | open func convertRect(_ rect: CGRect, toRegionFromView view: NSView?) -> MKCoordinateRegion
46 | open var isZoomEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
47 | @available(swift, obsoleted: 3, renamed: "isZoomEnabled")
48 | open var zoomEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:161:17: warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
159 | mapView.pointOfInterestFilter = poiFilter
160 | mapView.isZoomEnabled = zoomEnabled
161 | mapView.isScrollEnabled = scrollEnabled
| `- warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
162 | mapView.isPitchEnabled = pitchEnabled
163 | mapView.isRotateEnabled = rotateEnabled
MapKit.MKMapView:49:14: note: mutation of this property is only permitted within the actor
47 | @available(swift, obsoleted: 3, renamed: "isZoomEnabled")
48 | open var zoomEnabled: Bool { get set }
49 | open var isScrollEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
50 | @available(swift, obsoleted: 3, renamed: "isScrollEnabled")
51 | open var scrollEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:162:17: warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
160 | mapView.isZoomEnabled = zoomEnabled
161 | mapView.isScrollEnabled = scrollEnabled
162 | mapView.isPitchEnabled = pitchEnabled
| `- warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
163 | mapView.isRotateEnabled = rotateEnabled
164 |
MapKit.MKMapView:58:14: note: mutation of this property is only permitted within the actor
56 | open var rotateEnabled: Bool { get set }
57 | @available(macOS 10.9, *)
58 | open var isPitchEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.9, *)
60 | @available(swift, obsoleted: 3, renamed: "isPitchEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:163:17: warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
150 | }
151 |
152 | public func makeUIView(context: Context) -> MKMapView {
| `- note: add '@MainActor' to make instance method 'makeUIView(context:)' part of global actor 'MainActor'
153 | let mapView = MKMapView()
154 | mapView.delegate = context.coordinator
:
161 | mapView.isScrollEnabled = scrollEnabled
162 | mapView.isPitchEnabled = pitchEnabled
163 | mapView.isRotateEnabled = rotateEnabled
| `- warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
164 |
165 | mapView.addGestureRecognizer(longPressGesture(in: context))
MapKit.MKMapView:53:14: note: mutation of this property is only permitted within the actor
51 | open var scrollEnabled: Bool { get set }
52 | @available(macOS 10.9, *)
53 | open var isRotateEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
54 | @available(macOS 10.9, *)
55 | @available(swift, obsoleted: 3, renamed: "isRotateEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:174:17: error: 'userTrackingMode' is only available in macOS 11.0 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add @available attribute to enclosing instance method
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
172 |
173 | mapView.showsUserLocation = showsUserLocation
174 | mapView.userTrackingMode = userTrackingMode
| |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
175 | mapView.mapType = mapStyle()
176 | mapView.pointOfInterestFilter = poiFilter
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:176:17: error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS, deprecated: 16, renamed: "MapView")
12 | public struct LMapView: UIViewRepresentable {
| `- note: add @available attribute to enclosing struct
13 | public typealias UIViewType = MKMapView
14 |
:
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add @available attribute to enclosing instance method
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
174 | mapView.userTrackingMode = userTrackingMode
175 | mapView.mapType = mapStyle()
176 | mapView.pointOfInterestFilter = poiFilter
| |- error: 'pointOfInterestFilter' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
177 | mapView.isZoomEnabled = zoomEnabled
178 | mapView.isScrollEnabled = scrollEnabled
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:170:17: warning: call to main actor-isolated instance method 'removeOverlays' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
| `- warning: call to main actor-isolated instance method 'removeOverlays' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
171 | mapView.removeAnnotations(mapView.annotations)
172 |
MapKit.MKMapView:15:26: note: calls to instance method 'removeOverlays' from outside of its actor context are implicitly asynchronous
13 | open func remove(_ overlay: any MKOverlay)
14 | @available(macOS 10.9, *)
15 | @MainActor open func removeOverlays(_ overlays: [any MKOverlay])
| `- note: calls to instance method 'removeOverlays' from outside of its actor context are implicitly asynchronous
16 | @available(macOS 10.9, *)
17 | open func insertOverlay(_ overlay: any MKOverlay, at index: Int, level: MKOverlayLevel)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:170:40: warning: main actor-isolated property 'overlays' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
| `- warning: main actor-isolated property 'overlays' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
171 | mapView.removeAnnotations(mapView.annotations)
172 |
MapKit.MKMapView:46:14: note: property declared here
44 | open func exchangeOverlay(_ overlay1: any MKOverlay, withOverlay overlay2: any MKOverlay)
45 | @available(macOS 10.9, *)
46 | open var overlays: [any MKOverlay] { get }
| `- note: property declared here
47 | @available(macOS 10.9, *)
48 | @MainActor open func overlays(in level: MKOverlayLevel) -> [any MKOverlay]
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:171:17: warning: call to main actor-isolated instance method 'removeAnnotations' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
| `- warning: call to main actor-isolated instance method 'removeAnnotations' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
172 |
173 | mapView.showsUserLocation = showsUserLocation
MapKit.MKMapView:94:15: note: calls to instance method 'removeAnnotations' from outside of its actor context are implicitly asynchronous
92 | open func addAnnotations(_ annotations: [any MKAnnotation])
93 | open func removeAnnotation(_ annotation: any MKAnnotation)
94 | open func removeAnnotations(_ annotations: [any MKAnnotation])
| `- note: calls to instance method 'removeAnnotations' from outside of its actor context are implicitly asynchronous
95 | open var annotations: [any MKAnnotation] { get }
96 | @available(macOS 10.9, *)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:171:43: warning: main actor-isolated property 'annotations' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
| `- warning: main actor-isolated property 'annotations' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
172 |
173 | mapView.showsUserLocation = showsUserLocation
MapKit.MKMapView:95:14: note: property declared here
93 | open func removeAnnotation(_ annotation: any MKAnnotation)
94 | open func removeAnnotations(_ annotations: [any MKAnnotation])
95 | open var annotations: [any MKAnnotation] { get }
| `- note: property declared here
96 | @available(macOS 10.9, *)
97 | open func annotations(in mapRect: MKMapRect) -> Set<AnyHashable>
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:173:17: warning: main actor-isolated property 'showsUserLocation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
172 |
173 | mapView.showsUserLocation = showsUserLocation
| `- warning: main actor-isolated property 'showsUserLocation' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
174 | mapView.userTrackingMode = userTrackingMode
175 | mapView.mapType = mapStyle()
MapKit.MKMapView:82:14: note: mutation of this property is only permitted within the actor
80 | @available(macOS, introduced: 10.11, deprecated: 100000)
81 | open var showsTraffic: Bool { get set }
82 | open var showsUserLocation: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
83 | open var userLocation: MKUserLocation { get }
84 | @available(macOS 11.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:174:17: warning: main actor-isolated property 'userTrackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
172 |
173 | mapView.showsUserLocation = showsUserLocation
174 | mapView.userTrackingMode = userTrackingMode
| `- warning: main actor-isolated property 'userTrackingMode' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
175 | mapView.mapType = mapStyle()
176 | mapView.pointOfInterestFilter = poiFilter
MapKit.MKMapView:85:14: note: mutation of this property is only permitted within the actor
83 | open var userLocation: MKUserLocation { get }
84 | @available(macOS 11.0, *)
85 | open var userTrackingMode: MKUserTrackingMode { get set }
| `- note: mutation of this property is only permitted within the actor
86 | @available(macOS 11.0, *)
87 | open func setUserTrackingMode(_ mode: MKUserTrackingMode, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:175:17: warning: main actor-isolated property 'mapType' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
173 | mapView.showsUserLocation = showsUserLocation
174 | mapView.userTrackingMode = userTrackingMode
175 | mapView.mapType = mapStyle()
| `- warning: main actor-isolated property 'mapType' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
176 | mapView.pointOfInterestFilter = poiFilter
177 | mapView.isZoomEnabled = zoomEnabled
MapKit.MKMapView:5:14: note: mutation of this property is only permitted within the actor
3 | @IBOutlet weak open var delegate: (any MKMapViewDelegate)? { get set }
4 | @available(macOS, introduced: 10.9, deprecated: 100000)
5 | open var mapType: MKMapType { get set }
| `- note: mutation of this property is only permitted within the actor
6 | @available(macOS 13.0, *)
7 | @NSCopying open var preferredConfiguration: MKMapConfiguration { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:176:17: warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
174 | mapView.userTrackingMode = userTrackingMode
175 | mapView.mapType = mapStyle()
176 | mapView.pointOfInterestFilter = poiFilter
| `- warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
177 | mapView.isZoomEnabled = zoomEnabled
178 | mapView.isScrollEnabled = scrollEnabled
MapKit.MKMapView:75:25: note: mutation of this property is only permitted within the actor
73 | open var showsScale: Bool { get set }
74 | @available(macOS, introduced: 10.15, deprecated: 100000)
75 | @NSCopying open var pointOfInterestFilter: MKPointOfInterestFilter? { get set }
| `- note: mutation of this property is only permitted within the actor
76 | @available(macOS, introduced: 10.9, deprecated: 10.15, message: "Use pointOfInterestFilter")
77 | open var showsPointsOfInterest: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:177:17: warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
175 | mapView.mapType = mapStyle()
176 | mapView.pointOfInterestFilter = poiFilter
177 | mapView.isZoomEnabled = zoomEnabled
| `- warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
178 | mapView.isScrollEnabled = scrollEnabled
179 | mapView.isPitchEnabled = pitchEnabled
MapKit.MKMapView:46:14: note: mutation of this property is only permitted within the actor
44 | @available(swift, obsoleted: 3, renamed: "convert(_:toRegionFrom:)")
45 | open func convertRect(_ rect: CGRect, toRegionFromView view: NSView?) -> MKCoordinateRegion
46 | open var isZoomEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
47 | @available(swift, obsoleted: 3, renamed: "isZoomEnabled")
48 | open var zoomEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:178:17: warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
176 | mapView.pointOfInterestFilter = poiFilter
177 | mapView.isZoomEnabled = zoomEnabled
178 | mapView.isScrollEnabled = scrollEnabled
| `- warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
179 | mapView.isPitchEnabled = pitchEnabled
180 | mapView.isRotateEnabled = rotateEnabled
MapKit.MKMapView:49:14: note: mutation of this property is only permitted within the actor
47 | @available(swift, obsoleted: 3, renamed: "isZoomEnabled")
48 | open var zoomEnabled: Bool { get set }
49 | open var isScrollEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
50 | @available(swift, obsoleted: 3, renamed: "isScrollEnabled")
51 | open var scrollEnabled: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:179:17: warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
177 | mapView.isZoomEnabled = zoomEnabled
178 | mapView.isScrollEnabled = scrollEnabled
179 | mapView.isPitchEnabled = pitchEnabled
| `- warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
180 | mapView.isRotateEnabled = rotateEnabled
181 |
MapKit.MKMapView:58:14: note: mutation of this property is only permitted within the actor
56 | open var rotateEnabled: Bool { get set }
57 | @available(macOS 10.9, *)
58 | open var isPitchEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
59 | @available(macOS 10.9, *)
60 | @available(swift, obsoleted: 3, renamed: "isPitchEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:180:17: warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
178 | mapView.isScrollEnabled = scrollEnabled
179 | mapView.isPitchEnabled = pitchEnabled
180 | mapView.isRotateEnabled = rotateEnabled
| `- warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
181 |
182 | if routeVisibility == .visible {
MapKit.MKMapView:53:14: note: mutation of this property is only permitted within the actor
51 | open var scrollEnabled: Bool { get set }
52 | @available(macOS 10.9, *)
53 | open var isRotateEnabled: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
54 | @available(macOS 10.9, *)
55 | @available(swift, obsoleted: 3, renamed: "isRotateEnabled")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:184:21: warning: call to main actor-isolated instance method 'addOverlay' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
182 | if routeVisibility == .visible {
183 | let polyline = MKPolyline(coordinates: points.map { $0.coordinate }, count: points.count)
184 | mapView.addOverlay(polyline)
| `- warning: call to main actor-isolated instance method 'addOverlay' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
185 | }
186 |
MapKit.MKMapView:58:26: note: calls to instance method 'addOverlay' from outside of its actor context are implicitly asynchronous
56 | open func rendererForOverlay(_ overlay: any MKOverlay) -> MKOverlayRenderer?
57 | @available(macOS 10.9, *)
58 | @MainActor open func addOverlay(_ overlay: any MKOverlay)
| `- note: calls to instance method 'addOverlay' from outside of its actor context are implicitly asynchronous
59 | @available(macOS 10.9, *)
60 | @available(swift, obsoleted: 4.2, renamed: "addOverlay(_:)")
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:189:25: warning: call to main actor-isolated instance method 'addAnnotation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
187 | if annotationVisibility == .visible {
188 | points.forEach { point in
189 | mapView.addAnnotation(point)
| `- warning: call to main actor-isolated instance method 'addAnnotation' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
190 | }
191 | }
MapKit.MKMapView:91:15: note: calls to instance method 'addAnnotation' from outside of its actor context are implicitly asynchronous
89 | @available(swift, obsoleted: 3, renamed: "isUserLocationVisible")
90 | open var userLocationVisible: Bool { get }
91 | open func addAnnotation(_ annotation: any MKAnnotation)
| `- note: calls to instance method 'addAnnotation' from outside of its actor context are implicitly asynchronous
92 | open func addAnnotations(_ annotations: [any MKAnnotation])
93 | open func removeAnnotation(_ annotation: any MKAnnotation)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:195:21: warning: call to main actor-isolated instance method 'showAnnotations(_:animated:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
193 | // fit annotations only when not tracking user location
194 | if fitAnnotations && userTrackingMode == .none {
195 | mapView.showAnnotations(mapView.annotations, animated: true)
| `- warning: call to main actor-isolated instance method 'showAnnotations(_:animated:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
196 | }
197 | }
MapKit.MKMapView:122:15: note: calls to instance method 'showAnnotations(_:animated:)' from outside of its actor context are implicitly asynchronous
120 | open var annotationVisibleRect: CGRect { get }
121 | @available(macOS 10.9, *)
122 | open func showAnnotations(_ annotations: [any MKAnnotation], animated: Bool)
| `- note: calls to instance method 'showAnnotations(_:animated:)' from outside of its actor context are implicitly asynchronous
123 | public init(frame frameRect: NSRect)
124 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/LPMapView/MapView+Compatibility.swift:195:45: warning: main actor-isolated property 'annotations' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
167 | }
168 |
169 | public func updateUIView(_ mapView: MKMapView, context: Context) {
| `- note: add '@MainActor' to make instance method 'updateUIView(_:context:)' part of global actor 'MainActor'
170 | mapView.removeOverlays(mapView.overlays)
171 | mapView.removeAnnotations(mapView.annotations)
:
193 | // fit annotations only when not tracking user location
194 | if fitAnnotations && userTrackingMode == .none {
195 | mapView.showAnnotations(mapView.annotations, animated: true)
| `- warning: main actor-isolated property 'annotations' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
196 | }
197 | }
MapKit.MKMapView:95:14: note: property declared here
93 | open func removeAnnotation(_ annotation: any MKAnnotation)
94 | open func removeAnnotations(_ annotations: [any MKAnnotation])
95 | open var annotations: [any MKAnnotation] { get }
| `- note: property declared here
96 | @available(macOS 10.9, *)
97 | open func annotations(in mapRect: MKMapRect) -> Set<AnyHashable>
BUILD FAILURE 6.0 macosSpm