Skip to content

Commit

Permalink
macOS + Cassini compile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nighthawk committed Sep 20, 2024
1 parent fcdc6f1 commit 26c1b4f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Examples/Cassini/CassiniApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct CassiniApp: App {
name: "Continents",
contents: try! GeoDrawer.Content.content(
for: GeoDrawer.Content.countries(),
color: CassiniApp.Colors.continents.cgColor
style: .init(color: CassiniApp.Colors.continents.cgColor)
),
color: CassiniApp.Colors.continents.cgColor
)
Expand Down
2 changes: 1 addition & 1 deletion Examples/Cassini/ContentView+Model.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ extension ContentView {

layers.append(.init(
name: preferredName ?? "New Layer",
contents: GeoDrawer.Content.content(for: geoJSON, color: color),
contents: GeoDrawer.Content.content(for: geoJSON, style: .init(color: color)),
color: color
))
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/Cassini/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ struct ContentView_Previews: PreviewProvider {
name: "Continents",
contents: try! GeoDrawer.Content.content(
for: GeoDrawer.Content.countries(),
color: CassiniApp.Colors.continents.cgColor
style: .init(color: CassiniApp.Colors.continents.cgColor)
),
color: CassiniApp.Colors.continents.cgColor
)
Expand Down
5 changes: 4 additions & 1 deletion Sources/GeoDrawer/GeoMap+AppKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ public struct GeoMap: NSViewRepresentable {
struct GeoMap_Previews: PreviewProvider {
static var previews: some View {
GeoMap(
contents: try! GeoDrawer.Content.content(for: GeoDrawer.Content.countries(), color: .init(red: 0, green: 1, blue: 0, alpha: 0)),
contents: try! GeoDrawer.Content.content(
for: GeoDrawer.Content.countries(),
style: .init(color: .init(red: 0, green: 1, blue: 0, alpha: 0))
),
projection: Projections.Cassini()
)
.previewLayout(.fixed(width: 300, height: 300))
Expand Down

0 comments on commit 26c1b4f

Please sign in to comment.