OpacityButtonStyle

@MainActor
public struct OpacityButtonStyle : ButtonStyle

透明度按钮样式,支持设置高亮和禁用时的透明度

  • Undocumented

    Declaration

    Swift

    @MainActor
    public var disabled: Bool
  • Undocumented

    Declaration

    Swift

    @MainActor
    public var highlightedAlpha: CGFloat
  • Undocumented

    Declaration

    Swift

    @MainActor
    public var disabledAlpha: CGFloat
  • Undocumented

    Declaration

    Swift

    @MainActor
    public init(disabled: Bool = false, highlightedAlpha: CGFloat? = nil, disabledAlpha: CGFloat? = nil)
  • Declaration

    Swift

    @MainActor
    public func makeBody(configuration: ButtonStyleConfiguration) -> some View