A SwiftUI Calendar Generator for IOS
- Supply starting date
- Select months to display
- Disabled, Enabled, Selected, Today day states
- Color control
- Dark Mode Support
- Requires IOS 13.0+ / Xcode 11+ / Swift 5.1+
- Copy
Sources/MonthCal
files into your xcode project
- Add via Swift Package Manager
- To customize the colors used, edit colors listed in the
Colors.swift
file
- Show calendar with a start date and amount of months to display
Import MonthCal
CalendarView(start: Date(), monthsToShow: 6)
- Disable ability for dates to be selected
Import MonthCal
CalendarView(start: Date(), monthsToShow: 6, daysSelectable: false)
- MonthCal is available under the MIT license. See the
LICENSE
file for more info.
- Paul Hudson - @twostraws - https://www.hackingwithswift.com/100/swiftui
- RaffiKian - https://github.com/RaffiKian/RKCalendar - Inspiration