Skip to content

Instantly share code, notes, and snippets.

@Blackjacx
Created April 5, 2023 14:57
Show Gist options
  • Save Blackjacx/8f21d8d936de6808af7a9d1b94a5460c to your computer and use it in GitHub Desktop.
Save Blackjacx/8f21d8d936de6808af7a9d1b94a5460c to your computer and use it in GitHub Desktop.
Swift Override In Extension
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