{"id":2517,"url":"https://github.com/Aku-n06/ASCalendar","last_synced_at":"2025-08-03T00:31:52.553Z","repository":{"id":91574623,"uuid":"59951190","full_name":"Aku-n06/ASCalendar","owner":"Aku-n06","description":"A calendar control for iOS written in swift with mvvm pattern","archived":false,"fork":false,"pushed_at":"2016-08-19T11:58:42.000Z","size":337,"stargazers_count":193,"open_issues_count":7,"forks_count":14,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-05-29T04:52:04.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Aku-n06.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-05-29T15:50:11.000Z","updated_at":"2023-07-18T09:17:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"4fef1ed7-701e-42b1-bfd7-e7057bf278c3","html_url":"https://github.com/Aku-n06/ASCalendar","commit_stats":null,"previous_names":["scamps88/ascalendar"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aku-n06%2FASCalendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aku-n06%2FASCalendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aku-n06%2FASCalendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aku-n06%2FASCalendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aku-n06","download_url":"https://codeload.github.com/Aku-n06/ASCalendar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510718,"owners_count":17931755,"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":[],"created_at":"2024-01-05T20:16:15.732Z","updated_at":"2024-12-06T18:30:32.323Z","avatar_url":"https://github.com/Aku-n06.png","language":"Swift","funding_links":[],"categories":["UI"],"sub_categories":["Calendar"],"readme":"# ASCalendar\n![alt tag](https://github.com/scamps88/ASCalendar/blob/master/Documentations/header.png)\n\n[try it on appetize](https://appetize.io/app/tqm3jf79u3m0apxujq46gm2rgm?device=iphone6s\u0026scale=75\u0026orientation=portrait\u0026osVersion=9.3)\n\n## Installation\n\n#### CocoaPods\nYou can use [CocoaPods](http://cocoapods.org/) to install `ASCalendar` by adding it to your `Podfile`:\n\n```ruby\nplatform :ios, '8.0'\nuse_frameworks!\npod 'ASCalendar'\n```\n\nTo get the full benefits import `ASCalendar` wherever you import UIKit\n\n``` swift\nimport UIKit\nimport ASCalendar\n```\n\n#### Manually\n1. Download and drop ```/Example/Calendar``` folder in your project.  \n2. Congratulations!  \n    \n### implementation :\n- To show a calendar in your current window simply add:\n```swift\n    let calendar = ASCalendar()\n    calendar.showCalendarAsLayer()\n```\n- To check what day the user has selected use the ASCalendarDelegate (like in the example):\n```swift\n    calendar.delegate = self\n```\n```swift\n    func calendarSelect(day: Int, week: Int, month: Int, year: Int) {\n        NSLog(\"%d-%d-%d (%d)\", day, month, year, week)\n    }\n```\n-to close the calendar the user can tap outside it (like a popover) or you can manually close it calling:\n```swift\n    calendar.hideCalendar()\n```\n### settings :\n- By defaul ASCalendar is set to give a day selection but you can also switch to week mode (in any time):\n```swift\n    calendar.setSelectionStyle(.Week)\n```\n- As italian I'm used to start the week with monday, but you can set to display sunday as first day in this way:\n```swift\n    calendar.setSundayFirstWeekDay(true)\n    //or\n    calendar.setMondayFirstWeekDay(false)\n```\n- to set a specific month-year to show, you can use at any time:\n```swift\n    //month: 06, year: 2035\n    calendar.setcurrentPage(6, year: 2035)\n```\n- you can also set a specific interval in witch the user can select a day, disabling all the other days:\n```swift\n    //the range will start by day:15 month: 02, year: 2018\n    calendar.setFirstSelectableDate(15, month: 2, year: 2018)\n    //the upper limit of the selectable range will be day:20 month: 02, year: 2018\n    calendar.setLastSelectableDate(20, month: 2, year: 2018)\n```\n- than, of course, you can set a specific day/week manually in this way:\n```swift\n    //set day or week selected by day:13 month: 04, year: 2044\n    calendar.setSelectedDay(13, month: 04, year: 2044)\n```\n### customisations :\n- You can customize the colors, the fonts, and set specific selection sizes of this calendar. In general the customisations functions start by \"calendar.configure...\". You should customize the calendar before showing it.\n\n```swift\n  func configureHeader(backgroundColor: UIColor?, textColor: UIColor?, textFont : UIFont?, separationLineColor: UIColor?)\n  func configureBodyHeader(backgroundColor: UIColor?, textColor: UIColor?, textFont: UIFont?, separationLineColor: UIColor?)\n  func configureBody(backgroundColor: UIColor?, monthTextColor: UIColor?, monthTextFont: UIFont?, separationLineColor: UIColor?)\n  func configureDay(selectableTextColor: UIColor?, unselectableTextColor: UIColor?, selectedTextColor: UIColor?, TextFont: UIFont?)\n  func configureSelections(selectionColor: UIColor?, daySelectionSize: CGFloat?, weekSelectionHeight: CGFloat?)\n```\n\n- There are also 4 defaults theme you can easily set with :\n```swift\n  calendar.theme.defaults(index)\n```\n### licence :\n\nCopyright (c) 2016 Alberto Scampini\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAku-n06%2FASCalendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAku-n06%2FASCalendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAku-n06%2FASCalendar/lists"}