Structure
DSUICheckbox
@available(iOS 13.0, tvOS 13.0, *)
public struct DSUICheckbox: View, DSSelectionControlDetails
An Enterprise-styled push button element in the style of a checkbox for use in SwiftUI views.
isChecked is a binding boolean initializer parameter title is a string initializer parameter groupName is a string initializer parameter
When enabled/disabled, the background color changes. In some situations, you may want this color to propagate to the superview automatically. To allow that, use the binding sharedBackgroundColor optional initializer parameter to extract the color and used it in a parent view.
Initialize and set properties as needed.
DSUICheckbox(isChecked: $checkboxGreen, title: checkboxTitle, groupName: "Group Name", sharedBackgroundColor: $checkboxBackgroundColor)
.disabled(false)
DSUICheckbox(isChecked: $checkboxGreen, title: checkboxTitle, groupName: "Group Name")
DSUICheckbox(isChecked: $checkboxGreen, title: "I agree to this policy", groupName: "Group Name")
Relationships
Conforms To
View
Initializers
Properties
body
public var body: some View