MutableSizeConstraint
@objc(YMAMutableSizeConstraint)
@objcMembers
public class MutableSizeConstraint : SizeConstraint
A class with editable object sizing constraints.
-
Object sizing constraint.
Remark
Acceptable values are listed inSizeConstraintType.Declaration
Swift
override public var type: SizeConstraintType { get set } -
The constraint value. The meaning of the value depends on the
typeproperty.Declaration
Swift
override public var value: CGFloat { get set } -
Corresponding immutable representation of current size constraint.
Declaration
Swift
public var constraint: SizeConstraint { get } -
Undocumented
Declaration
Swift
public convenience init() -
Creates an object of the
MutableSizeConstraintclass, i.e., the object sizing constraint.Declaration
Swift
public required convenience init(type: SizeConstraintType, value: CGFloat)Parameters
typeObject sizing constraint. Acceptable values are listed in
SizeConstraintType.valueThe constraint value. The meaning of the value depends on the
typeproperty.Return Value
The specified object sizing constraint.
-
Undocumented
Declaration
Swift
override public func copy(with zone: NSZone? = nil) -> Any