DateGrid
A customizable swiftui calendar
Install / Use
/learn @yodagamaheshan/DateGridREADME
<p align="center">
<img src="https://github.com/yodagamaheshan/DateGrid/blob/main/banner.png?raw=true" alt="DateGrid" title="DateGrid" width="557"/>
</p>
<p align="center">
<a href="https://swift.org/package-manager/"><img src="https://img.shields.io/badge/SPM-supported-DE5C43.svg?style=flat"></a>
</p>
Description not available.
Installation
From Xcode 11, you can use Swift Package Manager to add DateGrid to your project.
- Select File > Swift Packages > Add Package Dependency. Enter
https://github.com/yodagamaheshan/DateGrid.gitin the "Choose Package Repository" dialog. - In the next page, specify the version resolving rule.
- After Xcode checking out the source and resolving the version, you can choose the "DateGrid" library and add it to your app target.
Usage
DateGrid(interval: dateInterval , selectedMonth: $selectedMonthDate, mode: mode) { dateGridDate in
Text(dateGridDate.date.day)
.padding(8)
.background(Color.blue)
.cornerRadius(8)
.padding([.bottom], 10)
}
<p> <img src="ScreenShots/iPhone_screenShot.png" width="200"/> <img src="ScreenShots/iPhone_weekMode.png" width="200"/>
</p>