SSCalendarView
class SSCalendarView : UIView, SSNibLoadable
Calendar View
-
Undocumented
Declaration
Swift
@IBOutlet weak var cvMonths: UICollectionView!
-
Undocumented
Declaration
Swift
weak var delegate: SSCalendarDeleagte?
-
Undocumented
Declaration
Swift
private var startingDate: Date
-
Undocumented
Declaration
Swift
private var endingDate: Date
-
Undocumented
Declaration
Swift
private var monthModels: [SSCalendarMonth]
-
Undocumented
Declaration
Swift
private var totalMonths: Int!
-
Undocumented
Declaration
Swift
private var weekStartDay: WeekStartDay
-
Undocumented
Declaration
Swift
private var selectPastDays: Bool
-
Undocumented
Declaration
Swift
private var multipleSelection: Bool
-
Undocumented
Declaration
Swift
private var currentSelectedMonthIndex: IndexPath?
-
Undocumented
Declaration
Swift
fileprivate let monthCellID: String
-
Undocumented
Declaration
Swift
fileprivate let headerViewID: String
-
Calendar view configration
Declaration
Swift
public var configuration: SSCalendarConfiguration
-
Undocumented
Declaration
Swift
override func awakeFromNib()
-
Undocumented
Declaration
Swift
override init(frame: CGRect)
-
Undocumented
Declaration
Swift
required init?(coder aDecoder: NSCoder)
-
Undocumented
Declaration
Swift
fileprivate func initialSetup()
-
Undocumented
Declaration
Swift
fileprivate func createDataModel(startMonth: (month: Int, year: Int, name: String), endMonth: (month: Int, year: Int, name: String))
-
Undocumented
Declaration
Swift
fileprivate func setUpCollection()
-
Setup method for calendar view
Declaration
Swift
public func setUpCalendar(startDate: Date = SSConstants.todayDate, endDate: Date = SSConstants.todayDate.getDateAfter(years: 1, months: 0), weekStartDay: WeekStartDay = .monday, shouldSelectPastDays: Bool = false, sholudAllowMultipleSelection: Bool = true)
Parameters
startDate
Starting date
endDate
Ending Date
weekStartDay
Week start day
selectPastDays
Allow to select past day
multipleSelectable
Allow select multiple dates
-
Undocumented
Declaration
Swift
fileprivate func getTotalNumberOfItems(model: SSCalendarMonth) -> Int
-
Undocumented
Declaration
Swift
fileprivate func getCollectionHeight(for indexPath: IndexPath) -> CGFloat
-
Undocumented
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
-
Undocumented
Declaration
Swift
fileprivate func postConfigureItem(for cell: SSMonthCell, with indexPath: IndexPath)
-
Undocumented
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
-
Undocumented
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
-
Undocumented
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForHeaderInSection section: Int) -> CGSize
-
Undocumented
Declaration
Swift
func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView
-
Undocumented
Declaration
Swift
func deselectItem(at indexPath: IndexPath)