Fully customisable horizontal calendar for Your needs written in Swift.
Built to be 100% customisable, YourCalendar at its core provides flexible API to build Your own calendar, but also a default implementation so that you could easily get started.
Add this project on your Package.swift
import PackageDescription
let package = Package(
dependencies: [
.Package(url: "https://github.com/gitvalue/YourCalendar", majorVersion: 1, minor: 0)
]
)
import YourCalendar
// Instantiate configurator
let configurator = BasicCalendarConfigurator(
enumerator: MonthlyCalendarViewDateEnumerator()
)
// Instantiate view
let calendarListView = CalendarListView<CalendarViewDayCell, BasicCalendarViewConfigurator>(frame: .zero)
// Update view with model
calendarListView.update(
model: .init(
date: .now,
shifter: MonthlyCalendarViewDateShifter(),
configurator: configurator
)
)
// You're gorgeous!
- 1.0.0
- ADD: Adds first version of the calendar
Dmitry Volosach – youtube.com/@oldnmad
Distributed under the MIT license. See LICENSE
for more information.