Skip to content

yodagamaheshan/DateGrid

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
February 26, 2021 20:01
December 3, 2022 21:21
July 9, 2022 16:43
October 26, 2020 20:37
October 26, 2020 20:50
December 3, 2022 11:18
October 29, 2020 09:25

DateGrid

Description not available.

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