Skip to content

Commit 53a4248

Browse files
juaoosetobiasleijs
authored andcommitted
fix: rename parameter name in platform code
1 parent 1fe4f36 commit 53a4248

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ios/Classes/MapView/FlutterMapView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ class FlutterMapView: MKMapView, UIGestureRecognizerDelegate {
145145
self.mapType = self.mapTypes[mapType]
146146
}
147147

148-
if let mapStyle: Int = options["mapStyle"] as? Int {
148+
if let colorScheme: Int = options["colorScheme"] as? Int {
149149
if #available(iOS 13.0, *) {
150-
if mapStyle != 0 {
151-
self.overrideUserInterfaceStyle = UIUserInterfaceStyle(rawValue: mapStyle) ?? .unspecified
150+
if colorScheme != 0 {
151+
self.overrideUserInterfaceStyle = UIUserInterfaceStyle(rawValue: colorScheme) ?? .unspecified
152152
}
153153
}
154154
}

0 commit comments

Comments
 (0)