Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SimformSolutionsPvtLtd/SSCalendarControl
SSCalendarControl is small and highly customizable calendar control written in swift.
https://github.com/SimformSolutionsPvtLtd/SSCalendarControl
calendar calendar-component calendar-view customview swift4 swift5
Last synced: 3 months ago
JSON representation
SSCalendarControl is small and highly customizable calendar control written in swift.
- Host: GitHub
- URL: https://github.com/SimformSolutionsPvtLtd/SSCalendarControl
- Owner: SimformSolutionsPvtLtd
- License: mit
- Created: 2019-05-03T05:47:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-27T13:22:27.000Z (10 months ago)
- Last Synced: 2024-09-23T18:45:51.448Z (4 months ago)
- Topics: calendar, calendar-component, calendar-view, customview, swift4, swift5
- Language: Swift
- Homepage:
- Size: 3.86 MB
- Stars: 36
- Watchers: 7
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-SS-Mobile - SSCalendarControl - SSCalendarControl is small and highly customizable calendar control written in swift. (iOS Guides / Swift)
README
# SSCalendarControl
SSCalendarControl is small and highly customizable calendar control written in swift.[![Swift Version][swift-image]][swift-url]
[![Build Status][travis-image]][travis-url]
[![License][license-image]][license-url]
[![Platform][platform-image]][platform-url]
[![PRs Welcome][PR-image]][PR-url]![Alt text](https://github.com/simformsolutions/SSCalendar/blob/develop/SSCalendar_Demo.gif)
# Features!
- Customizable control
- Flexible date range
- Customizable week day
- Selection delegates
- Customizable month and days cells
- CocoaPods# Requirements
- iOS 10.0+
- Xcode 9+# Installation
- You can use CocoaPods to install SSCalendarControl by adding it to your Podfile:use_frameworks!
pod 'SSCalendarControl'-
import UIKit
import SSCalendarControl**Manually**
- Download and drop **SSCalendarControl** folder in your project.
- Congratulations!# Usage example
- In the storyboard add a UIView and change its class to SSCalendarView
![Alt text](https://github.com/simformsolutions/SSCalendar/blob/develop/SSCalendar_Usage.png)**Setup Calendar**
calendarView.setUpCalendar(startDate: startDate, endDate: endDate, weekStartDay: .monday, shouldSelectPastDays: true, sholudAllowMultipleSelection: false)
**Weekday Customization**
calendarView.configuration.weekDayBorderColor = UIColor.black
calendarView.configuration.weekDayLabelBackgroundColor = UIColor.clear
calendarView.configuration.weekDayLabelTextColor = UIColor.black**Month Customization**
calendarView.configuration.monthViewBackgroundColor = UIColor.white
calendarView.configuration.monthViewBottomLineColor = UIColor.darkGray
calendarView.configuration.monthLabelFont = UIFont.systemFont(ofSize: 20)
calendarView.configuration.monthLabelTextColor = UIColor.red**Days Customization**
calendarView.configuration.previousDayTextColor = UIColor.black
calendarView.configuration.previousDayBorderColor = UIColor.clear
calendarView.configuration.upcomingDaysBorderColor = UIColor.clear
calendarView.configuration.upcomingDaysBorderColor = UIColor.clear
calendarView.configuration.upcomingDayTextColor = UIColor.brown
calendarView.configuration.selectedDayTextColor = UIColor.yellow
calendarView.configuration.currentDayBorderColor = UIColor.black
calendarView.configuration.currentDayTextColor = UIColor.white
calendarView.configuration.currentDayBackgroundColor = UIColor.red**Selection Delegates**
calendarView.delegate = self
extension ViewController: SSCalendarDeleagte {
func dateSelected(_ date: Date) {
print("selected: \(date)")
}
func dateDeSelected(_ date: Date) {
print("deSelected: \(date)")
}
}# Contribute
- We would love you for the contribution to SSCalendarControl, check the LICENSE file for more info.# Meta
- Distributed under the MIT license. See LICENSE for more information.[swift-image]:https://img.shields.io/badge/swift-5.0-orange.svg
[swift-url]: https://swift.org/
[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE
[travis-image]: https://img.shields.io/travis/dbader/node-datadog-metrics/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/dbader/node-datadog-metrics
[codebeat-image]: https://codebeat.co/assets/svg/badges/C-ffb83f-7198e9a1b7ad7f73977b0c9a5c7c3fffbfa25f262510e5681fd8f5a3188216b0.svg
[codebeat-url]: https://codebeat.co/projects/github-com-vsouza-awesomeios-com
[platform-image]:https://img.shields.io/cocoapods/p/LFAlertController.svg?style=flat
[platform-url]:http://cocoapods.org/pods/LFAlertController
[cocoa-image]:https://img.shields.io/cocoapods/v/EZSwiftExtensions.svg
[cocoa-url]:https://img.shields.io/cocoapods/v/LFAlertController.svg
[PR-image]:https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
[PR-url]:http://makeapullrequest.com