MimiThemeable

public protocol MimiThemeable : MimiThemeObservable

Type that can be themed by a MimiTheme.

  • theme Default implementation

    The theme applied to this component.

    Default Implementation
    Declaration

    Swift

    var theme: MimiThemeDefinition { get }
  • registerForTheming() Default implementation

    Register the component to for theming.

    The component will then be elgible for receving apply(theme:) calls, whenever a theme update is required.

    Default Implementation
    Declaration

    Swift

    func registerForTheming()
  • Apply theme to the type.

    Declaration

    Swift

    func apply(theme: MimiThemeDefinition)
    Parameters
    theme

    Theme to apply.

  • setNeedsThemeUpdate() Extension method

    Inform that an update for themeing is required.

    Declaration

    Swift

    public func setNeedsThemeUpdate()
  • ignoresThemeUpdates Extension method

    Whether calls to setNeedsThemeUpdate() should be ignored.

    Declaration

    Swift

    public var ignoresThemeUpdates: Bool { get set }