Skip to content

gitvalue/YourCalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Fully customisable horizontal calendar for Your needs written in Swift.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages