Skip to content

Commit 4d22b96

Browse files
juaoosetobiasleijs
authored andcommitted
fix: properly handle system setting
1 parent 53a4248 commit 4d22b96

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ios/Classes/MapView/FlutterMapView.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ class FlutterMapView: MKMapView, UIGestureRecognizerDelegate {
147147

148148
if let colorScheme: Int = options["colorScheme"] as? Int {
149149
if #available(iOS 13.0, *) {
150-
if colorScheme != 0 {
151-
self.overrideUserInterfaceStyle = UIUserInterfaceStyle(rawValue: colorScheme) ?? .unspecified
152-
}
150+
self.overrideUserInterfaceStyle = UIUserInterfaceStyle(rawValue: colorScheme) ?? .unspecified
153151
}
154152
}
155153

0 commit comments

Comments
 (0)