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
type
property.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
MutableSizeConstraint
class, i.e., the object sizing constraint.Declaration
Swift
public required convenience init(type: SizeConstraintType, value: CGFloat)
Parameters
type
Object sizing constraint. Acceptable values are listed in
SizeConstraintType
.value
The constraint value. The meaning of the value depends on the
type
property.Return Value
The specified object sizing constraint.
-
Undocumented
Declaration
Swift
override public func copy(with zone: NSZone? = nil) -> Any