DeltaCalendar

main

gikKid/DeltaCalendar

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.

Adding

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

Using

let view = DeltaCalendarView(...)
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)

Technologies

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

Developing

  1. Add shimmer while calendar data will be configuring.
  2. Select year/time in case when scroll between items.
  3. Move to next/prev year by horizontal scrolling.
  4. Show today description at start.
  5. Always return hours format HH.

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

Last updated: Wed Aug 21 2024 01:26:58 GMT-0900 (Hawaii-Aleutian Daylight Time)