LayoutCoordinateSpace
public protocol LayoutCoordinateSpace
Common protocol for anyone LayoutElement
.
Used for multi-converting coordinates between LayoutElement
items.
Converting between UIView and CALayer has low performance in comparison converting with same type.
Therefore should UIView.layer property when creates constraint relationship between UIView and CALayer.
-
Undocumented
Declaration
Swift
func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
-
Undocumented
Declaration
Swift
func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
-
Undocumented
Declaration
Swift
func convert(rect: CGRect, to item: LayoutElement) -> CGRect
-
Undocumented
Declaration
Swift
func convert(rect: CGRect, from item: LayoutElement) -> CGRect
-
Undocumented
Declaration
Swift
var bounds: CGRect { get }
-
Undocumented
Declaration
Swift
var frame: CGRect { get }
-
convert(point:to:)
Default implementationDefault Implementation
Undocumented
Declaration
Swift
public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
-
convert(point:from:)
Default implementationDefault Implementation
Undocumented
Declaration
Swift
public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
-
convert(rect:to:)
Default implementationDefault Implementation
Undocumented
Declaration
Swift
public func convert(rect: CGRect, to item: LayoutElement) -> CGRect
-
convert(rect:from:)
Default implementationDefault Implementation
Undocumented
Declaration
Swift
public func convert(rect: CGRect, from item: LayoutElement) -> CGRect
-
convert(point:to:)
Default implementationDefault Implementation
Undocumented
Declaration
Swift
public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
-
convert(point:from:)
Default implementationDefault Implementation
Undocumented
Declaration
Swift
public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
-
convert(rect:to:)
Default implementationDefault Implementation
Undocumented
Declaration
Swift
public func convert(rect: CGRect, to item: LayoutElement) -> CGRect
-
convert(rect:from:)
Default implementationDefault Implementation
Undocumented
Declaration
Swift
public func convert(rect: CGRect, from item: LayoutElement) -> CGRect
-
convert(point:to:)
Default implementationDefault Implementation
Undocumented
Declaration
Swift
public func convert(point: CGPoint, to item: LayoutElement) -> CGPoint
-
convert(point:from:)
Default implementationDefault Implementation
Undocumented
Declaration
Swift
public func convert(point: CGPoint, from item: LayoutElement) -> CGPoint
-
convert(rect:to:)
Default implementationDefault Implementation
Undocumented
Declaration
Swift
public func convert(rect: CGRect, to item: LayoutElement) -> CGRect
-
convert(rect:from:)
Default implementationDefault Implementation
Undocumented
Declaration
Swift
public func convert(rect: CGRect, from item: LayoutElement) -> CGRect