Skip to content

Commit

Permalink
Update swift version to 5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
vospennikov committed Dec 9, 2023
1 parent 1e92899 commit f90a93c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.7.1
5.9
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ struct MapKitIntegration: View {
)
}
}
.overlay(alignment: .bottom, {
.overlay(alignment: .bottom) {
Button(
action: { Task.detached { await searchClient.search() } },
label: { Label("Apple store", systemImage: "magnifyingglass") }
)
.buttonStyle(RoundedButton(fillColor: .accentColor, padding: 8))
})
}
.readSize(onChange: { newValue in
searchClient.mapSize = newValue
})
Expand Down
4 changes: 2 additions & 2 deletions Example/Example-SwiftUI/App/ModernMap/ModernMap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ struct ModernMap: View {
.onMapCameraChange(frequency: .onEnd) { context in
Task.detached { await dataSource.reloadAnnotations() }
}
.overlay(alignment: .bottom, {
.overlay(alignment: .bottom) {
HStack {
AsyncButton("Add annotations") {
await dataSource.addAnnotations()
Expand All @@ -56,7 +56,7 @@ struct ModernMap: View {
}
.padding()
.buttonStyle(RoundedButton(fillColor: .accentColor, padding: 8))
})
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 5.7.1
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down

0 comments on commit f90a93c

Please sign in to comment.