JSONTheme

public struct JSONTheme : Theme, Codable

A struct that allows themes to be desterilised from JSON

  • Undocumented

    Declaration

    Swift

    public var primaryFont: UIFont? { get }
  • Undocumented

    Declaration

    Swift

    public var titleFont: UIFont? { get }
  • Undocumented

    Declaration

    Swift

    public var backgroundColor: UIColor? { get }
  • Undocumented

    Declaration

    Swift

    public var textColor: UIColor? { get }
  • Undocumented

    Declaration

    Swift

    public var primaryColor: UIColor? { get }
  • Undocumented

    Declaration

    Swift

    public var tintColor: UIColor? { get }
  • Undocumented

    Declaration

    Swift

    public var barTintColor: UIColor? { get }
  • Undocumented

    Declaration

    Swift

    public let barStyle: UIBarStyle?
  • Undocumented

    Declaration

    Swift

    public let prefersLargeTitles: Bool?
  • Creates a theme with a JSON string

    Declaration

    Swift

    public init?(withJson json: String)

    Parameters

    json

    The raw JSON string

  • Creates a theme with a JSON file in the documents directory

    Declaration

    Swift

    public init?(file: String)

    Parameters

    file

    The file name with extension

  • Creates a theme with a JSON file in the application bundle

    Declaration

    Swift

    public init?(named: String)

    Parameters

    named

    The file name with an extension of type .json without the extension