All Projects → saeid → GDCalendar

saeid / GDCalendar

Licence: MIT license
Calendar component with RTL languages written in swift

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to GDCalendar

gahshomar
A Persian (Jalali/Farsi) calendar for Linux
Stars: ✭ 69 (+155.56%)
Mutual labels:  calendar, persian-calendar
persian-date-time
Persian Date Time
Stars: ✭ 54 (+100%)
Mutual labels:  calendar, persian-calendar
PrimeCalendar
PrimeCalendar provides all of the java.util.Calendar functionalities for Persian, Hijri, and ... dates. It is also possible to convert dates to each other.
Stars: ✭ 45 (+66.67%)
Mutual labels:  calendar, persian-calendar
regional-rb-calendar
地域.rbの開催情報を集めたカレンダーです
Stars: ✭ 12 (-55.56%)
Mutual labels:  calendar
js-calendar
The lightest Javascript calendar out there, without any dependency.
Stars: ✭ 37 (+37.04%)
Mutual labels:  calendar
croncal
Utility to convert a crontab file to a list of actual events within a date range.
Stars: ✭ 37 (+37.04%)
Mutual labels:  calendar
go-locale
GoLang library used to retrieve the current locale(s) of the operating system.
Stars: ✭ 16 (-40.74%)
Mutual labels:  locale
add-to-calendar-button
A convenient JavaScript snippet, which lets you create beautiful buttons, where people can add events to their calendars.
Stars: ✭ 697 (+2481.48%)
Mutual labels:  calendar
laravel-localizer
Automatically detect and set an app locale that matches your visitor's preference.
Stars: ✭ 34 (+25.93%)
Mutual labels:  locale
DailyImageWidget
Android 桌面小部件(widget)日签 Or 日历,可作为桌面日历。Just For Fun! 🎮
Stars: ✭ 30 (+11.11%)
Mutual labels:  calendar
ts-business-time
Business time / market hours logic for TypeScript
Stars: ✭ 18 (-33.33%)
Mutual labels:  calendar
LunarCalendar
A lightweight macOS App for displaying calendar and time
Stars: ✭ 82 (+203.7%)
Mutual labels:  calendar
infocenter
Raspberry Pi weather, calendar, and internet radio with graphical, touch-based interface.
Stars: ✭ 18 (-33.33%)
Mutual labels:  calendar
mhc
MHC -- Message Harmonized Calendaring system
Stars: ✭ 20 (-25.93%)
Mutual labels:  calendar
webmail-pro-8
Webmail front-end for existing mail server, with personal calendar, contacts, and mobile sync.
Stars: ✭ 23 (-14.81%)
Mutual labels:  calendar
datebook
📅 Generates URLs and downloadable ICS files for adding events to popular calendar apps.
Stars: ✭ 273 (+911.11%)
Mutual labels:  calendar
JalaliCalendar
Jalali Calendar for java
Stars: ✭ 76 (+181.48%)
Mutual labels:  persian-calendar
Dont-Break-The-Chain
Generates Don't-Break-The-Chain calendars
Stars: ✭ 19 (-29.63%)
Mutual labels:  calendar
react-native-daterange-picker
A React Native component for picking date ranges or single dates.
Stars: ✭ 86 (+218.52%)
Mutual labels:  calendar
BusinessDays.jl
📆 A highly optimized Business Days calculator written in Julia language. Also known as Working Days calculator.
Stars: ✭ 53 (+96.3%)
Mutual labels:  calendar

GDCalendar

Calendar component with both RTL/LTR languages support with Swipe Gesture enabled navigation.
Easy to use with Storyboard and Attributes Inspector support.

screen shot 2017-04-13 at 01 42 00

Requirements

  • Xcode 10+
  • Swift 4+
  • iOS 8+

Installation

Cocoapods

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'GDCalendar'
end
pod update
pod install

Usage

import GDCalendar

Set To Desire Locale Calendar

// Persian Calendar Locale: fa_IR
UserDefaults.standard.set("fa_IR", forKey: "current_locale")

// List of available iOS locale names
// https://gist.github.com/jacobbubu/1836273

/*
    If `current_locale` is not set, default phone calendar will be selected
*/

Code

let calendar = GDTextSlot(frame: view.bounds)
view.addSubview(calendar)

Set Properties

// Days view items color
calendar.headerItemColor = UIColor.white
    
// Main calendar items text color
calendar.itemsColor = UIColor.black
    
// Header view items font
calendar.headersFont = UIFont.boldSystemFont(ofSize: 13)

// Calendar items font
calendar.itemsFont = UIFont.systemFont(ofSize: 15)
    
// Full properties list can be found on sample project

Set Date Selection Closure

calendar.dateSelectHandler = { [weak self] selectedDate in
    print(selectedDate)

    // Get Date Components
    let day = date.dayName
    let month = date.monthName
    
    let components = date.componentsOfDate
    print("\(components.year) / \(components.month) / \(components.day)")
}

Storyboard

  1. Add UIView to storyboard, set custom class to GDCalendar
  2. Set attributes with Attribute Inspector

Licence

GDCalendar is available under the MIT license. See the LICENSE.txt 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].