Skip to content

Commit

Permalink
Bump to latest MapLibre Metal release
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Oct 24, 2023
1 parent c818b25 commit 7ecb106
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import CompilerPluginSupport
let package = Package(
name: "MapLibreSwiftUI",
platforms: [
// DISCUSS: Determine minimum support target; iOS 16 and 17 bring significant improvements to SwiftUI, but it's still TBD what we can get away with supporting.
.iOS(.v17), .macOS(.v13),
],
products: [
Expand Down Expand Up @@ -38,8 +37,8 @@ let package = Package(
dependencies: [.target(name: "MapLibreSwiftMacrosImpl")]
),
.binaryTarget(name: "MapLibre",
url: "https://github.com/maplibre/maplibre-native/releases/download/ios-v6.0.0-predd74d1e84a781a41691cfd0de592d153c8795b65/MapLibre.dynamic.xcframework.zip",
checksum: "0a9c5a898f699e4acaa1650761f8908213fb5d638c389ed714a2f784349dd3b8"),
url: "https://github.com/maplibre/maplibre-native/releases/download/ios-v6.0.0-preda45706601c7ccc6d922a8fcddfc62ff7c8f480d/MapLibre.dynamic.xcframework.zip",
checksum: "37e621c0c7c1f589f0a125816155ba443000d78b80649d85a9b8b3d19144836c"),
.target(
name: "MapLibreSwiftUI",
dependencies: [
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ If successful, some version this project should eventually either get merged int
merged into the MapLibre organization more formally. It is being developed as a separate package initially so we
can move fast without breaking anything important.

**NOTE: This currently only works on iOS, as that's the only architecture currently published in the dynamic framework.**

## Goals

1. Primary: Make common use cases easy and make complicated ones possible
Expand Down Expand Up @@ -81,3 +83,6 @@ and get to work filling out the remaining properties and modifiers.
Note that some Swift 5.9 improvements like macros will make things a bit easier, so it may make sense to punt on
things like fleshing out the expresison API helpers (which will be highly repetitive) till that lands. When in doubt,
check out the issue tracker, as these sholud be noted there.

TODO: Look at PointFree's Snapshot testing that generates images of SwiftUI views. Also look at inline snapshotting.
https://github.com/pointfreeco/swift-snapshot-testing
2 changes: 1 addition & 1 deletion Sources/MapLibreSwiftUI/Examples/Layers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct Layer_Previews: PreviewProvider {

MLNPointFeature(coordinate: CLLocationCoordinate2D(latitude: 39.02001, longitude: 1.482148)) { feature in
feature.attributes["icon"] = "club"
feature.attributes["heading"] = 135
feature.attributes["heading"] = 145
}
}

Expand Down

0 comments on commit 7ecb106

Please sign in to comment.