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 #month-calendor #swiftui
YOU MIGHT ALSO LIKE...
SwiftUICam

If you want to have a custom camera using SwiftUI and not using the UIPickerController that will display the original ...

CameraView for SwiftUI 📷

CameraView allows you to have a SnapChat-style screen on your SwiftUI app that gives a realtime view of the iPhone ...

Camera-SwiftUI

SwiftUI has proven to be a really awesome new framework to build and design apps in a quick and reliable ...

ECWeekView

See the swiftui branch for updates. An iOS calendar library for displaying calendar events in a week view.

RKCalendar

RKCalendar is a SwiftUI Calendar / Date Picker for iOS. Features include: minimum and maximum calendar dates selectable, single date selection, ...