Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.48 KB

File metadata and controls

65 lines (45 loc) · 1.48 KB

YourCalendar

Fully customisable horizontal calendar for Your needs written in Swift.

Swift Version License

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.

Installation

Add this project on your Package.swift

import PackageDescription

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/gitvalue/YourCalendar", majorVersion: 1, minor: 0)
    ]
)

Usage example

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!

Release History

  • 1.0.0
    • ADD: Adds first version of the calendar

Meta

Dmitry Volosach – youtube.com/@oldnmad

Distributed under the MIT license. See LICENSE for more information.