MimiStyleBook

public struct MimiStyleBook
extension MimiStyleBook: Equatable

Style book to use as part of a MimiTheme.

  • Styles that can be customized in the style book.

    • statusBar: Preferred status bar style for all Mimi UI to use.
    • keyboardAppearance: Appearance for the keyboard when displayed from a Mimi component.
    • buttonDisplay: Display style to use for all Mimi action buttons which feature a solid background.
    • buttonCorner: Corner style to use for all Mimi action buttons which feature a solid background.
    • alert: Alert Presenter to use for presenting modal alerts.
    • uppercaseTransformation: Components’ types that should be presented with uppercased texts.
    • textAlignment: Alignment to apply to text elements that support overriding their alignment.
    Declaration

    Swift

    public enum Style
  • Preferred status bar style for all Mimi UI to use.

    Declaration

    Swift

    public private(set) var statusBar: UIStatusBarStyle! { get }
  • Appearance for the keyboard when displayed from a Mimi component.

    Declaration

    Swift

    public private(set) var keyboardAppearance: UIKeyboardAppearance! { get }
  • Display style to use for all Mimi action buttons which feature a solid background.

    Declaration

    Swift

    public private(set) var buttonDisplay: MimiButton.DisplayStyle! { get }
  • Corner style to use for all Mimi action buttons which feature a solid background.

    Declaration

    Swift

    public private(set) var buttonCorner: MimiButton.CornerStyle! { get }
  • Alert Presenter to use for presenting modal alerts.

    This will be used for presentation of all UIAlertController style modal alerts.

    Declaration

    Swift

    public private(set) var alert: MimiAlertPresentable.Type! { get }
  • Components whose texts should be uppercased.

    Declaration

    Swift

    public private(set) var uppercaseOptions: MimiTextUppercaseOptions! { get }
  • Alignment that will be applied to selected UI components that support custom text alignment.

    Declaration

    Swift

    public private(set) var textAlignment: MimiTextAligment! { get }
  • Create a new style book with custom styles.

    You can specify to override as many styles as required, any that are not specified will use the appropriate value provided by MimiStyleBook.default.

    Declaration

    Swift

    public init(_ styles: Style...)
    Parameters
    styles

    Custom styles.

  • Default style book which utilizes the system defaults for styling.

    Declaration

    Swift

    public static var `default`: MimiStyleBook { get }
  • Declaration

    Swift

    public static func == (lhs: MimiStyleBook, rhs: MimiStyleBook) -> Bool