Various nifty Swift snippets and playgrounds I have created
MIT License
Various nifty Swift snippets and playgrounds I have created
print(DarkMode.isEnabled)
DarkMode.onChange = { isEnabled in
print("Is dark mode enabled?", isEnabled)
}
Playground: DarkMode.playground
(Clone the repo and double-click this file)