CPCCalendarView

open class CPCCalendarView : UIView

A container view that internally manages and reuses CPCMonthView instances to provide an illusion of infinitely scrollable calendar interface.

Implementation details are private and you are strongly discouraged from relying on any internal hierarchy of the container. Instead, use CPCMultiMonthView that provides the same unified selection handling and appearance attributes management, but assigning month values to specific views or arranging them visually remains under user control.

  • A Boolean value that controls whether the scroll view bounces past the edge of content and back again.

    Declaration

    Swift

    open var bounces: Bool { get set }
  • A Boolean value that determines whether bouncing always occurs when vertical scrolling reaches the end of the content.

    Declaration

    Swift

    open var alwaysBounceVertical: Bool { get set }
  • A Boolean value that determines whether bouncing always occurs when horizontal scrolling reaches the end of the content view.

    Declaration

    Swift

    open var alwaysBounceHorizontal: Bool { get set }
  • A Boolean value that controls whether the scroll-to-today gesture is enabled.

    Declaration

    Swift

    open var scrollsToToday: Bool { get set }
  • The custom distance that the content view is inset from the safe area or scroll view edges.

    Declaration

    Swift

    open var contentInset: UIEdgeInsets { get set }
  • The distance the scroll indicators are inset from the edge of the scroll view.

    Declaration

    Swift

    open var scrollIndicatorInsets: UIEdgeInsets { get set }
  • The insets derived from the content insets and the safe area of the scroll view.

    Declaration

    Swift

    @available(iOS 11.0, *)
    open var adjustedContentInset: UIEdgeInsets { get }
  • The behavior for determining the adjusted content offsets.

    Declaration

    Swift

    @available(iOS 11.0, *)
    open var contentInsetAdjustmentBehavior: UIScrollView.ContentInsetAdjustmentBehavior { get set }
  • A Boolean value that controls whether the horizontal scroll indicator is visible.

    Declaration

    Swift

    open var showsHorizontalScrollIndicator: Bool { get set }
  • A Boolean value that controls whether the vertical scroll indicator is visible.

    Declaration

    Swift

    open var showsVerticalScrollIndicator: Bool { get set }
  • Scrolls a specific area of the content so that it is visible in the receiver.

    Declaration

    Swift

    open func scrollTo(date: Date, animated: Bool)

    Parameters

    date

    A date that must be visible after scroll animation finishes.

    animated

    true if the scrolling should be animated, false if it should be immediate.

  • Scrolls a specific area of the content so that it is visible in the receiver.

    Declaration

    Swift

    open func scrollTo(day: CPCDay, animated: Bool)

    Parameters

    day

    A specific day that must be visible after scroll animation finishes.

    animated

    true if the scrolling should be animated, false if it should be immediate.

  • Scrolls a specific area of the content so that it is visible in the receiver.

    Declaration

    Swift

    open func scrollTo(month: CPCMonth, animated: Bool)

    Parameters

    month

    A specific month that must be visible after scroll animation finishes.

    animated

    true if the scrolling should be animated, false if it should be immediate.

  • Exposes CPCViewTitleStyle.customTemplate to be used from Objective C code.

    Declaration

    Swift

    @IBInspectable
    open dynamic var titleTemplate: String! { get set }
  • Exposes CPCViewTitleStyle.custom to be used from Objective C code.

    Declaration

    Swift

    @IBInspectable
    open dynamic var titleFormat: String! { get set }