DateGrid A Swiftui-Calendar
  • July 3, 2025

Installation


From Xcode 11, you can use Swift Package Manager to add DateGrid to your project.

  1. Select File > Swift Packages > Add Package Dependency. Enter  https://github.com/yodagamaheshan/DateGrid.git in the “Choose Package Repository” dialog.
  2. In the next page, specify the version resolving rule.
  3. 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)
}

Sample project

 

GitHub


View Github

#calendar #date #swiftui
YOU MIGHT ALSO LIKE...
ConfettiView

A SwiftUI View that emits confetti with user-defined shapes, images, and text.

SwiftUI Colour Wheel

A colour wheel made all in SwiftUI. There are 2 different colour wheels to choose from. The first main one ...

ColorPickerRing

A color picker implementation with color wheel appearance written in plain SwiftUI. It is compatible with UIColor and NSColor.

ASCollectionView

This repository is no longer maintained. Here's why: with the release of iOS 16 SwiftUI now enables most of the ...