All Projects → DevYeom → Yycalendar

DevYeom / Yycalendar

Licence: mit
Simple and Clear Calendar

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Yycalendar

Recyclercalendarandroid
A simple DIY library to generate your own custom Calendar View using RecyclerView, written in Kotlin
Stars: ✭ 83 (+80.43%)
Mutual labels:  calendar, calendar-view, calendar-component
GCCalendar
A customizable calendar view for iOS 9+ written in Swift.
Stars: ✭ 53 (+15.22%)
Mutual labels:  calendar, calendar-component, calendar-view
Primedatepicker
PrimeDatePicker is a tool that provides picking a single day, multiple days, and a range of days.
Stars: ✭ 292 (+534.78%)
Mutual labels:  calendar, calendar-view, calendar-component
Customizablecalendar
CustomizableCalendar is a library that allows you to create your calendar, customizing UI and behaviour
Stars: ✭ 214 (+365.22%)
Mutual labels:  calendar, calendar-view, calendar-component
Calendarview
An Easy to Use Calendar for iOS (Swift 5.0)
Stars: ✭ 429 (+832.61%)
Mutual labels:  calendar, calendar-view, calendar-component
Calendar Ios
Calendar View
Stars: ✭ 154 (+234.78%)
Mutual labels:  calendar, calendar-view, calendar-component
Cvcalendar
A custom visual calendar for iOS 8+ written in Swift (>= 4.0).
Stars: ✭ 3,435 (+7367.39%)
Mutual labels:  calendar, calendar-view, calendar-component
Xamarin.plugin.calendar
Calendar plugin for Xamarin.Forms
Stars: ✭ 159 (+245.65%)
Mutual labels:  calendar, calendar-view, calendar-component
Eventscalendar
Events Calendar is a user-friendly library that helps you achieve a cool Calendar UI with events mapping. You can customise every pixel of the calendar as per your wish and still achieve in implementing all the functionalities of the native android calendar in addition with adding dots to the calendar which represents the presence of an event on the respective dates. It can be done easily, you are just a few steps away from implementing your own badass looking Calendar for your very own project!
Stars: ✭ 188 (+308.7%)
Mutual labels:  calendar, calendar-view, calendar-component
Calendarview
Android上一个优雅、万能自定义UI、仿iOS、支持垂直、水平方向切换、支持周视图、自定义周起始、性能高效的日历控件,支持热插拔实现的UI定制!支持标记、自定义颜色、农历、自定义月视图各种显示模式等。Canvas绘制,速度快、占用内存低,你真的想不到日历居然还可以如此优雅!An elegant, highly customized and high-performance Calendar Widget on Android.
Stars: ✭ 7,998 (+17286.96%)
Mutual labels:  calendar, calendar-view, calendar-component
CalendarView
日历控件
Stars: ✭ 14 (-69.57%)
Mutual labels:  calendar, calendar-view
Peppy Calendarview
Simple and fast Material Design calendar view for Android.
Stars: ✭ 30 (-34.78%)
Mutual labels:  calendar, calendar-view
EventCalender
This event setter library. You can set any event in any date and also you can modify it
Stars: ✭ 23 (-50%)
Mutual labels:  calendar-component, calendar-view
Jzcalendarweekview
Calendar Week & Day View in iOS Swift
Stars: ✭ 272 (+491.3%)
Mutual labels:  calendar, calendar-view
Vue Functional Calendar
Vue.js Functional Calendar | Component/Package
Stars: ✭ 314 (+582.61%)
Mutual labels:  calendar, calendar-component
UltraWeekCalendar
UltraWeekCalendar - Clean UI to select day through weeks
Stars: ✭ 29 (-36.96%)
Mutual labels:  calendar, calendar-component
React Timeline Gantt
A react Timeline component with virtual rendering
Stars: ✭ 347 (+654.35%)
Mutual labels:  calendar, calendar-component
Android Week View
Android Week View is an android library to display calendars (week view or day view) within the app. It supports custom styling.
Stars: ✭ 3,347 (+7176.09%)
Mutual labels:  calendar, calendar-view
Cadar
Android solution which represents month and list calendar views.
Stars: ✭ 360 (+682.61%)
Mutual labels:  calendar, calendar-view
Crunchycalendar
A beautiful material calendar with endless scroll, range selection and a lot more!
Stars: ✭ 465 (+910.87%)
Mutual labels:  calendar, calendar-view

YYCalendar

Swift Version License Platform

Introduction

When you need to let users choose date from calendar. You can use YYCalendar. Simple And Clear 😎

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Demo

Usage

To create and show a calendar, first of all, import the module at the beginning of the file:

import YYCalendar

First of all, you can show the calendar as below:

you have to equate format of date parameter with format parameter.

let calendar = YYCalendar(normalCalendarLangType: .ENG, date: "07/01/2019", format: "MM/dd/yyyy") { date in
    print(date)
}

calendar.show()

You can set calendar style properties (color, font, ...)

calendar.dayButtonStyle = DayButtonStyle (.roundishSquare, .square, .circle)
calendar.dimmedBackgroundColor = UIColor
calendar.dimmedBackgroundAlpha = CGFloat
calendar.headerViewBackgroundColor = UIColor
calendar.bodyViewBackgroundColor = UIColor
calendar.sundayColor = UIColor
calendar.disabledSundayColor = UIColor
calendar.saturdayColor = UIColor
calendar.disabledSaturdayColor = UIColor
calendar.defaultDayColor = UIColor
calendar.disabledDefaultDayColor = UIColor
calendar.lineSeparatorColor = UIColor
calendar.selectedDayColor = UIColor
calendar.headerLabelFont = UIFont
calendar.weekLabelFont = UIFont
calendar.dayLabelFont = UIFont

Calendar Type

There are two types of calendar.

Calendar Type Description
normal you can select all of the date periods
limited you can limit selectable date periods
// normal type
init(normalCalendarLangType langType: LangType, date: String, format: String, completion: @escaping SelectHandler)

// limited type
init(limitedCalendarLangType langType: LangType, date: String, minDate: String?, maxDate: String?, format: String, completion: @escaping SelectHandler)

normalType_Sample limitedType_Sample

Language Type

The week label can be changed by selecting langType.

langType weekLabel
ENG SUN, MON, TUE, WED, THU, FRI, SAT
ENG2 Sun, Mon, Tue, Wed, Thu, Fri, Sat
ENG3 S, M, T, W, T, F, S
KOR 일, 월, 화, 수, 목, 금, 토
JPN 日, 月, 火, 水, 木, 金, 土
CHN 日, 一, 二, 三, 四, 五, 六
custom [String]

ENG_Sample ENG2_Sample ENG3_Sample KOR_Sample JPN_Sample CHN_Sample

You can assign custom week label as below.

let weekArray = ["1", "2", "3", "4", "5", "6", "7"]
let calendar = YYCalendar(normalCalendarLangType: .custom(weekArray), date: "07/01/2019", format: "MM/dd/yyyy") { date in
    print(date)
}

calendar.show()

Installation

YYCalendar is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'YYCalendar'

Author

DevYeom, [email protected]

License

YYCalendar is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].