CreationKit Documentation

Class JTACYear​View

open class JTACYearView: UICollectionView  
JTACYearView JTACYearView UICollectionViewDelegateFlowLayout UICollectionViewDelegateFlowLayout JTACYearView->UICollectionViewDelegateFlowLayout UICollectionView UICollectionView JTACYearView->UICollectionView JTACCellMonthViewDelegate JTACCellMonthViewDelegate JTACYearView->JTACCellMonthViewDelegate UICollectionViewDelegate UICollectionViewDelegate JTACYearView->UICollectionViewDelegate UICollectionViewDataSource UICollectionViewDataSource JTACYearView->UICollectionViewDataSource

Conforms To

JTACCellMonthViewDelegate
UICollectionView
UICollectionViewDataSource
UICollectionViewDelegate
UICollectionViewDelegateFlowLayout

Properties

calendar​Delegate

weak open var calendarDelegate: JTACYearViewDelegate? 

The object that acts as the delegate of the calendar year view.

calendar​Data​Source

weak open var calendarDataSource: JTACYearViewDataSource?  

ib​Calendar​Delegate

@IBOutlet public var ibCalendarDelegate: AnyObject?  

Workaround for Xcode bug that prevents you from connecting the delegate in the storyboard. Remove this extra property once Xcode gets fixed.

ib​Calendar​Data​Source

@IBOutlet public var ibCalendarDataSource: AnyObject?  

Workaround for Xcode bug that prevents you from connecting the delegate in the storyboard. Remove this extra property once Xcode gets fixed.

Methods

collection​View(_:​number​OfItems​InSection:​)

public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int  

collection​View(_:​cell​For​Item​At:​)

public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell  

collection​View(_:​layout:​size​For​Item​At:​)

public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize  

dequeue​Reusable​JTApple​Month​Cell(with​Reuse​Identifier:​for:​)

public func dequeueReusableJTAppleMonthCell(withReuseIdentifier identifier: String, for indexPath: IndexPath) -> JTACMonthCell  

Dequeues a reuable calendar cell

data​Sourcefrom(configuration​Parameters:​)

open func dataSourcefrom(configurationParameters: ConfigurationParameters) -> [Any]  

month​View(_:​drawing​For:​with:​date​Owner:​month​Index:​)

public func monthView(_ monthView: JTACCellMonthView, drawingFor segmentRect: CGRect, with date: Date, dateOwner: DateOwner, monthIndex: Int)