Skip to content

yshrkt/TinyCalendar

Repository files navigation

TinyCalendar

Xcode Swift

TinyCalendar is simple calendar view.

Environment

  • iOS8 higher
  • Xcode 8.3
  • Swift 3.1

Usage

Initialize as bellow:

let calendarView = CalendarView(frame: CGRect(x: 0, y: 0, width: 375, height: 375))
calendarView.configure()

Changes year/month as bellow:

calendarView.update(year: 2017, month: 10)

Also you can customize calendar cell just like UITableViewCell's cell.

calendarView.registerHeaderCell(CustomHeaderCell.self)
calendarView.registerCell(CustomCell.self)

Please see the details in TinyCalendar.playground.

example1

Installation

Carthage

To install it, simply add the following line to your Cartfile:

github "yshrkt/TinyCalendar"

Licence

TinyCalendar is released under the MIT license. See LICENSE for details.

Author

yshrkt