Skip to content

Commit

Permalink
Address open thread re: iOS uturn image name
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Oct 19, 2024
1 parent 57e21d2 commit 84745b0
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Install cargo-ndk
run: cargo install cargo-ndk

- name: Creat local.properties (required for cargo-ndk and the demo app)
- name: Create local.properties (required for cargo-ndk and the demo app)
run: echo 'stadiaApiKey=' > local.properties
working-directory: android

Expand Down
12 changes: 6 additions & 6 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/stadiamaps/maplibre-swift-macros.git",
"state" : {
"revision" : "236215c13bff962009e0f0257d6d8349be33442f",
"version" : "0.0.4"
"revision" : "9e27e62dff7fd727aebd0a7c8aa74e7635a5583e",
"version" : "0.0.5"
}
},
{
Expand All @@ -41,17 +41,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftlang/swift-syntax.git",
"state" : {
"revision" : "64889f0c732f210a935a0ad7cda38f77f876262d",
"version" : "509.1.1"
"revision" : "2bc86522d115234d1f588efe2bcb4ce4be8f8b82",
"version" : "510.0.3"
}
},
{
"identity" : "swiftui-dsl",
"kind" : "remoteSourceControl",
"location" : "https://github.com/maplibre/swiftui-dsl",
"state" : {
"revision" : "5ba75ef1e4382fcc7ee71e274eb9c2a50906b14e",
"version" : "0.1.0"
"revision" : "c39688db3aac50b523ea062b286c584123022093",
"version" : "0.3.0"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@ public struct ManeuverInstructionView<ManeuverView: View>: View {
.font(.body)
.foregroundColor(.blue)

ManeuverInstructionView(
text: "Make a legal u-turn",
distanceFormatter: MKDistanceFormatter(),
distanceToNextManeuver: 152.4
) {
ManeuverImage(maneuverType: .turn, maneuverModifier: .uTurn)
.frame(width: 24)
}
.font(.body)
.foregroundColor(.blue)

// Demonstrate a Right to Left
ManeuverInstructionView(
text: "ادمج يسارًا",
Expand Down
10 changes: 10 additions & 0 deletions apple/Tests/FerrostarSwiftUITests/Views/ManeuverImageTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ final class ManeuverImageTests: XCTestCase {
ManeuverImage(maneuverType: .fork, maneuverModifier: .left)
.frame(width: 32)
}

assertView {
ManeuverImage(maneuverType: .turn, maneuverModifier: .uTurn)
.frame(width: 32)
}

assertView {
ManeuverImage(maneuverType: .continue, maneuverModifier: .uTurn)
.frame(width: 32)
}
}

func testManeuverImageLarge() {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 84745b0

Please sign in to comment.