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...
🧭 NavigationKit

NavigationKit is a lightweight library which makes SwiftUI navigation super easy to use. 💻 Installation 📦 Swift Package Manager Using Swift Package Manager, add ...

swiftui-navigation-stack

An alternative SwiftUI NavigationView implementing classic stack-based navigation giving also some more control on animations and programmatic navigation. NavigationStack Installation ...

Stinsen

Simple, powerful and elegant implementation of the Coordinator pattern in SwiftUI. Stinsen is written using 100% SwiftUI which makes it ...

SwiftUI Router

With SwiftUI Router you can power your SwiftUI app with path-based routing. By utilizing a path-based system, navigation in your app becomes ...

FlowStacks

This package takes SwiftUI's familiar and powerful NavigationStack API and gives it superpowers, allowing you to use the same API not just ...