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 method

    toggle current theme, replace current theme with alternate theme.

    Declaration

    Swift

    public mutating func toggleTheme()