Created
April 5, 2023 14:57
-
-
Save Blackjacx/8f21d8d936de6808af7a9d1b94a5460c to your computer and use it in GitHub Desktop.
Swift Override In Extension
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
extension GMSMapView { | |
override open func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) { | |
super.traitCollectionDidChange(previousTraitCollection) | |
guard traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) else { | |
return | |
} | |
updateMapStyle() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment