DualThemeSwitcher
public protocol DualThemeSwitcher : ThemeSwitcher
DualThemeSwitcher holds two instance for theme, helper to create dual themes i.e light/dark mode or day/night mode.
-
toggleTheme()
Extension methodtoggle current theme, replace current theme with alternate theme.
Declaration
Swift
public mutating func toggleTheme()