{"id":2525,"url":"https://github.com/amantaneja/PTEventView","last_synced_at":"2025-08-03T00:31:56.183Z","repository":{"id":62450279,"uuid":"100854709","full_name":"amantaneja/PTEventView","owner":"amantaneja","description":"An Event View based on Apple's Event Detail View. Written in Swift 3. Supports ARC, Autolayout and editing via StoryBoard.","archived":false,"fork":false,"pushed_at":"2020-05-07T06:57:14.000Z","size":513,"stargazers_count":35,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-24T01:41:37.717Z","etag":null,"topics":["apple-event","autolayout","calandar","calendar","calendar-component","calendar-events","calendar-view","calendar-widget","calendars","calendarview","calender","cocoa-touch","cocoapod","cocoapods","eventview","ibdesignable","pteventview","storyboard","swift","swift3"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/amantaneja.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-08-20T10:42:39.000Z","updated_at":"2024-06-06T23:50:12.000Z","dependencies_parsed_at":"2022-11-01T23:33:07.626Z","dependency_job_id":null,"html_url":"https://github.com/amantaneja/PTEventView","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amantaneja%2FPTEventView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amantaneja%2FPTEventView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amantaneja%2FPTEventView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amantaneja%2FPTEventView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amantaneja","download_url":"https://codeload.github.com/amantaneja/PTEventView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510719,"owners_count":17931756,"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":["apple-event","autolayout","calandar","calendar","calendar-component","calendar-events","calendar-view","calendar-widget","calendars","calendarview","calender","cocoa-touch","cocoapod","cocoapods","eventview","ibdesignable","pteventview","storyboard","swift","swift3"],"created_at":"2024-01-05T20:16:15.918Z","updated_at":"2024-12-06T18:30:33.388Z","avatar_url":"https://github.com/amantaneja.png","language":"Ruby","funding_links":[],"categories":["UI"],"sub_categories":["Calendar","Other free courses"],"readme":"\n\u003ccenter\u003e\u003cimg src=\"https://github.com/amantaneja/PTEventView/blob/master/Images/PTEventViewTitle.png\"\u003e\u003c/center\u003e\u003cbr\u003e\nAn Event View based on Apple's Event Detail View. Written in Swift 3. Supports ARC, Autolayout and editing via StoryBoard.\n\n![License](https://img.shields.io/badge/License-MIT-lightgrey.svg)\n![Platform](https://img.shields.io/badge/Platforms-iOS-red.svg)\n![Swift 3.x](https://img.shields.io/badge/Swift-3.x-blue.svg)\n![MadeWithLove](https://img.shields.io/badge/Made%20with%20%E2%9D%A4-India-green.svg)\n\n\u003cimg src=\"https://github.com/amantaneja/PTEventView/blob/master/Images/PTEventViewDemo.gif\" \u003e\n\n# Installation\n### CocoaPods\n**PTEventView** is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n```swift\npod 'PTEventView'\n```\n\n### Manual\nYou can drag and drop the Files from [here](https://github.com/amantaneja/PTEventView/tree/master/Demo/PTEventViewDemo/PTEventView) into your projects directly. \n\n# Setup\n### Adding PTEventView\n\n```swift\nfileprivate weak var myCalenderView: PTEventView!\n```\n```swift\n// In loadView or viewDidLoad\nlet ptEventView = Bundle.main.loadNibNamed(\"PTEventView\", owner: nil, options: nil)![0] as? PTEventView\nptEventView?.delegate = self\nptEventView?.setup(frame: myCalenderView.frame)\nself.view.addSubview(ptEventView!)\n```\n\n### Data Model\nPTEventView supports both 12 hour and 24 hour format as data model. The input can be received from the API or Database(Core Data, Realm, SQLite) in the form of Array of `Event Object`.\u003cbr\u003e\nThe Event Object should have:\n- Start Time (12 hour or 24 hour)\n- End Time (12 hour or 24 hour)\n- Name of the Event \u003cbr\u003e\n**Note**: Incase of 12 hour, suffix time with AM or PM.\u003cbr\u003e\n\n**Example** \n```swift\nlet dataModel12hour = [[\"10AM\",\"11AM\",\"Swift Meetup '17\"],[\"12AM\",\"3PM\",\"WWDC KickOff\"]]\nlet dataModel24hour = [[\"10\",\"11\",\"Swift Meetup '17\"],[\"12\",\"15\",\"WWDC KickOff\"]]\n```\nUse Bool to switch between Time Formats\n```swift  \nptEventView?.is24HourFormat = true\n```\n```swift\nfor event in dataModel12hour{\n            \n    let eventModel = PTEventViewModel()\n    \n    eventModel.startTime = event[0]\n    eventModel.endTime = event[1]\n    eventModel.eventName = event[2]\n    \n    ptEventView?.EventViewdataModel.append(eventModel)\n}\n```\n\n\n# StoryBoard\nSupports IBDesignable to alter `Border Width`, `Corner Radius` and `Border Color`\n\u003cimg src=\"https://github.com/amantaneja/PTEventView/blob/master/Images/IBDesignable.png\" height=\"220\" width=\"370\"\u003e\n\n### Customization\nYou can customize the view parameters for designing your own view:\n\n`borderColor` **- Border Color** *Default is Black*\n\n`borderWidth` **- Border Width** *Default is 1.0*\n\n`cornerRadius` **- Corner Radius** *Default is 6.0*\n\n`eventColor` **- Event Color** *Default is as given in Demo Gif*\n\n`eventTextColor` **- Event Text Color** *Default is white. Try to make it contrasting with eventColor*\n\n# ToDo[s]\n- [x] Add support for PM and AM via 24 hour format\n- [ ] Orientation Support. Currently supports UI for Portrait.\n- [x] Add delegation for callbacks\n- [ ] Implement AutoLayout for CalenderView\n- [ ] Support Events on the same day\n- [ ] Add IBInspectable for Row Color of Event\n\n## Requirement\n- iOS 8.0+ (CocoaPods with Swift support will only work on iOS 8.0+. Alternatively, you will have to import library manually to your project)\n- Xcode 8.0+, Swift 3.0+\n\n## License\n\nPTEventView is released under the MIT license. See [LICENSE](https://github.com/amantaneja/PTEventView/blob/master/LICENSE) for details.\n\n\n[**★Star**](#) this repo. \n\nhttp://culturestreet.com/depot/620--auto--uploads-2013-12-Daily-quotes-5-December.jpg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famantaneja%2FPTEventView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famantaneja%2FPTEventView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famantaneja%2FPTEventView/lists"}