Skip to content

Commit c39688d

Browse files
authored
Upgrades (maplibre#56)
* Swift 5.10 tooling and package upgrades * Fix incorrect use of SwiftUI state in preview * Update CHANGELOG * swiftformat * Upgrade MapLibre while we're at it...
1 parent 899457f commit c39688d

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## Version 0.3.0 - 2024-10-14
9+
10+
### Changed
11+
12+
This release upgrades Swift tooling for Swift 5.10.
13+
814
## Version 0.2.0 - 2024-10-07
915

1016
### Added

Package.resolved

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 5.9
1+
// swift-tools-version: 5.10
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import CompilerPluginSupport
@@ -21,8 +21,8 @@ let package = Package(
2121
),
2222
],
2323
dependencies: [
24-
.package(url: "https://github.com/maplibre/maplibre-gl-native-distribution.git", from: "6.4.0"),
25-
.package(url: "https://github.com/stadiamaps/maplibre-swift-macros.git", from: "0.0.3"),
24+
.package(url: "https://github.com/maplibre/maplibre-gl-native-distribution.git", from: "6.7.1"),
25+
.package(url: "https://github.com/stadiamaps/maplibre-swift-macros.git", from: "0.0.5"),
2626
// Testing
2727
.package(url: "https://github.com/Kolos65/Mockable.git", exact: "0.0.10"),
2828
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.17.2"),

Sources/MapLibreSwiftUI/Examples/Layers.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,11 @@ let clustered = ShapeSource(identifier: "points", options: [.clustered: true, .c
8989
}
9090

9191
#Preview("Clustered Circles with Symbols") {
92-
@State var camera = MapViewCamera.center(
92+
MapView(styleURL: demoTilesURL, camera: .constant(MapViewCamera.center(
9393
CLLocationCoordinate2D(latitude: 48.2082, longitude: 16.3719),
9494
zoom: 5,
9595
direction: 0
96-
)
97-
return MapView(styleURL: demoTilesURL, camera: $camera) {
96+
))) {
9897
// Clusters pins when they would touch
9998

10099
// Cluster == YES shows only those pins that are clustered, using .text

0 commit comments

Comments
 (0)