FUICalculateLayout
public protocol FUICalculateLayout
Implementation protocol, for calculating frame layouts on various bounds and layout margin updates.
-
Optional property, for deriving parent bounds.
Declaration
Swift
var container: InnerViewContainerProtocols? { get set }
-
Set
needsCalculateLayout
flag totrue
Declaration
Swift
func setNeedsCalculateLayout()
-
Executes layout calculation, within designated bounds
Declaration
Swift
func calculateLayout(_ targetSize: CGSize)
Parameters
targetSize
size of rectangle within which layout should be computed.
-
Readable property to check if component is already flagged to recompute layout on next change.
Declaration
Swift
var needsCalculateLayout: Bool { get }
-
Cleanup method implemented by components. Analogous to
UITableViewCell.prepareForReuse()
.Declaration
Swift
func prepareForReuse()