CPCMultiMonthsView
open class CPCMultiMonthsView : UIView, CPCViewProtocol
A container view that provides an aggregate interface for managed month views.
After a month view has been added to the container, its appearance properties must no longer can be individually; their values are managed by the container view and are exactly same for all children. Selection and user interaction is also managed by the container, which provides aggregate selection value, enabled region and supports selection that spans across multiple views. On the other hand, layout of the managed subviews is not performed and remains user responsibility.
-
Undocumented
Declaration
Swift
open override var backgroundColor: UIColor? { get set } -
Declaration
Swift
@IBInspectable open dynamic var titleFont: UIFont { get set } -
Declaration
Swift
@IBInspectable open dynamic var titleColor: UIColor { get set } -
Declaration
Swift
@IBInspectable open dynamic var titleAlignment: NSTextAlignment { get set } -
Declaration
Swift
open var titleStyle: TitleStyle { get set } -
Declaration
Swift
@IBInspectable open dynamic var titleMargins: UIEdgeInsets { get set } -
Declaration
Swift
@IBInspectable open dynamic var dayCellFont: UIFont { get set } -
Declaration
Swift
@IBInspectable open dynamic var separatorColor: UIColor { get set } -
Declaration
Swift
open var cellRenderer: CPCDayCellRenderer { get set } -
Undocumented
Declaration
Swift
open var adjustsFontForContentSizeCategory: Bool { get set } -
The object that acts as the selection delegate of this view.
Declaration
Swift
open var selectionDelegate: CPCMultiMonthsViewSelectionDelegate? { get set } -
Undocumented
Declaration
Swift
deinit -
Declaration
Swift
@objc(dayCellTextColorForState:) open dynamic func dayCellTextColor(for state: DayCellState) -> UIColor? -
Declaration
Swift
@objc(setDayCellTextColor:forState:) open dynamic func setDayCellTextColor(_ textColor: UIColor?, for state: DayCellState) -
Declaration
Swift
@objc(dayCellBackgroundColorForState:) open dynamic func dayCellBackgroundColor(for state: DayCellState) -> UIColor? -
Declaration
Swift
@objc(setDayCellBackgroundColor:forState:) open dynamic func setDayCellBackgroundColor(_ backgroundColor: UIColor?, for state: DayCellState) -
Undocumented
Declaration
Swift
internal let monthViewsManager: CPCMonthViewsManager
-
The list of views arranged by the container view.
Declaration
Swift
@objc open var monthViews: [CPCMonthView] { get } -
Adds a managed month view to the end of
monthViewsarray.Note
This method also adds the given view as subview to the container.Declaration
Swift
@objc open func addMonthView(_ monthView: CPCMonthView)Parameters
monthViewThe month view to be added.
-
Adds the provided view to the
monthViewsarray at the specified index.Note
This method also adds the given view as subview to the container.Declaration
Swift
@objc open func insertMonthView(_ monthView: CPCMonthView, at index: Int)Parameters
monthViewThe month view to be added.
indexIndex for the aded view.
-
Removes the provided view from
monthViewsand stops it properties management.Note
This method does not remove month view from the container’ssubviews.Declaration
Swift
@objc open func removeMonthView(_ monthView: CPCMonthView)Parameters
monthViewMonth view to remove.
-
See
selection.Declaration
Swift
@objc(selection) open var _objcBridgedSelection: __CPCViewSelection { get set } -
Declaration
Swift
open var selection: CPCViewSelection { get set } -
Undocumented
Declaration
Swift
internal func selectionValue(of delegate: CPCMultiMonthsViewSelectionDelegate) -> Selection -
Undocumented
Declaration
Swift
internal func setSelectionValue(_ selection: Selection, in delegate: CPCMultiMonthsViewSelectionDelegate) -
Undocumented
Declaration
Swift
internal func resetSelection(in delegate: CPCMultiMonthsViewSelectionDelegate) -
Undocumented
Declaration
Swift
internal func handlerShouldSelectDayCell(_ day: CPCDay, delegate: CPCMultiMonthsViewSelectionDelegate) -> Bool -
Undocumented
Declaration
Swift
internal func handlerShouldDeselectDayCell(_ day: CPCDay, delegate: CPCMultiMonthsViewSelectionDelegate) -> Bool
-
Exposes
CPCViewTitleStyle.customTemplateto be used from Objective C code.Declaration
Swift
@IBInspectable open dynamic var titleTemplate: String! { get set } -
Exposes
CPCViewTitleStyle.customto be used from Objective C code.Declaration
Swift
@IBInspectable open dynamic var titleFormat: String! { get set }
View on GitHub
Install in Dash
CPCMultiMonthsView Class Reference