项目作者: akeslo

项目描述 :
SwiftUI Calendar Generator
高级语言: Swift
项目地址: git://github.com/akeslo/MonthCal.git
创建时间: 2019-11-13T22:12:00Z
项目社区:https://github.com/akeslo/MonthCal

开源协议:MIT License

下载


MonthCal

A SwiftUI Calendar Generator for IOS

Features:

  • Supply starting date
  • Select months to display
  • Disabled, Enabled, Selected, Today day states
  • Color control
  • Dark Mode Support

Photos

Light
Dark

Installation

  • Requires IOS 13.0+ / Xcode 11+ / Swift 5.1+

Option 1

  • Copy Sources/MonthCal files into your xcode project

Option 2

  • Add via Swift Package Manager

Configure

  • To customize the colors used, edit colors listed in the Colors.swift file

Usage

  • Show calendar with a start date and amount of months to display

    1. Import MonthCal
    2. CalendarView(start: Date(), monthsToShow: 6)
  • Disable ability for dates to be selected

    1. Import MonthCal
    2. CalendarView(start: Date(), monthsToShow: 6, daysSelectable: false)

License

  • MonthCal is available under the MIT license. See the LICENSE file for more info.

Shoutouts