MimiThemeable
public protocol MimiThemeable : MimiThemeObservable
Type that can be themed by a MimiTheme.
-
themeDefault implementationThe theme applied to this component.
Default Implementation
Declaration
Swift
var theme: MimiThemeDefinition { get } -
registerForTheming()Default implementationRegister 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
themeTheme to apply.
-
setNeedsThemeUpdate()Extension methodInform that an update for themeing is required.
Declaration
Swift
public func setNeedsThemeUpdate() -
ignoresThemeUpdatesExtension methodWhether calls to
setNeedsThemeUpdate()should be ignored.Declaration
Swift
public var ignoresThemeUpdates: Bool { get set }
MimiThemeable Protocol Reference