{"repo":"EvanCooper9/swift-week-view","free":true,"listed":false,"github":"https://github.com/EvanCooper9/swift-week-view","clone":"git clone https://github.com/EvanCooper9/swift-week-view.git","description":"An iOS calendar library for displaying calendar events in a week view.","language":"Swift","stars":215,"topics":["calendar-view","asynchronous","week-view","weekview","calendar","swift","ios","swiftui"],"license":null,"category":"mobile-apps","readme_excerpt":"ECWeekView See the swiftui branch for updates. An iOS calendar library for displaying calendar events in a week view. Features - See calendar events in a week view - Asynchronously load calendar events - Interaction with specific events by clicking - Interaction with free time spaces by clicking - Custom styling - Infinite horizontal scrolling Installation Swift Package Manager Usage 1. Implement the ECWeekViewDataSource Implement the weekViewGenerateEvents protocol function. This function should return a list of ECWeekViewEvent s specific to the day of date . Events that can be created immediately should be returned to this function. Events that require time to create should be passed to eventCompletion , which will overwrite previously returned events. See here for SwiftDate documentation on creating date objects at specific times. Currently, events rely on a 24-hour clock. Available arguments for ECWeekViewEvent - title : the title of the event - subtitle : a subtitle or description of the event - start : the start time of the event - end : the end time of the event 2. Initialize the instance 2A. Programmatically Create an instance of ECWeekView , specify it's data source, and add it as a subview. Available arguments for ECWeekView - frame : the frame of the calendar view - visibleDays : amount of days that are visible on one page. Default = 5 - date : (Optional) the day ECWeekView will initially load. Default = today 2B. Storyboard Add a view to the storyboard and set it'","default_branch":null,"files":null,"tree":[],"storefront":"/r/EvanCooper9","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/EvanCooper9/swift-week-view/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}