Type Method
rule(_:matchesCoordinates:) rule:matchesCoordinates: rule_matchesCoordinates_
Whether axis values satisfy all bounds in a set of Alternative-layer rules.
Declaration
class func rule(_ rule: [String : [String : NSNumber]], matchesCoordinates axisValues: [String : GSMetricStore]?) -> BoolDeclaration
+ (BOOL) rule:(NSDictionary<NSString *,NSDictionary<NSString *,NSNumber *> *> *) rule matchesCoordinates:(GSAxisValues *) axisValues;Declaration
rule_matchesCoordinates_(rule: dict[str, NSDictionary<NSString *,NSNumber *>], axisValues: GSAxisValues) -> boolParameters
ruleAxis rules keyed by axis ID.
axisValuesInternal axis values keyed by axis ID.
Discussion
Bounds are inclusive. Rules for which no axis value is supplied are ignored.
See Also
Variation Axes
Axes used to locate the layer in its design space.
Internal value for an axis, or
nilwhen the axis is unknown.
See Also
Variation Axes
Axes used to locate the layer in its design space.
Internal value for an axis.