AndConstraint
public struct AndConstraint : Constraint
A constraint to check if all of the child constraints are valid or not.
-
An array of child constraints.
Declaration
Swift
public let constraints: [Constraint] -
See
Constraint.Declaration
Swift
public let groups: Set<Group> -
A validator named
AndValidatorto validate a value.Declaration
Swift
public let validator: ConstraintValidator -
Initializes a new instance with an array of child constraints and a set of
Groups to group by.Declaration
Swift
public init(_ constraints: [Constraint] = .init(), groups: Set<Group> = .init())Parameters
constraintsAn array of child constraints.
groupsA set of
Groups to group by. Defaults to an empty set.
View on GitHub
Install in Dash