Skip to content

Commit cee1194

Browse files
authored
Merge pull request maplibre#48 from stadiamaps/non-optional-font-names-array
Make font names array non-optional
2 parents b84df18 + 48fe24e commit cee1194

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Sources/MapLibreSwiftDSL/Style Layers/Symbol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import MapLibreSwiftMacros
1010
@MLNStyleProperty<UIColor>("textColor", supportsInterpolation: true)
1111
@MLNStyleProperty<Double>("textFontSize", supportsInterpolation: true)
1212
@MLNStyleProperty<String>("text", supportsInterpolation: false)
13-
@MLNStyleProperty<[String]?>("textFontNames", supportsInterpolation: false)
13+
@MLNStyleProperty<[String]>("textFontNames", supportsInterpolation: false)
1414
// An enum would probably be better?
1515
@MLNStyleProperty<String>("textAnchor", supportsInterpolation: false)
1616
@MLNStyleProperty<CGVector>("textOffset", supportsInterpolation: true)

Sources/MapLibreSwiftUI/MapViewCoordinator.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,6 @@ public class MapViewCoordinator<T: MapViewHostViewController>: NSObject, MLNMapV
310310
// If any of these are a mismatch, we know the camera is no longer following a desired method, so we should
311311
// detach and revert to a .centered camera. If any one of these is true, the desired camera state still
312312
// matches the mapView's userTrackingMode
313-
// NOTE: The use of assumeIsolated is just to make Swift strict concurrency checks happy.
314-
// This invariant is upheld by the MLNMapView.
315313
let userTrackingMode = mapView.userTrackingMode
316314
let isProgrammaticallyTracking: Bool = switch parent.camera.state {
317315
case .trackingUserLocation:

0 commit comments

Comments
 (0)