ThemeManager

public final class ThemeManager

A central class to manage Theme support.

  • Undocumented

    Declaration

    Swift

    public static let shared: ThemeManager
  • Undocumented

    Declaration

    Swift

    public var currentTheme: Theme
  • Sets a custom user-defined theme.

    Declaration

    Swift

    public func setUserTheme(_ theme: Theme)

    Parameters

    theme

    The custom theme to be used.

  • Clears the user-defined theme and reverts to API theme or default theme.

    Declaration

    Swift

    public func clearUserTheme()
  • Returns true if a user-defined theme has been set via setCustomTheme().

    Declaration

    Swift

    public func hasUserTheme() -> Bool