MimiThemeDefinition
public protocol MimiThemeDefinition
Definition of a theme that can be applied to Mimi components.
You should not need to directly conform to this protocol, instead using MimiTheme.
-
Unique Identifier of the theme.
Declaration
Swift
var identifier: String { get } -
Collection of colors to be applied.
Declaration
Swift
var colors: MimiColorBook { get } -
Collection of fonts to be applied.
Declaration
Swift
var fonts: MimiFontBook { get } -
Collection of style items to be applied.
Declaration
Swift
var styles: MimiStyleBook { get } -
isAppliedDefault implementationWhether the theme definition is currently applied.
Default Implementation
Declaration
Swift
var isApplied: Bool { get } -
apply()Default implementationApply the theme definition to the application.
Default Implementation
Declaration
Swift
func apply() -
clear()Default implementationClear the currently applied theme.
Default Implementation
Declaration
Swift
func clear() -
variantForUserInterfaceStyle(_:)Default implementationProvide a variant of the theme to be used for a particular user interface style.
Default Implementation
Declaration
Swift
func variantForUserInterfaceStyle(_ style: UIUserInterfaceStyle) -> Self?Parameters
styleUser Interface Style to use.
MimiThemeDefinition Protocol Reference