{"id":2523,"url":"https://github.com/saeid/GDCalendar","last_synced_at":"2025-08-03T00:31:51.731Z","repository":{"id":56911910,"uuid":"88090217","full_name":"saeid/GDCalendar","owner":"saeid","description":"Calendar component with RTL languages written in swift","archived":false,"fork":false,"pushed_at":"2019-04-27T07:49:11.000Z","size":413,"stargazers_count":26,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-29T11:04:01.928Z","etag":null,"topics":["calendar","component","locale","persian-calendar","swift","swift4"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saeid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-12T19:47:19.000Z","updated_at":"2022-07-17T09:43:47.000Z","dependencies_parsed_at":"2022-08-21T04:20:41.489Z","dependency_job_id":null,"html_url":"https://github.com/saeid/GDCalendar","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeid%2FGDCalendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeid%2FGDCalendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeid%2FGDCalendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saeid%2FGDCalendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saeid","download_url":"https://codeload.github.com/saeid/GDCalendar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510712,"owners_count":17931754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar","component","locale","persian-calendar","swift","swift4"],"created_at":"2024-01-05T20:16:15.867Z","updated_at":"2024-12-06T18:30:31.014Z","avatar_url":"https://github.com/saeid.png","language":"Swift","funding_links":[],"categories":["UI"],"sub_categories":["Calendar"],"readme":"# GDCalendar\n\nCalendar component with both RTL/LTR languages support with Swipe Gesture enabled navigation.   \nEasy to use with Storyboard and Attributes Inspector support.   \n\n\n\u003cimg width=\"375\" alt=\"screen shot 2017-04-13 at 01 42 00\" src=\"https://cloud.githubusercontent.com/assets/9967486/24979816/e6595388-1fea-11e7-8b76-b2be3040e8e5.png\"\u003e\n\n\n## Requirements\n- Xcode 10+\n- Swift 4+\n- iOS 8+\n\n\n# Installation\n\n## Cocoapods\n```\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '9.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'GDCalendar'\nend\n```\n    pod update\n    pod install\n\n\n## Usage\n```swift\nimport GDCalendar\n```\n\nSet To Desire Locale Calendar\n```swift\n// Persian Calendar Locale: fa_IR\nUserDefaults.standard.set(\"fa_IR\", forKey: \"current_locale\")\n\n// List of available iOS locale names\n// https://gist.github.com/jacobbubu/1836273\n\n/*\n    If `current_locale` is not set, default phone calendar will be selected\n*/\n```\n\n## Code\n```swift\nlet calendar = GDTextSlot(frame: view.bounds)\nview.addSubview(calendar)\n```\n\nSet Properties\n```swift\n// Days view items color\ncalendar.headerItemColor = UIColor.white\n    \n// Main calendar items text color\ncalendar.itemsColor = UIColor.black\n    \n// Header view items font\ncalendar.headersFont = UIFont.boldSystemFont(ofSize: 13)\n\n// Calendar items font\ncalendar.itemsFont = UIFont.systemFont(ofSize: 15)\n    \n// Full properties list can be found on sample project\n\n```\n\nSet Date Selection Closure\n```swift\ncalendar.dateSelectHandler = { [weak self] selectedDate in\n    print(selectedDate)\n\n    // Get Date Components\n    let day = date.dayName\n    let month = date.monthName\n    \n    let components = date.componentsOfDate\n    print(\"\\(components.year) / \\(components.month) / \\(components.day)\")\n}\n```\n\n## Storyboard\n1) Add `UIView` to storyboard, set custom class to `GDCalendar`\n2) Set attributes with `Attribute Inspector`\n\n\n## Licence\nGDCalendar is available under the MIT license. See the [LICENSE.txt](https://github.com/saeid/GDCalendar/blob/master/LICENSE) file for more info.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeid%2FGDCalendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaeid%2FGDCalendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaeid%2FGDCalendar/lists"}