LayoutAttributes
public struct LayoutAttributes : CPCViewLayoutAttributes
-
Declaration
Swift
public var roundingScale: CGFloat { get } -
Initializes layout attributes to match currently use values in the specified view.
Declaration
Swift
public init?(_ view: CPCMonthView) -
Initializes layout attributes for a specific month view.
Declaration
Swift
public init(month: CPCMonth, separatorWidth: CGFloat, titleFont: UIFont, titleMargins: UIEdgeInsets)Parameters
monthMonth to be rendered by the measured view.
separatorWidthWidth of separator lines of the measured view. Typically is equal to
roundingScale.titleFontFont that the measure view would use to render month title.
titleMarginsAdditional month view title insets/outsets.
-
Initializes layout attributes for a specific month view and other non-calendric partial attributes.
Declaration
Swift
public init(month: CPCMonth, partialAttributes: PartialLayoutAttributes)Parameters
monthMonth to be rendered by the measured view.
partialAttributesNon-ccalendric layout attributes.
View on GitHub
Install in Dash
LayoutAttributes Structure Reference