AdmiralUIKit Views Calendar - admiral-team/admiralui-ios GitHub Wiki
Overview
CalendarView
- let users select a date, or a range of dates.
This component is presented in two versions: Vertical Mode and Horizontal Mode. Additionally, you can configure parameters such as the locale, start date, end date, selected start date, selected end date, the date month that will appear when the calendar appears, and disabled dates after a certain date.
The vertical calendar can be scrolled vertically, presented in the form of a table and divided into sections. Each section is a specific month.
A horizontal calendar is a display of the month. Switching between months and years is carried out using the left and right buttons. You can also switch between months using picker view.
Code
let calendarView = CalendarView(type: .vertical)
calendarView.calendarDataSource = self
calendarView.calendarDelegate = self
calendarView.notActiveAfterDate = Date()
calendarView.reloadData()
You can create a CalendarView by specifying the following parameters in the initializer:
- type: Type calendar.
Live Example
To run live demo with CalendarViews
open Xcode and run project with Example target. Then in the main page open Views/CalendarViews:
Contribution
You can help us to find bugs or ask us to add features.
- To start
issue
please use ready-made templates. - To make changes to the repository, you need to create a
fork
of the project, make changes to the code and create apull request
in our project. You can read more about this in the Github documentation.