Skip to content

gikKid/DeltaCalendar

Repository files navigation

DeltaCalendar

Custom configuring calendar.

 

Opportunities

  1. Showing years range.
  2. Configuring time range at day and minutes offset.
  3. Disabling off-time days.
  4. Setting custom colors.
  5. Disabling previous days and intraday time.
  6. Disable custom time interval by minutes from today date.

Adding

Use SPM to add calendar package at project. (link)

Using

let view = DeltaCalendarView(...)
// Return date format is yyyy-MM-dd HH:mm:ssZ
view.delegate = self
// Parameter "from" must be equal or less than parameter "to", otherwise it woudnt be build.
let pickingYearsData = PickingYearModel(from: 2000, to: 2030)
// Weekday must be value from 1 to 7 (gregorian calendar).
// Date format is HH:mm.
// Parameter 'start date' must be less than parameter 'end date'.
let dayTimes: [DayTimeStartModel] =
[
 .init(weekday: 1, startDate: "10:00", endDate: "17:30"),
 .init(weekday: 2, startDate: "09:00", endDate: "18:00")
]

// Parameter offset must be equal or more than '1'.
let showTimeData = ShowTimeModel(data: dayTimes, offset: 15)
let colors = Colors(text: .black, main: .blue, secondaryText: .lightGray, background: .white)
// disable first two days from today.
let orderGap = OrderingGap(minutes: 2 * 24 * 60)

Technologies

  1. UIKit
  2. Snapkit
  3. Calendar(Apple)
  4. Combine

Developing

  1. Select year/time in case when scroll is placing between items.
  2. Move to next/prev year by horizontal scrolling.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages