Last active
July 13, 2020 03:41
-
-
Save serhiybutz/956c8362d4688160054174d02fe9a1ec 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
extension Themer where Theme == MyTheme { | |
private static var instance: Themer? | |
static var shared: Themer { | |
if instance == nil { | |
instance = Themer(defaultTheme: .light) | |
} | |
return instance! | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment