Theme

public protocol Theme

A type that represents a theme that can be used to configure appearance of UI.

  • Tag: Theme
  • A placeholder style type that will be used by a theme

    Declaration

    Swift

    associatedtype Style
  • Creates an instance of a theme with given style

    Declaration

    Swift

    init(stylesheet: Style)

    Parameters

    stylesheet

    Style

  • Provides the default instance of a theme

    Declaration

    Swift

    static var `default`: Self { get }
  • Provides observable style used by a theme

    Declaration

    Swift

    static var stylesheet: Observable<Style> { get }