ProgressViewStyle

public struct ProgressViewStyle : RawRepresentable, Equatable, Hashable, Sendable

进度条视图样式枚举,可扩展

  • Declaration

    Swift

    public typealias RawValue = Int
  • 默认进度条样式

    Declaration

    Swift

    public static let `default`: ProgressViewStyle

Style

  • Toast样式

    Declaration

    Swift

    public static let toast: ProgressViewStyle
  • ImagePreview样式

    Declaration

    Swift

    public static let imagePreview: ProgressViewStyle
  • all

    全部样式,全局设置

    Declaration

    Swift

    public static let all: ProgressViewStyle

Config

  • 自定义样式尺寸

    Declaration

    Swift

    public static func setIndicatorSize(_ size: CGSize, for style: ProgressViewStyle)
  • 自定义样式颜色

    Declaration

    Swift

    public static func setIndicatorColor(_ color: UIColor?, for style: ProgressViewStyle)
  • 获取自定义样式尺寸,默认nil

    Declaration

    Swift

    public var indicatorSize: CGSize? { get }
  • 获取自定义样式颜色,默认nil

    Declaration

    Swift

    public var indicatorColor: UIColor? { get }

Lifecycle

  • Declaration

    Swift

    public var rawValue: Int
  • Declaration

    Swift

    public init(rawValue: Int)
  • Undocumented

    Declaration

    Swift

    public init(_ rawValue: Int)