forked from stadiamaps/ferrostar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request stadiamaps#34 from Rallista/feat/example-ios
Feat/example ios
- Loading branch information
Showing
27 changed files
with
1,229 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
apple/DemoApp/Demo/Assets.xcassets/AccentColor.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
apple/DemoApp/Demo/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// ConfigurationView.swift | ||
// Ferrostar Demo | ||
// | ||
// Created by Jacob Fielding on 12/6/23. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct ConfigurationView: View { | ||
|
||
var body: some View { | ||
VStack(spacing: 15) { | ||
Text("TODO basic config for demo") | ||
} | ||
.navigationTitle("Config") | ||
} | ||
} | ||
|
||
#Preview { | ||
ConfigurationView() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// DemoApp.swift | ||
// Ferrostar Demo | ||
// | ||
// Created by Ian Wagner on 2023-10-09. | ||
// | ||
|
||
import SwiftUI | ||
|
||
@main | ||
struct DemoApp: App { | ||
var body: some Scene { | ||
WindowGroup { | ||
NavigationView() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// APIKeys.swift | ||
// Ferrostar Demo | ||
// | ||
// Created by Jacob Fielding on 12/17/23. | ||
// | ||
|
||
import Foundation | ||
|
||
class APIKeys { | ||
|
||
static let shared = APIKeys() | ||
|
||
let stadiaMapsAPIKey: String | ||
|
||
init() { | ||
guard let path = Bundle.main.path(forResource: "API-Keys", ofType: "plist"), | ||
let data = FileManager.default.contents(atPath: path), | ||
let dict = try! PropertyListSerialization.propertyList(from: data, options: .mutableContainersAndLeaves, format: nil) as? [String: Any] else { | ||
fatalError("API-Keys.plist not found or invalid.") | ||
} | ||
|
||
stadiaMapsAPIKey = (dict["STADIAMAPS_API_KEY"] as! String) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// MockLocationData.swift | ||
// Ferrostar Demo | ||
// | ||
// Created by Jacob Fielding on 12/17/23. | ||
// | ||
|
||
import Foundation | ||
import CoreLocation | ||
|
||
struct LocationIdentifier : Identifiable, Equatable, Hashable { | ||
static func == (lhs: LocationIdentifier, rhs: LocationIdentifier) -> Bool { | ||
lhs.id == rhs.id | ||
} | ||
|
||
func hash(into hasher: inout Hasher) { | ||
hasher.combine(id) | ||
} | ||
|
||
let id = UUID() | ||
let name: String | ||
let coordinate: CLLocationCoordinate2D | ||
} | ||
|
||
let locations = [ | ||
LocationIdentifier(name: "Cupertino HS", coordinate: CLLocationCoordinate2D(latitude: 37.31910, longitude: -122.01018)), | ||
] |
Oops, something went wrong.