Swiftpack.co - Package - LenisDev/Calendar

Project Logo

License MIT CI Tests Carthage compatibility pod Plateform compatibility

Overview

Easy to use functional calendar for iOS projects.

  • Expanded (Rect style)

expanded_rect

  • Expanded (Round style)

expanded_rect

  • Collapsed (Rect style)

expanded_rect

Checkout example project

Usage


  // Step 1 - create
  let calendarView = CalendarView(data: CalendarViewModel(days: CalendarDayListViewModel(), weekDays: CalendarWeekHeaderViewModel.generateWeekDays())) { selectedDay in
        print(selectedDay)
    }
    
  // Step 2: Customize
  calendarView
    .dayStyle(CalendarDayStyle())
    .weekHeaderStyle(DefaultStyle())
    .dayPresentation(.expanded)

Installation Guide

Carthage

Step 1: Add following to your CartFile

github "LenisDev/Calendar" ~> 0.0.2

Step 2: run carthage update from current project directory.

That's all, you have it installed.


CocoaPods

Step 1: Add pod 'CustomCalendar', '~> 0.0.2' to your Podfile:

target 'MyApp' do
  pod 'CustomCalendar', '~> 0.0.2'
end

Step 2: run pod install from current project directory.

That's all, you have it installed.


Try it using following command

pod try Tab

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/LenisDev/Calendar.git", .upToNextMajor(from: "0.0.2"))
]

Contribute

  • Play around and report bugs
  • Fix issues and create PR
  • Add documentations and new features

Github

link
Stars: 0

Dependencies

Used By

Total: 0

Releases

Custom style and view state - 2020-09-03 08:48:39

Release Date: 2-Sep-2020

  • [X] Custom style for day
  • [X] Added week header
  • [X] Custom calendar view state

Initial release - 2020-08-26 07:10:23

Release Date: 26-Aug-2020

  • [X] Custom calendar
  • [X] Custom styles
  • [X] Pod support
  • [X] Docs
  • [X] Added GH Actions - CI