adwaita-swift/Sources/Adwaita/View/CheckButton+.swift
david-swift 04c77831b5
Some checks are pending
Deploy Docs / publish (push) Waiting to run
SwiftLint / SwiftLint (push) Waiting to run
Remove Core library
2025-10-30 21:36:13 +01:00

19 lines
378 B
Swift

//
// CheckButton+.swift
// Adwaita
//
// Created by david-swift on 18.05.24.
//
/// A button widget.
extension CheckButton {
/// Apply the selection mode style class.
/// - Parameter active: Whether it is applied.
/// - Returns: A view.
public func selectionMode(_ active: Bool = true) -> AnyView {
style("selection-mode", active: active)
}
}