Build Information
Failed to build SwiftUIMap with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Mcrich23/SwiftUIMap.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Mcrich23/SwiftUIMap
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f3d6215 bug fixes
Cloned https://github.com/Mcrich23/SwiftUIMap.git
Revision (git rev-parse @):
f3d62154a7f6f58011b3a8abb57883f924a9a0bf
SUCCESS checkout https://github.com/Mcrich23/SwiftUIMap.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Mcrich23/SwiftUIMap.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/10] Compiling SwiftUIMap ReversedGeoLocation.swift
[4/10] Emitting module SwiftUIMap
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:62:38: error: cannot find type 'LocationCoordinate' in scope
60 | }
61 | @Binding public var address: String
62 | @Binding public var coordinates: LocationCoordinate
| `- error: cannot find type 'LocationCoordinate' in scope
63 | @Binding var isUserLocationVisible: Bool
64 | @State var refresh = false {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:73:34: error: cannot find type 'Annotations' in scope
71 | }
72 | }
73 | @Binding public var points: [Annotations]
| `- error: cannot find type 'Annotations' in scope
74 | @State private var region: LocationRegion
75 | @State public var modifierMap: MKMapView
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:74:32: error: cannot find type 'LocationRegion' in scope
72 | }
73 | @Binding public var points: [Annotations]
74 | @State private var region: LocationRegion
| `- error: cannot find type 'LocationRegion' in scope
75 | @State public var modifierMap: MKMapView
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:76:83: error: cannot find type 'Location' in scope
74 | @State private var region: LocationRegion
75 | @State public var modifierMap: MKMapView
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
| `- error: cannot find type 'Location' in scope
77 | @State public var deselected: () -> Void
78 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:68:21: warning: capture of 'self' with non-sendable type 'AnnotationMapView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | */
54 |
55 | public struct AnnotationMapView: View {
| `- note: consider making struct 'AnnotationMapView' conform to the 'Sendable' protocol
56 | @Binding public var zoom: Double {
57 | didSet {
:
66 | if refresh {
67 | DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(50)) {
68 | refresh = false
| `- warning: capture of 'self' with non-sendable type 'AnnotationMapView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:78:83: error: cannot find type 'Annotations' in scope
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
77 | @State public var deselected: () -> Void
78 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
79 | self._zoom = zoom
80 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:78:168: error: cannot find type 'Location' in scope
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
77 | @State public var deselected: () -> Void
78 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
79 | self._zoom = zoom
80 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:95:83: error: cannot find type 'Annotations' in scope
93 | setCoordinatesFromAddress()
94 | }
95 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>) {
| `- error: cannot find type 'Annotations' in scope
96 | self._zoom = zoom
97 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:112:83: error: cannot find type 'Annotations' in scope
110 | setCoordinatesFromAddress()
111 | }
112 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
113 | self._zoom = zoom
114 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:112:168: error: cannot find type 'Location' in scope
110 | setCoordinatesFromAddress()
111 | }
112 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
113 | self._zoom = zoom
114 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:134:83: error: cannot find type 'Annotations' in scope
132 | self.setCoordinatesFromAddress()
133 | }
134 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
135 | self._zoom = zoom
136 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:134:206: error: cannot find type 'Location' in scope
132 | self.setCoordinatesFromAddress()
133 | }
134 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
135 | self._zoom = zoom
136 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:151:83: error: cannot find type 'Annotations' in scope
149 | self.setCoordinatesFromAddress()
150 | }
151 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
152 | self._zoom = zoom
153 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:151:239: error: cannot find type 'Location' in scope
149 | self.setCoordinatesFromAddress()
150 | }
151 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
152 | self._zoom = zoom
153 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:173:61: error: cannot find type 'LocationCoordinate' in scope
171 | self.setCoordinatesFromAddress()
172 | }
173 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
174 | self._zoom = zoom
175 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:173:99: error: cannot find type 'Annotations' in scope
171 | self.setCoordinatesFromAddress()
172 | }
173 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
174 | self._zoom = zoom
175 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:173:184: error: cannot find type 'Location' in scope
171 | self.setCoordinatesFromAddress()
172 | }
173 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
174 | self._zoom = zoom
175 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:189:61: error: cannot find type 'LocationCoordinate' in scope
187 | setDefaultCamera(self.modifierMap)
188 | }
189 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>) {
| `- error: cannot find type 'LocationCoordinate' in scope
190 | self._zoom = zoom
191 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:189:99: error: cannot find type 'Annotations' in scope
187 | setDefaultCamera(self.modifierMap)
188 | }
189 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>) {
| `- error: cannot find type 'Annotations' in scope
190 | self._zoom = zoom
191 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:205:61: error: cannot find type 'LocationCoordinate' in scope
203 | setDefaultCamera(self.modifierMap)
204 | }
205 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
206 | self._zoom = zoom
207 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:205:99: error: cannot find type 'Annotations' in scope
203 | setDefaultCamera(self.modifierMap)
204 | }
205 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
206 | self._zoom = zoom
207 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:205:184: error: cannot find type 'Location' in scope
203 | setDefaultCamera(self.modifierMap)
204 | }
205 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
206 | self._zoom = zoom
207 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:226:61: error: cannot find type 'LocationCoordinate' in scope
224 | self.setDefaultCamera(self.modifierMap)
225 | }
226 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
227 | self._zoom = zoom
228 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:226:99: error: cannot find type 'Annotations' in scope
224 | self.setDefaultCamera(self.modifierMap)
225 | }
226 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
227 | self._zoom = zoom
228 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:226:222: error: cannot find type 'Location' in scope
224 | self.setDefaultCamera(self.modifierMap)
225 | }
226 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
227 | self._zoom = zoom
228 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:242:61: error: cannot find type 'LocationCoordinate' in scope
240 | self.setDefaultCamera(self.modifierMap)
241 | }
242 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
243 | self._zoom = zoom
244 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:242:99: error: cannot find type 'Annotations' in scope
240 | self.setDefaultCamera(self.modifierMap)
241 | }
242 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
243 | self._zoom = zoom
244 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:242:255: error: cannot find type 'Location' in scope
240 | self.setDefaultCamera(self.modifierMap)
241 | }
242 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
243 | self._zoom = zoom
244 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:583:42: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
53 | */
54 |
55 | public struct AnnotationMapView: View {
| `- note: add @available attribute to enclosing struct
56 | @Binding public var zoom: Double {
57 | didSet {
:
581 | ```
582 | */
583 | public func userTrackingMode(_ mode: MKUserTrackingMode) -> AnnotationMapView {
| | `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
584 | modifierMap.userTrackingMode = mode
585 | return self
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:14:36: error: cannot find type 'UISearchBar' in scope
12 |
13 | struct SearchBar: UIViewRepresentable {
14 | @Binding var searchBarDetails: UISearchBar
| `- error: cannot find type 'UISearchBar' in scope
15 | @Binding var text: String
16 | var onCommit: (_ value: String) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:18:34: error: cannot find type 'UISearchBarDelegate' in scope
16 | var onCommit: (_ value: String) -> Void
17 |
18 | class Coordinator: NSObject, UISearchBarDelegate {
| `- error: cannot find type 'UISearchBarDelegate' in scope
19 |
20 | @Binding var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:28:37: error: cannot find type 'UISearchBar' in scope
26 | }
27 |
28 | func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
| `- error: cannot find type 'UISearchBar' in scope
29 | text = searchText
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:32:56: error: cannot find type 'UISearchBar' in scope
30 | }
31 |
32 | func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
| `- error: cannot find type 'UISearchBar' in scope
33 | print("resign keyboard")
34 | searchBar.resignFirstResponder()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:44:72: error: cannot find type 'UISearchBar' in scope
42 | }
43 |
44 | func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
| `- error: cannot find type 'UISearchBar' in scope
45 | let searchBar = searchBarDetails
46 | searchBar.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:44:30: error: cannot find type 'UIViewRepresentableContext' in scope
42 | }
43 |
44 | func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
45 | let searchBar = searchBarDetails
46 | searchBar.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:60:33: error: cannot find type 'UISearchBar' in scope
58 | return searchBar
59 | }
60 | func updateUIView(_ uiView: UISearchBar, context: UIViewRepresentableContext<SearchBar>) {
| `- error: cannot find type 'UISearchBar' in scope
61 | uiView.text = text
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:60:55: error: cannot find type 'UIViewRepresentableContext' in scope
58 | return searchBar
59 | }
60 | func updateUIView(_ uiView: UISearchBar, context: UIViewRepresentableContext<SearchBar>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
61 | uiView.text = text
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:13:19: error: cannot find type 'UIViewRepresentable' in scope
11 | import MapKit
12 |
13 | struct SearchBar: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
14 | @Binding var searchBarDetails: UISearchBar
15 | @Binding var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:39:34: error: cannot find type 'UISearchBar' in scope
37 | @State private var isBtnActive = false
38 | @State var completion = MKLocalSearchCompletion()
39 | @State var searchBarDetails: UISearchBar = UISearchBar()
| `- error: cannot find type 'UISearchBar' in scope
40 |
41 | public init(resultTypes: MKLocalSearchCompleter.ResultType, onSelect: @escaping (_ title: String, _ address: String) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:32:6: error: 'StateObject' is only available in macOS 11.0 or newer
29 |
30 | */
31 | public struct MapSearchView: View {
| `- note: add @available attribute to enclosing struct
32 | @StateObject private var mapSearch: MapSearch
| `- error: 'StateObject' is only available in macOS 11.0 or newer
33 | @Environment(\.presentationMode) var presentationMode
34 | var onSelect: (_ title: String, _ address: String, _ placemark: CLPlacemark) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:138:44: error: cannot find type 'UIBarButtonItem' in scope
136 | }
137 |
138 | public func toolbarButtons(_ buttons: [UIBarButtonItem]) -> Self {
| `- error: cannot find type 'UIBarButtonItem' in scope
139 | let bar = UIToolbar()
140 | bar.items = buttons
[5/10] Compiling SwiftUIMap Search Bar.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:14:36: error: cannot find type 'UISearchBar' in scope
12 |
13 | struct SearchBar: UIViewRepresentable {
14 | @Binding var searchBarDetails: UISearchBar
| `- error: cannot find type 'UISearchBar' in scope
15 | @Binding var text: String
16 | var onCommit: (_ value: String) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:18:34: error: cannot find type 'UISearchBarDelegate' in scope
16 | var onCommit: (_ value: String) -> Void
17 |
18 | class Coordinator: NSObject, UISearchBarDelegate {
| `- error: cannot find type 'UISearchBarDelegate' in scope
19 |
20 | @Binding var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:28:37: error: cannot find type 'UISearchBar' in scope
26 | }
27 |
28 | func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
| `- error: cannot find type 'UISearchBar' in scope
29 | text = searchText
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:32:56: error: cannot find type 'UISearchBar' in scope
30 | }
31 |
32 | func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
| `- error: cannot find type 'UISearchBar' in scope
33 | print("resign keyboard")
34 | searchBar.resignFirstResponder()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:44:72: error: cannot find type 'UISearchBar' in scope
42 | }
43 |
44 | func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
| `- error: cannot find type 'UISearchBar' in scope
45 | let searchBar = searchBarDetails
46 | searchBar.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:44:30: error: cannot find type 'UIViewRepresentableContext' in scope
42 | }
43 |
44 | func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
45 | let searchBar = searchBarDetails
46 | searchBar.delegate = context.coordinator
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:60:33: error: cannot find type 'UISearchBar' in scope
58 | return searchBar
59 | }
60 | func updateUIView(_ uiView: UISearchBar, context: UIViewRepresentableContext<SearchBar>) {
| `- error: cannot find type 'UISearchBar' in scope
61 | uiView.text = text
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:60:55: error: cannot find type 'UIViewRepresentableContext' in scope
58 | return searchBar
59 | }
60 | func updateUIView(_ uiView: UISearchBar, context: UIViewRepresentableContext<SearchBar>) {
| `- error: cannot find type 'UIViewRepresentableContext' in scope
61 | uiView.text = text
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:13:19: error: cannot find type 'UIViewRepresentable' in scope
11 | import MapKit
12 |
13 | struct SearchBar: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
14 | @Binding var searchBarDetails: UISearchBar
15 | @Binding var text: String
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:47:53: error: cannot infer contextual base in reference to member 'minimal'
45 | let searchBar = searchBarDetails
46 | searchBar.delegate = context.coordinator
47 | if self.searchBarDetails.searchBarStyle != .minimal {
| `- error: cannot infer contextual base in reference to member 'minimal'
48 | searchBar.searchBarStyle = self.searchBarDetails.searchBarStyle
49 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:50:41: error: cannot infer contextual base in reference to member 'minimal'
48 | searchBar.searchBarStyle = self.searchBarDetails.searchBarStyle
49 | } else {
50 | searchBar.searchBarStyle = .minimal
| `- error: cannot infer contextual base in reference to member 'minimal'
51 | }
52 | if self.searchBarDetails.returnKeyType != .search {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:52:52: error: cannot infer contextual base in reference to member 'search'
50 | searchBar.searchBarStyle = .minimal
51 | }
52 | if self.searchBarDetails.returnKeyType != .search {
| `- error: cannot infer contextual base in reference to member 'search'
53 | searchBar.returnKeyType = self.searchBarDetails.returnKeyType
54 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search Bar.swift:55:40: error: cannot infer contextual base in reference to member 'search'
53 | searchBar.returnKeyType = self.searchBarDetails.returnKeyType
54 | } else {
55 | searchBar.returnKeyType = .search
| `- error: cannot infer contextual base in reference to member 'search'
56 | }
57 | self.searchBarDetails = searchBar
[6/10] Compiling SwiftUIMap Search View.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:39:34: error: cannot find type 'UISearchBar' in scope
37 | @State private var isBtnActive = false
38 | @State var completion = MKLocalSearchCompletion()
39 | @State var searchBarDetails: UISearchBar = UISearchBar()
| `- error: cannot find type 'UISearchBar' in scope
40 |
41 | public init(resultTypes: MKLocalSearchCompleter.ResultType, onSelect: @escaping (_ title: String, _ address: String) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:32:6: error: 'StateObject' is only available in macOS 11.0 or newer
29 |
30 | */
31 | public struct MapSearchView: View {
| `- note: add @available attribute to enclosing struct
32 | @StateObject private var mapSearch: MapSearch
| `- error: 'StateObject' is only available in macOS 11.0 or newer
33 | @Environment(\.presentationMode) var presentationMode
34 | var onSelect: (_ title: String, _ address: String, _ placemark: CLPlacemark) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:138:44: error: cannot find type 'UIBarButtonItem' in scope
136 | }
137 |
138 | public func toolbarButtons(_ buttons: [UIBarButtonItem]) -> Self {
| `- error: cannot find type 'UIBarButtonItem' in scope
139 | let bar = UIToolbar()
140 | bar.items = buttons
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:45:27: error: 'StateObject' is only available in macOS 11.0 or newer
29 |
30 | */
31 | public struct MapSearchView: View {
| `- note: add @available attribute to enclosing struct
32 | @StateObject private var mapSearch: MapSearch
33 | @Environment(\.presentationMode) var presentationMode
:
39 | @State var searchBarDetails: UISearchBar = UISearchBar()
40 |
41 | public init(resultTypes: MKLocalSearchCompleter.ResultType, onSelect: @escaping (_ title: String, _ address: String) -> Void) {
| `- note: add @available attribute to enclosing initializer
42 | self.onSelect = { title, address, _ in
43 | onSelect(title, address)
44 | }
45 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: nil))
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
46 | }
47 | public init(resultTypes: MKLocalSearchCompleter.ResultType, pointOfInterestFilter: MKPointOfInterestFilter?, onSelect: @escaping (_ title: String, _ address: String) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:51:27: error: 'StateObject' is only available in macOS 11.0 or newer
29 |
30 | */
31 | public struct MapSearchView: View {
| `- note: add @available attribute to enclosing struct
32 | @StateObject private var mapSearch: MapSearch
33 | @Environment(\.presentationMode) var presentationMode
:
45 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: nil))
46 | }
47 | public init(resultTypes: MKLocalSearchCompleter.ResultType, pointOfInterestFilter: MKPointOfInterestFilter?, onSelect: @escaping (_ title: String, _ address: String) -> Void) {
| `- note: add @available attribute to enclosing initializer
48 | self.onSelect = { title, address, _ in
49 | onSelect(title, address)
50 | }
51 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: pointOfInterestFilter))
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
52 | }
53 | public init(resultTypes: MKLocalSearchCompleter.ResultType, onSelectAdvanced: @escaping (_ title: String, _ placemark: CLPlacemark) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:57:27: error: 'StateObject' is only available in macOS 11.0 or newer
29 |
30 | */
31 | public struct MapSearchView: View {
| `- note: add @available attribute to enclosing struct
32 | @StateObject private var mapSearch: MapSearch
33 | @Environment(\.presentationMode) var presentationMode
:
51 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: pointOfInterestFilter))
52 | }
53 | public init(resultTypes: MKLocalSearchCompleter.ResultType, onSelectAdvanced: @escaping (_ title: String, _ placemark: CLPlacemark) -> Void) {
| `- note: add @available attribute to enclosing initializer
54 | self.onSelect = { title, _, placemark in
55 | onSelectAdvanced(title, placemark)
56 | }
57 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: nil))
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
58 | }
59 | public init(resultTypes: MKLocalSearchCompleter.ResultType, pointOfInterestFilter: MKPointOfInterestFilter?, onSelectAdvanced: @escaping (_ title: String, _ placemark: CLPlacemark) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:63:27: error: 'StateObject' is only available in macOS 11.0 or newer
29 |
30 | */
31 | public struct MapSearchView: View {
| `- note: add @available attribute to enclosing struct
32 | @StateObject private var mapSearch: MapSearch
33 | @Environment(\.presentationMode) var presentationMode
:
57 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: nil))
58 | }
59 | public init(resultTypes: MKLocalSearchCompleter.ResultType, pointOfInterestFilter: MKPointOfInterestFilter?, onSelectAdvanced: @escaping (_ title: String, _ placemark: CLPlacemark) -> Void) {
| `- note: add @available attribute to enclosing initializer
60 | self.onSelect = { title, _, placemark in
61 | onSelectAdvanced(title, placemark)
62 | }
63 | self._mapSearch = StateObject(wrappedValue: MapSearch(resultTypes: resultTypes, pointOfInterestFilter: pointOfInterestFilter))
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
64 | }
65 | // public init(address: Binding<String>) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:73:19: error: cannot find 'UIColor' in scope
71 | public var body: some View {
72 | ZStack {
73 | Color(UIColor.systemGroupedBackground)
| `- error: cannot find 'UIColor' in scope
74 | VStack {
75 | SearchBar(searchBarDetails: $searchBarDetails, text: $mapSearch.searchTerm, onCommit: {text in })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:139:19: error: cannot find 'UIToolbar' in scope
137 |
138 | public func toolbarButtons(_ buttons: [UIBarButtonItem]) -> Self {
139 | let bar = UIToolbar()
| `- error: cannot find 'UIToolbar' in scope
140 | bar.items = buttons
141 | bar.sizeToFit()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Search/Search View.swift:164:14: error: 'flatMap(maxPublishers:_:)' is only available in macOS 11.0 or newer
144 | }
145 | }
146 | class MapSearch : NSObject, ObservableObject {
| `- note: add @available attribute to enclosing class
147 | @Published var locationResults : [MKLocalSearchCompletion] = []
148 | @Published var searchTerm = ""
:
153 | private var currentPromise : ((Result<[MKLocalSearchCompletion], Error>) -> Void)?
154 |
155 | init(resultTypes: MKLocalSearchCompleter.ResultType, pointOfInterestFilter: MKPointOfInterestFilter?) {
| `- note: add @available attribute to enclosing initializer
156 | super.init()
157 | searchCompleter.delegate = self
:
162 | .debounce(for: .seconds(0.2), scheduler: RunLoop.main)
163 | .removeDuplicates()
164 | .flatMap({ (currentSearchTerm) in
| |- error: 'flatMap(maxPublishers:_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
165 | self.searchTermToResults(searchTerm: currentSearchTerm)
166 | })
[7/10] Compiling SwiftUIMap MutatableAnnotationMap.swift
[8/10] Compiling SwiftUIMap AnnotationMapView.swift
[9/10] Compiling SwiftUIMap Data Structs.swift
[10/10] Compiling SwiftUIMap Public View.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:62:38: error: cannot find type 'LocationCoordinate' in scope
60 | }
61 | @Binding public var address: String
62 | @Binding public var coordinates: LocationCoordinate
| `- error: cannot find type 'LocationCoordinate' in scope
63 | @Binding var isUserLocationVisible: Bool
64 | @State var refresh = false {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:73:34: error: cannot find type 'Annotations' in scope
71 | }
72 | }
73 | @Binding public var points: [Annotations]
| `- error: cannot find type 'Annotations' in scope
74 | @State private var region: LocationRegion
75 | @State public var modifierMap: MKMapView
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:74:32: error: cannot find type 'LocationRegion' in scope
72 | }
73 | @Binding public var points: [Annotations]
74 | @State private var region: LocationRegion
| `- error: cannot find type 'LocationRegion' in scope
75 | @State public var modifierMap: MKMapView
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:76:83: error: cannot find type 'Location' in scope
74 | @State private var region: LocationRegion
75 | @State public var modifierMap: MKMapView
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
| `- error: cannot find type 'Location' in scope
77 | @State public var deselected: () -> Void
78 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:68:21: warning: capture of 'self' with non-sendable type 'AnnotationMapView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | */
54 |
55 | public struct AnnotationMapView: View {
| `- note: consider making struct 'AnnotationMapView' conform to the 'Sendable' protocol
56 | @Binding public var zoom: Double {
57 | didSet {
:
66 | if refresh {
67 | DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(50)) {
68 | refresh = false
| `- warning: capture of 'self' with non-sendable type 'AnnotationMapView' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:78:83: error: cannot find type 'Annotations' in scope
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
77 | @State public var deselected: () -> Void
78 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
79 | self._zoom = zoom
80 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:78:168: error: cannot find type 'Location' in scope
76 | @State public var selected: (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void
77 | @State public var deselected: () -> Void
78 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
79 | self._zoom = zoom
80 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:95:83: error: cannot find type 'Annotations' in scope
93 | setCoordinatesFromAddress()
94 | }
95 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>) {
| `- error: cannot find type 'Annotations' in scope
96 | self._zoom = zoom
97 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:112:83: error: cannot find type 'Annotations' in scope
110 | setCoordinatesFromAddress()
111 | }
112 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
113 | self._zoom = zoom
114 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:112:168: error: cannot find type 'Location' in scope
110 | setCoordinatesFromAddress()
111 | }
112 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
113 | self._zoom = zoom
114 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:134:83: error: cannot find type 'Annotations' in scope
132 | self.setCoordinatesFromAddress()
133 | }
134 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
135 | self._zoom = zoom
136 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:134:206: error: cannot find type 'Location' in scope
132 | self.setCoordinatesFromAddress()
133 | }
134 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
135 | self._zoom = zoom
136 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:151:83: error: cannot find type 'Annotations' in scope
149 | self.setCoordinatesFromAddress()
150 | }
151 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
152 | self._zoom = zoom
153 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:151:239: error: cannot find type 'Location' in scope
149 | self.setCoordinatesFromAddress()
150 | }
151 | public init(zoom: Binding<Double>, address: Binding<String>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
152 | self._zoom = zoom
153 | self._address = address
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:173:61: error: cannot find type 'LocationCoordinate' in scope
171 | self.setCoordinatesFromAddress()
172 | }
173 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
174 | self._zoom = zoom
175 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:173:99: error: cannot find type 'Annotations' in scope
171 | self.setCoordinatesFromAddress()
172 | }
173 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
174 | self._zoom = zoom
175 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:173:184: error: cannot find type 'Location' in scope
171 | self.setCoordinatesFromAddress()
172 | }
173 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ Cluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
174 | self._zoom = zoom
175 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:189:61: error: cannot find type 'LocationCoordinate' in scope
187 | setDefaultCamera(self.modifierMap)
188 | }
189 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>) {
| `- error: cannot find type 'LocationCoordinate' in scope
190 | self._zoom = zoom
191 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:189:99: error: cannot find type 'Annotations' in scope
187 | setDefaultCamera(self.modifierMap)
188 | }
189 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>) {
| `- error: cannot find type 'Annotations' in scope
190 | self._zoom = zoom
191 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:205:61: error: cannot find type 'LocationCoordinate' in scope
203 | setDefaultCamera(self.modifierMap)
204 | }
205 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
206 | self._zoom = zoom
207 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:205:99: error: cannot find type 'Annotations' in scope
203 | setDefaultCamera(self.modifierMap)
204 | }
205 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
206 | self._zoom = zoom
207 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:205:184: error: cannot find type 'Location' in scope
203 | setDefaultCamera(self.modifierMap)
204 | }
205 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
206 | self._zoom = zoom
207 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:226:61: error: cannot find type 'LocationCoordinate' in scope
224 | self.setDefaultCamera(self.modifierMap)
225 | }
226 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
227 | self._zoom = zoom
228 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:226:99: error: cannot find type 'Annotations' in scope
224 | self.setDefaultCamera(self.modifierMap)
225 | }
226 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Annotations' in scope
227 | self._zoom = zoom
228 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:226:222: error: cannot find type 'Location' in scope
224 | self.setDefaultCamera(self.modifierMap)
225 | }
226 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void) {
| `- error: cannot find type 'Location' in scope
227 | self._zoom = zoom
228 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:242:61: error: cannot find type 'LocationCoordinate' in scope
240 | self.setDefaultCamera(self.modifierMap)
241 | }
242 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'LocationCoordinate' in scope
243 | self._zoom = zoom
244 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:242:99: error: cannot find type 'Annotations' in scope
240 | self.setDefaultCamera(self.modifierMap)
241 | }
242 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Annotations' in scope
243 | self._zoom = zoom
244 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:242:255: error: cannot find type 'Location' in scope
240 | self.setDefaultCamera(self.modifierMap)
241 | }
242 | public init(zoom: Binding<Double>, coordinates: Binding<LocationCoordinate>, points: Binding<[Annotations]>, isUserLocationVisible: Binding<Bool>, isFirstResponder: Binding<Bool>, selected: @escaping (_ Title: String, _ Subtitle: String, _ Location: Location, _ isCluster: Bool) -> Void, deselected: @escaping () -> Void, advancedModifiers: @escaping (_ map: MKMapView) -> Void) {
| `- error: cannot find type 'Location' in scope
243 | self._zoom = zoom
244 | self._coordinates = coordinates
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:583:42: error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
53 | */
54 |
55 | public struct AnnotationMapView: View {
| `- note: add @available attribute to enclosing struct
56 | @Binding public var zoom: Double {
57 | didSet {
:
581 | ```
582 | */
583 | public func userTrackingMode(_ mode: MKUserTrackingMode) -> AnnotationMapView {
| | `- error: 'MKUserTrackingMode' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing instance method
584 | modifierMap.userTrackingMode = mode
585 | return self
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:82:20: error: cannot find 'LocationCoordinate' in scope
80 | self._address = address
81 | self._coordinates = Binding(get: {
82 | return LocationCoordinate(latitude: 0, longitude: 0)
| `- error: cannot find 'LocationCoordinate' in scope
83 | }, set: { _ in
84 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:83:19: error: cannot infer type of closure parameter '_' without a type annotation
81 | self._coordinates = Binding(get: {
82 | return LocationCoordinate(latitude: 0, longitude: 0)
83 | }, set: { _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
84 | })
85 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:90:28: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
88 | self.deselected = deselected
89 | self._isUserLocationVisible = .constant(false)
90 | self.modifierMap = MKMapView(frame: .zero)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
91 | modifierMap.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
92 | setDefaultCamera(self.modifierMap)
MapKit.MKMapView:123:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
121 | @available(macOS 10.9, *)
122 | open func showAnnotations(_ annotations: [any MKAnnotation], animated: Bool)
123 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
124 | public init?(coder: NSCoder)
125 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:91:21: warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
89 | self._isUserLocationVisible = .constant(false)
90 | self.modifierMap = MKMapView(frame: .zero)
91 | modifierMap.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
| `- warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
92 | setDefaultCamera(self.modifierMap)
93 | setCoordinatesFromAddress()
MapKit.MKMapView:21:25: note: mutation of this property is only permitted within the actor
19 | open func mapRectThatFits(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets) -> MKMapRect
20 | @available(macOS 10.9, *)
21 | @NSCopying open var camera: MKMapCamera { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.9, *)
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:99:20: error: cannot find 'LocationCoordinate' in scope
97 | self._address = address
98 | self._coordinates = Binding(get: {
99 | return LocationCoordinate(latitude: 0, longitude: 0)
| `- error: cannot find 'LocationCoordinate' in scope
100 | }, set: { _ in
101 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:100:19: error: cannot infer type of closure parameter '_' without a type annotation
98 | self._coordinates = Binding(get: {
99 | return LocationCoordinate(latitude: 0, longitude: 0)
100 | }, set: { _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
101 | })
102 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:104:26: error: cannot infer type of closure parameter '_' without a type annotation
102 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
103 | self._points = points
104 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
105 | self.deselected = {}
106 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:104:29: error: cannot infer type of closure parameter '_' without a type annotation
102 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
103 | self._points = points
104 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
105 | self.deselected = {}
106 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:104:32: error: cannot infer type of closure parameter '_' without a type annotation
102 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
103 | self._points = points
104 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
105 | self.deselected = {}
106 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:104:35: error: cannot infer type of closure parameter '_' without a type annotation
102 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
103 | self._points = points
104 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
105 | self.deselected = {}
106 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:107:28: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
105 | self.deselected = {}
106 | self._isUserLocationVisible = .constant(false)
107 | self.modifierMap = MKMapView(frame: .zero)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 | modifierMap.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
109 | setDefaultCamera(self.modifierMap)
MapKit.MKMapView:123:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
121 | @available(macOS 10.9, *)
122 | open func showAnnotations(_ annotations: [any MKAnnotation], animated: Bool)
123 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
124 | public init?(coder: NSCoder)
125 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:108:21: warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
106 | self._isUserLocationVisible = .constant(false)
107 | self.modifierMap = MKMapView(frame: .zero)
108 | modifierMap.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
| `- warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
109 | setDefaultCamera(self.modifierMap)
110 | setCoordinatesFromAddress()
MapKit.MKMapView:21:25: note: mutation of this property is only permitted within the actor
19 | open func mapRectThatFits(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets) -> MKMapRect
20 | @available(macOS 10.9, *)
21 | @NSCopying open var camera: MKMapCamera { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.9, *)
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:116:20: error: cannot find 'LocationCoordinate' in scope
114 | self._address = address
115 | self._coordinates = Binding(get: {
116 | return LocationCoordinate(latitude: 0, longitude: 0)
| `- error: cannot find 'LocationCoordinate' in scope
117 | }, set: { _ in
118 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:117:19: error: cannot infer type of closure parameter '_' without a type annotation
115 | self._coordinates = Binding(get: {
116 | return LocationCoordinate(latitude: 0, longitude: 0)
117 | }, set: { _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
118 | })
119 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:125:23: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
123 | self._isUserLocationVisible = .constant(false)
124 | let finalMap: () -> MKMapView = {
125 | let map = MKMapView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
126 | map.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
127 | advancedModifiers(map)
MapKit.MKMapView:125:24: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
123 | @MainActor public init(frame frameRect: NSRect)
124 | public init?(coder: NSCoder)
125 | 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/SwiftUIMap/Existing Annotation Map/Public View.swift:126:17: warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
124 | let finalMap: () -> MKMapView = {
125 | let map = MKMapView()
126 | map.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
| `- warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
127 | advancedModifiers(map)
128 | return map
MapKit.MKMapView:21:25: note: mutation of this property is only permitted within the actor
19 | open func mapRectThatFits(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets) -> MKMapRect
20 | @available(macOS 10.9, *)
21 | @NSCopying open var camera: MKMapCamera { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.9, *)
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:138:20: error: cannot find 'LocationCoordinate' in scope
136 | self._address = address
137 | self._coordinates = Binding(get: {
138 | return LocationCoordinate(latitude: 0, longitude: 0)
| `- error: cannot find 'LocationCoordinate' in scope
139 | }, set: { _ in
140 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:139:19: error: cannot infer type of closure parameter '_' without a type annotation
137 | self._coordinates = Binding(get: {
138 | return LocationCoordinate(latitude: 0, longitude: 0)
139 | }, set: { _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
140 | })
141 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:146:28: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
144 | self.deselected = deselected
145 | self._isUserLocationVisible = isUserLocationVisible
146 | self.modifierMap = MKMapView(frame: .zero)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
147 | modifierMap.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
148 | self.setDefaultCamera(self.modifierMap)
MapKit.MKMapView:123:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
121 | @available(macOS 10.9, *)
122 | open func showAnnotations(_ annotations: [any MKAnnotation], animated: Bool)
123 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
124 | public init?(coder: NSCoder)
125 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:147:21: warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
145 | self._isUserLocationVisible = isUserLocationVisible
146 | self.modifierMap = MKMapView(frame: .zero)
147 | modifierMap.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
| `- warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
148 | self.setDefaultCamera(self.modifierMap)
149 | self.setCoordinatesFromAddress()
MapKit.MKMapView:21:25: note: mutation of this property is only permitted within the actor
19 | open func mapRectThatFits(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets) -> MKMapRect
20 | @available(macOS 10.9, *)
21 | @NSCopying open var camera: MKMapCamera { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.9, *)
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:155:20: error: cannot find 'LocationCoordinate' in scope
153 | self._address = address
154 | self._coordinates = Binding(get: {
155 | return LocationCoordinate(latitude: 0, longitude: 0)
| `- error: cannot find 'LocationCoordinate' in scope
156 | }, set: { _ in
157 | })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:156:19: error: cannot infer type of closure parameter '_' without a type annotation
154 | self._coordinates = Binding(get: {
155 | return LocationCoordinate(latitude: 0, longitude: 0)
156 | }, set: { _ in
| `- error: cannot infer type of closure parameter '_' without a type annotation
157 | })
158 | self.region = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 0, longitude: 0), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:164:23: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
162 | self._isUserLocationVisible = isUserLocationVisible
163 | let finalMap: () -> MKMapView = {
164 | let map = MKMapView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
165 | map.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
166 | advancedModifiers(map)
MapKit.MKMapView:125:24: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
123 | @MainActor public init(frame frameRect: NSRect)
124 | public init?(coder: NSCoder)
125 | 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/SwiftUIMap/Existing Annotation Map/Public View.swift:165:17: warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
163 | let finalMap: () -> MKMapView = {
164 | let map = MKMapView()
165 | map.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
| `- warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
166 | advancedModifiers(map)
167 | return map
MapKit.MKMapView:21:25: note: mutation of this property is only permitted within the actor
19 | open func mapRectThatFits(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets) -> MKMapRect
20 | @available(macOS 10.9, *)
21 | @NSCopying open var camera: MKMapCamera { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.9, *)
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:185:28: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
183 | self.deselected = deselected
184 | self._isUserLocationVisible = .constant(false)
185 | self.modifierMap = MKMapView(frame: .zero)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
186 | modifierMap.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
187 | setDefaultCamera(self.modifierMap)
MapKit.MKMapView:123:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
121 | @available(macOS 10.9, *)
122 | open func showAnnotations(_ annotations: [any MKAnnotation], animated: Bool)
123 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
124 | public init?(coder: NSCoder)
125 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:186:21: warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
184 | self._isUserLocationVisible = .constant(false)
185 | self.modifierMap = MKMapView(frame: .zero)
186 | modifierMap.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
| `- warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
187 | setDefaultCamera(self.modifierMap)
188 | }
MapKit.MKMapView:21:25: note: mutation of this property is only permitted within the actor
19 | open func mapRectThatFits(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets) -> MKMapRect
20 | @available(macOS 10.9, *)
21 | @NSCopying open var camera: MKMapCamera { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.9, *)
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:198:26: error: cannot infer type of closure parameter '_' without a type annotation
196 | self.region = MKCoordinateRegion(center: coordinates.wrappedValue, span: MKCoordinateSpan(latitudeDelta: zoom.wrappedValue, longitudeDelta: zoom.wrappedValue))
197 | self._points = points
198 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
199 | self.deselected = {}
200 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:198:29: error: cannot infer type of closure parameter '_' without a type annotation
196 | self.region = MKCoordinateRegion(center: coordinates.wrappedValue, span: MKCoordinateSpan(latitudeDelta: zoom.wrappedValue, longitudeDelta: zoom.wrappedValue))
197 | self._points = points
198 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
199 | self.deselected = {}
200 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:198:32: error: cannot infer type of closure parameter '_' without a type annotation
196 | self.region = MKCoordinateRegion(center: coordinates.wrappedValue, span: MKCoordinateSpan(latitudeDelta: zoom.wrappedValue, longitudeDelta: zoom.wrappedValue))
197 | self._points = points
198 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
199 | self.deselected = {}
200 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:198:35: error: cannot infer type of closure parameter '_' without a type annotation
196 | self.region = MKCoordinateRegion(center: coordinates.wrappedValue, span: MKCoordinateSpan(latitudeDelta: zoom.wrappedValue, longitudeDelta: zoom.wrappedValue))
197 | self._points = points
198 | self.selected = {_, _, _, _ in}
| `- error: cannot infer type of closure parameter '_' without a type annotation
199 | self.deselected = {}
200 | self._isUserLocationVisible = .constant(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:201:28: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
199 | self.deselected = {}
200 | self._isUserLocationVisible = .constant(false)
201 | self.modifierMap = MKMapView(frame: .zero)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
202 | modifierMap.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
203 | setDefaultCamera(self.modifierMap)
MapKit.MKMapView:123:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
121 | @available(macOS 10.9, *)
122 | open func showAnnotations(_ annotations: [any MKAnnotation], animated: Bool)
123 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
124 | public init?(coder: NSCoder)
125 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:202:21: warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
200 | self._isUserLocationVisible = .constant(false)
201 | self.modifierMap = MKMapView(frame: .zero)
202 | modifierMap.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
| `- warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
203 | setDefaultCamera(self.modifierMap)
204 | }
MapKit.MKMapView:21:25: note: mutation of this property is only permitted within the actor
19 | open func mapRectThatFits(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets) -> MKMapRect
20 | @available(macOS 10.9, *)
21 | @NSCopying open var camera: MKMapCamera { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.9, *)
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:218:23: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
216 | self._isUserLocationVisible = .constant(false)
217 | let finalMap: () -> MKMapView = {
218 | let map = MKMapView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
219 | map.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
220 | advancedModifiers(map)
MapKit.MKMapView:125:24: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
123 | @MainActor public init(frame frameRect: NSRect)
124 | public init?(coder: NSCoder)
125 | 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/SwiftUIMap/Existing Annotation Map/Public View.swift:219:17: warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
217 | let finalMap: () -> MKMapView = {
218 | let map = MKMapView()
219 | map.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
| `- warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
220 | advancedModifiers(map)
221 | return map
MapKit.MKMapView:21:25: note: mutation of this property is only permitted within the actor
19 | open func mapRectThatFits(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets) -> MKMapRect
20 | @available(macOS 10.9, *)
21 | @NSCopying open var camera: MKMapCamera { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.9, *)
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:238:28: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
236 | self.deselected = deselected
237 | self._isUserLocationVisible = isUserLocationVisible
238 | self.modifierMap = MKMapView(frame: .zero)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
239 | modifierMap.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
240 | self.setDefaultCamera(self.modifierMap)
MapKit.MKMapView:123:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
121 | @available(macOS 10.9, *)
122 | open func showAnnotations(_ annotations: [any MKAnnotation], animated: Bool)
123 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
124 | public init?(coder: NSCoder)
125 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:239:21: warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
237 | self._isUserLocationVisible = isUserLocationVisible
238 | self.modifierMap = MKMapView(frame: .zero)
239 | modifierMap.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
| `- warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
240 | self.setDefaultCamera(self.modifierMap)
241 | }
MapKit.MKMapView:21:25: note: mutation of this property is only permitted within the actor
19 | open func mapRectThatFits(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets) -> MKMapRect
20 | @available(macOS 10.9, *)
21 | @NSCopying open var camera: MKMapCamera { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.9, *)
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:255:23: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
253 | self._isUserLocationVisible = isUserLocationVisible
254 | let finalMap: () -> MKMapView = {
255 | let map = MKMapView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
256 | map.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
257 | advancedModifiers(map)
MapKit.MKMapView:125:24: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
123 | @MainActor public init(frame frameRect: NSRect)
124 | public init?(coder: NSCoder)
125 | 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/SwiftUIMap/Existing Annotation Map/Public View.swift:256:17: warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
254 | let finalMap: () -> MKMapView = {
255 | let map = MKMapView()
256 | map.camera = MKMapCamera(lookingAtCenter: CLLocationCoordinate2D(), fromDistance: CLLocationDistance(), pitch: 0, heading: 0)
| `- warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
257 | advancedModifiers(map)
258 | return map
MapKit.MKMapView:21:25: note: mutation of this property is only permitted within the actor
19 | open func mapRectThatFits(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets) -> MKMapRect
20 | @available(macOS 10.9, *)
21 | @NSCopying open var camera: MKMapCamera { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.9, *)
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:279:25: warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
277 | // Use your location
278 | let loc = CLLocationCoordinate2D(latitude: location.coordinate.latitude, longitude: location.coordinate.longitude)
279 | map.camera = MKMapCamera(lookingAtCenter: loc, fromDistance: zoom*252555, pitch: 0, heading: 0)
| `- warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
280 | }
281 | } else {
MapKit.MKMapView:21:25: note: mutation of this property is only permitted within the actor
19 | open func mapRectThatFits(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets) -> MKMapRect
20 | @available(macOS 10.9, *)
21 | @NSCopying open var camera: MKMapCamera { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.9, *)
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:300:35: error: cannot find 'LocationCoordinate' in scope
298 |
299 | // Use your location
300 | let coordinates = LocationCoordinate(latitude: location.coordinate.latitude, longitude: location.coordinate.longitude)
| `- error: cannot find 'LocationCoordinate' in scope
301 | self.coordinates = coordinates
302 | self.region = MKCoordinateRegion(center: coordinates, span: MKCoordinateSpan(latitudeDelta: self.zoom, longitudeDelta: self.zoom))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:310:17: error: cannot find 'RawExistingAnnotationMap' in scope
308 | VStack {
309 | if !refresh {
310 | RawExistingAnnotationMap(region: $region, points: $points, modifierMap: modifierMap, selected: { Title, Subtitle, Location, Cluster in
| `- error: cannot find 'RawExistingAnnotationMap' in scope
311 | // location = Location
312 | if zoom > 0.05 {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:362:21: warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
359 | ```
360 | */
361 | public func pointOfInterestCategories(include points: [MKPointOfInterestCategory]) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'pointOfInterestCategories(include:)' part of global actor 'MainActor'
362 | modifierMap.pointOfInterestFilter = MKPointOfInterestFilter(including: points)
| `- warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
363 | return self
364 | }
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/SwiftUIMap/Existing Annotation Map/Public View.swift:375:21: warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
372 | ```
373 | */
374 | public func pointOfInterestCategories(exclude points: [MKPointOfInterestCategory]) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'pointOfInterestCategories(exclude:)' part of global actor 'MainActor'
375 | modifierMap.pointOfInterestFilter = MKPointOfInterestFilter(excluding: points)
| `- warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
376 | return self
377 | }
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/SwiftUIMap/Existing Annotation Map/Public View.swift:388:21: warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
385 | ```
386 | */
387 | public func pointsOfInterest(_ filter: MKPointOfInterestFilter) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'pointsOfInterest' part of global actor 'MainActor'
388 | modifierMap.pointOfInterestFilter = filter
| `- warning: main actor-isolated property 'pointOfInterestFilter' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
389 | return self
390 | }
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/SwiftUIMap/Existing Annotation Map/Public View.swift:401:21: warning: main actor-isolated property 'showsCompass' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
398 | ```
399 | */
400 | public func showCompass(_ show: Bool) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'showCompass' part of global actor 'MainActor'
401 | modifierMap.showsCompass = show
| `- warning: main actor-isolated property 'showsCompass' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
402 | return self
403 | }
MapKit.MKMapView:71:14: note: mutation of this property is only permitted within the actor
69 | open var showsZoomControls: Bool { get set }
70 | @available(macOS 10.9, *)
71 | open var showsCompass: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
72 | @available(macOS 10.10, *)
73 | open var showsScale: Bool { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:414:21: warning: main actor-isolated property 'showsScale' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
411 | ```
412 | */
413 | public func showScale(_ show: Bool) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'showScale' part of global actor 'MainActor'
414 | modifierMap.showsScale = show
| `- warning: main actor-isolated property 'showsScale' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
415 | return self
416 | }
MapKit.MKMapView:73:14: note: mutation of this property is only permitted within the actor
71 | open var showsCompass: Bool { get set }
72 | @available(macOS 10.10, *)
73 | open var showsScale: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
74 | @available(macOS, introduced: 10.15, deprecated: 100000)
75 | @NSCopying open var pointOfInterestFilter: MKPointOfInterestFilter? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:427:21: warning: main actor-isolated property 'showsTraffic' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
424 | ```
425 | */
426 | public func showTraffic(_ show: Bool) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'showTraffic' part of global actor 'MainActor'
427 | modifierMap.showsTraffic = show
| `- warning: main actor-isolated property 'showsTraffic' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
428 | return self
429 | }
MapKit.MKMapView:81:14: note: mutation of this property is only permitted within the actor
79 | open var showsBuildings: Bool { get set }
80 | @available(macOS, introduced: 10.11, deprecated: 100000)
81 | open var showsTraffic: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
82 | open var showsUserLocation: Bool { get set }
83 | open var userLocation: MKUserLocation { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:440:21: warning: main actor-isolated property 'showsBuildings' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
437 | ```
438 | */
439 | public func showBuildings(_ show: Bool) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'showBuildings' part of global actor 'MainActor'
440 | modifierMap.showsBuildings = show
| `- warning: main actor-isolated property 'showsBuildings' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
441 | return self
442 | }
MapKit.MKMapView:79:14: note: mutation of this property is only permitted within the actor
77 | open var showsPointsOfInterest: Bool { get set }
78 | @available(macOS, introduced: 10.9, deprecated: 100000, message: "None")
79 | open var showsBuildings: Bool { get set }
| `- 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 }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:453:21: warning: main actor-isolated property 'mapType' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
450 | ```
451 | */
452 | public func mapType(_ type: MKMapType) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'mapType' part of global actor 'MainActor'
453 | modifierMap.mapType = type
| `- warning: main actor-isolated property 'mapType' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
454 | return self
455 | }
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/SwiftUIMap/Existing Annotation Map/Public View.swift:466:50: warning: main actor-isolated property 'camera' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
463 | ```
464 | */
465 | public func camera(_ camera: MKMapCamera) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'camera' part of global actor 'MainActor'
466 | print("set current camera (\(modifierMap.camera)) to \(camera)")
| `- warning: main actor-isolated property 'camera' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
467 | modifierMap.camera = camera
468 | return self
MapKit.MKMapView:21:25: note: property declared here
19 | open func mapRectThatFits(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets) -> MKMapRect
20 | @available(macOS 10.9, *)
21 | @NSCopying open var camera: MKMapCamera { get set }
| `- note: property declared here
22 | @available(macOS 10.9, *)
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:467:21: warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
463 | ```
464 | */
465 | public func camera(_ camera: MKMapCamera) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'camera' part of global actor 'MainActor'
466 | print("set current camera (\(modifierMap.camera)) to \(camera)")
467 | modifierMap.camera = camera
| `- warning: main actor-isolated property 'camera' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
468 | return self
469 | }
MapKit.MKMapView:21:25: note: mutation of this property is only permitted within the actor
19 | open func mapRectThatFits(_ mapRect: MKMapRect, edgePadding insets: NSEdgeInsets) -> MKMapRect
20 | @available(macOS 10.9, *)
21 | @NSCopying open var camera: MKMapCamera { get set }
| `- note: mutation of this property is only permitted within the actor
22 | @available(macOS 10.9, *)
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:480:21: warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
477 | ```
478 | */
479 | public func isZoomEnabled(_ enabled: Bool) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'isZoomEnabled' part of global actor 'MainActor'
480 | modifierMap.isZoomEnabled = enabled
| `- warning: main actor-isolated property 'isZoomEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
481 | return self
482 | }
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/SwiftUIMap/Existing Annotation Map/Public View.swift:493:21: warning: main actor-isolated property 'cameraBoundary' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
490 | ```
491 | */
492 | public func cameraBoundary(_ boundary: MKMapView.CameraBoundary?) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'cameraBoundary' part of global actor 'MainActor'
493 | modifierMap.cameraBoundary = boundary
| `- warning: main actor-isolated property 'cameraBoundary' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
494 | return self
495 | }
MapKit.MKMapView:29:25: note: mutation of this property is only permitted within the actor
27 | open func setCameraZoomRange(_ cameraZoomRange: MKMapView.CameraZoomRange?, animated: Bool)
28 | @available(macOS 10.15, *)
29 | @NSCopying open var cameraBoundary: MKMapView.CameraBoundary? { get set }
| `- note: mutation of this property is only permitted within the actor
30 | @available(macOS 10.15, *)
31 | open func setCameraBoundary(_ cameraBoundary: MKMapView.CameraBoundary?, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:506:21: warning: main actor-isolated property 'cameraZoomRange' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
503 | ```
504 | */
505 | public func cameraZoomRange(_ range: MKMapView.CameraZoomRange!) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'cameraZoomRange' part of global actor 'MainActor'
506 | modifierMap.cameraZoomRange = range
| `- warning: main actor-isolated property 'cameraZoomRange' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
507 | return self
508 | }
MapKit.MKMapView:25:25: note: mutation of this property is only permitted within the actor
23 | open func setCamera(_ camera: MKMapCamera, animated: Bool)
24 | @available(macOS 10.15, *)
25 | @NSCopying open var cameraZoomRange: MKMapView.CameraZoomRange! { get set }
| `- note: mutation of this property is only permitted within the actor
26 | @available(macOS 10.15, *)
27 | open func setCameraZoomRange(_ cameraZoomRange: MKMapView.CameraZoomRange?, animated: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:519:21: warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
516 | ```
517 | */
518 | public func isPitchEnabled(_ enabled: Bool) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'isPitchEnabled' part of global actor 'MainActor'
519 | modifierMap.isPitchEnabled = enabled
| `- warning: main actor-isolated property 'isPitchEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
520 | return self
521 | }
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/SwiftUIMap/Existing Annotation Map/Public View.swift:532:21: warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
529 | ```
530 | */
531 | public func isRotateEnabled(_ enabled: Bool) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'isRotateEnabled' part of global actor 'MainActor'
532 | modifierMap.isRotateEnabled = enabled
| `- warning: main actor-isolated property 'isRotateEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
533 | return self
534 | }
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/SwiftUIMap/Existing Annotation Map/Public View.swift:545:21: warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
542 | ```
543 | */
544 | public func isScrollEnabled(_ enabled: Bool) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'isScrollEnabled' part of global actor 'MainActor'
545 | modifierMap.isScrollEnabled = enabled
| `- warning: main actor-isolated property 'isScrollEnabled' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
546 | return self
547 | }
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/SwiftUIMap/Existing Annotation Map/Public View.swift:558:21: error: value of type 'MKMapView' has no dynamic member 'isMultipleTouchEnabled' using key path from root type 'MKMapView'
556 | */
557 | public func isMultipleTouchEnabled(_ enabled: Bool) -> AnnotationMapView {
558 | modifierMap.isMultipleTouchEnabled = enabled
| `- error: value of type 'MKMapView' has no dynamic member 'isMultipleTouchEnabled' using key path from root type 'MKMapView'
559 | return self
560 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:558:9: error: referencing subscript 'subscript(dynamicMember:)' requires wrapper 'Binding<MKMapView>'
556 | */
557 | public func isMultipleTouchEnabled(_ enabled: Bool) -> AnnotationMapView {
558 | modifierMap.isMultipleTouchEnabled = enabled
| `- error: referencing subscript 'subscript(dynamicMember:)' requires wrapper 'Binding<MKMapView>'
559 | return self
560 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:558:46: error: cannot assign value of type 'Bool' to type 'Binding<Subject>'
556 | */
557 | public func isMultipleTouchEnabled(_ enabled: Bool) -> AnnotationMapView {
558 | modifierMap.isMultipleTouchEnabled = enabled
| `- error: cannot assign value of type 'Bool' to type 'Binding<Subject>'
559 | return self
560 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:571:21: error: value of type 'MKMapView' has no dynamic member 'isUserInteractionEnabled' using key path from root type 'MKMapView'
569 | */
570 | public func isUserInteractionEnabled(_ enabled: Bool) -> AnnotationMapView {
571 | modifierMap.isUserInteractionEnabled = enabled
| `- error: value of type 'MKMapView' has no dynamic member 'isUserInteractionEnabled' using key path from root type 'MKMapView'
572 | return self
573 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:571:9: error: referencing subscript 'subscript(dynamicMember:)' requires wrapper 'Binding<MKMapView>'
569 | */
570 | public func isUserInteractionEnabled(_ enabled: Bool) -> AnnotationMapView {
571 | modifierMap.isUserInteractionEnabled = enabled
| `- error: referencing subscript 'subscript(dynamicMember:)' requires wrapper 'Binding<MKMapView>'
572 | return self
573 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:571:48: error: cannot assign value of type 'Bool' to type 'Binding<Subject>'
569 | */
570 | public func isUserInteractionEnabled(_ enabled: Bool) -> AnnotationMapView {
571 | modifierMap.isUserInteractionEnabled = enabled
| `- error: cannot assign value of type 'Bool' to type 'Binding<Subject>'
572 | return self
573 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:584:21: error: 'userTrackingMode' is only available in macOS 11.0 or newer
53 | */
54 |
55 | public struct AnnotationMapView: View {
| `- note: add @available attribute to enclosing struct
56 | @Binding public var zoom: Double {
57 | didSet {
:
581 | ```
582 | */
583 | public func userTrackingMode(_ mode: MKUserTrackingMode) -> AnnotationMapView {
| `- note: add @available attribute to enclosing instance method
584 | modifierMap.userTrackingMode = mode
| |- error: 'userTrackingMode' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
585 | return self
586 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIMap/Existing Annotation Map/Public View.swift:584:21: warning: main actor-isolated property 'userTrackingMode' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
581 | ```
582 | */
583 | public func userTrackingMode(_ mode: MKUserTrackingMode) -> AnnotationMapView {
| `- note: add '@MainActor' to make instance method 'userTrackingMode' part of global actor 'MainActor'
584 | modifierMap.userTrackingMode = mode
| `- warning: main actor-isolated property 'userTrackingMode' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
585 | return self
586 | }
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)
BUILD FAILURE 6.0 macosSpm