Created
September 22, 2021 14:50
-
-
Save RealEmmettS/8155b11686afafe9290817978cf806c0 to your computer and use it in GitHub Desktop.
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
if <#condition#>{ | |
if #available(iOS 13.0, *) { | |
UIView.transition (with: self.view, duration: 0.3, options: .transitionCrossDissolve, animations: { | |
self.overrideUserInterfaceStyle = .dark //.light or .unspecified | |
}, completion: nil) | |
} | |
}else{ | |
if #available(iOS 13.0, *) { | |
UIView.transition (with: self.view, duration: 0.3, options: .transitionCrossDissolve, animations: { | |
self.overrideUserInterfaceStyle = .light //.light or .unspecified | |
}, completion: nil) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment