ThemeMode

public struct ThemeMode : RawRepresentable, Equatable, Hashable, Sendable

可扩展主题模式(扩展值与样式值相同即可)

  • Declaration

    Swift

    public typealias RawValue = Int
  • 跟随系统模式,iOS13以上动态切换,iOS13以下固定浅色,默认

    Declaration

    Swift

    public static let system: ThemeMode
  • 固定浅色模式

    Declaration

    Swift

    public static let light: ThemeMode
  • 固定深色模式

    Declaration

    Swift

    public static let dark: ThemeMode
  • Declaration

    Swift

    public var rawValue: Int
  • Declaration

    Swift

    public init(rawValue: Int)
  • Undocumented

    Declaration

    Swift

    public init(_ rawValue: Int)