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

    month

    Month to be rendered by the measured view.

    separatorWidth

    Width of separator lines of the measured view. Typically is equal to roundingScale.

    titleFont

    Font that the measure view would use to render month title.

    titleMargins

    Additional 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

    month

    Month to be rendered by the measured view.

    partialAttributes

    Non-ccalendric layout attributes.