{"id":19732673,"url":"https://github.com/payalumraliya/horizontaltimeslayout","last_synced_at":"2025-09-20T03:03:28.580Z","repository":{"id":175332242,"uuid":"94565861","full_name":"PayalUmraliya/HorizontalTimesLayout","owner":"PayalUmraliya","description":"Layout to display time slots in horizontal 24 hour format","archived":false,"fork":false,"pushed_at":"2018-11-14T04:39:19.000Z","size":4772,"stargazers_count":32,"open_issues_count":2,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-20T03:02:34.293Z","etag":null,"topics":["24hour","calendar-events","calendar-view","calender","calenderevents","event","horizontal","horizontal-scrolling","horizontalcalendarlayout","horizontaltimeslayout","ios","iphone","layout","objective-c","payalumraliya","pucalender","slot","time","timeslot","xcode"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/PayalUmraliya.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-16T17:16:04.000Z","updated_at":"2023-05-02T16:09:27.000Z","dependencies_parsed_at":"2023-07-16T00:31:00.015Z","dependency_job_id":null,"html_url":"https://github.com/PayalUmraliya/HorizontalTimesLayout","commit_stats":null,"previous_names":["payalumraliya/horizontaltimeslayout"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PayalUmraliya/HorizontalTimesLayout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayalUmraliya%2FHorizontalTimesLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayalUmraliya%2FHorizontalTimesLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayalUmraliya%2FHorizontalTimesLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayalUmraliya%2FHorizontalTimesLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PayalUmraliya","download_url":"https://codeload.github.com/PayalUmraliya/HorizontalTimesLayout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PayalUmraliya%2FHorizontalTimesLayout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276038066,"owners_count":25574251,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["24hour","calendar-events","calendar-view","calender","calenderevents","event","horizontal","horizontal-scrolling","horizontalcalendarlayout","horizontaltimeslayout","ios","iphone","layout","objective-c","payalumraliya","pucalender","slot","time","timeslot","xcode"],"created_at":"2024-11-12T00:27:28.711Z","updated_at":"2025-09-20T03:03:28.535Z","avatar_url":"https://github.com/PayalUmraliya.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HorizontalTimesLayout\n\n\n[![License](http://img.shields.io/:license-mit-blue.svg)](https://github.com/PayalUmraliya/HorizontalTimesLayout/blob/master/LICENSE)\n\n#### SWIFT VERSION FOR THIS PROJECT - https://github.com/PayalUmraliya/HorizontalTimesLayout-Swift\n\nTO DISPLAY TIME SLOTS IN 24 HOUR FORMAT\n\nPROJECT CONTAINS IDEA TO DEVELOP A CALENDAR TYPE LAYOUT USING TABLEVIEW IN WHICH IF REQUIREMENTS ARE  TO SHOW TIME IN HORIZONTAL LAYOUT AND EVENTS IN VERTICAL LAYOUT.\n\n**PROJECT EXAMPLE SHOWING LIST OF RESOURCES USAGE IN 24 HOUR FORMAT.**\n\n###### Sample project output\n\n\u003cimg src=\"https://github.com/PayalUmraliya/HorizontalTimesLayout/blob/master/pucalender.gif\" width=\"320\" height=\"564\"/\u003e\n\n###### LICENSE\n\n[The MIT License](LICENSE)\n\n\n###### USAGE\n\n````\n-(void)prepareStatusDic\n{\n    NSArray *arr=[NSArray arrayWithObjects:@\"1:40\",@\"2:40\",@\"DJ-IL\",@\"1\",nil];\n    NSArray *arr1=[NSArray arrayWithObjects:@\"4:00\",@\"7:20\",@\"PJ-IL\", @\"2\",nil];\n    NSArray *arr2=[NSArray arrayWithObjects:@\"3:55\",@\"12:30\",@\"PR-IL\",@\"3\", nil];\n    NSArray *arr3=[NSArray arrayWithObjects:@\"17:10\",@\"23:00\",@\"PU-IL\",@\"4\", nil];\n    someDictionary = @{@\"0\" : arr,@\"2\" : arr1,@\"3\" : arr2,@\"4\" : arr3};\n}\n````\nAbove method will add event with different color in cell\n\n````\nNSArray *arr=[NSArray arrayWithObjects:@\"1:40\",@\"2:40\",@\"DJ-IL\",@\"1\",nil];\n````\n###### Array Element\n* 1 - start time\n* 2 - End time\n* 3 - Text to display on event\n* 4 - Color of event\n\n###### Dictionary Element\n\n````\nsomeDictionary = @{@\"0\" : arr,@\"2\" : arr1,@\"3\" : arr2,@\"4\" : arr3};\n````\n\n* Key - index of row at which you want to add event\n* value - event data\n\n###### This display event call this method in collection view cell for row at index path delegate method\n\n````\n[hsc setUpCellWithArray:[someDictionary objectForKey:[NSString stringWithFormat:@\"%ld\",(long)cv.tag]]];\n````\n\n````\n- (UICollectionViewCell *)collectionView:(UICollectionView *)cv cellForItemAtIndexPath:(NSIndexPath *)indexPath\n{\n        CellHorizontalScroll *hsc =[cv dequeueReusableCellWithReuseIdentifier:@\"CellHorizontalScroll\"\n                                                                                 forIndexPath:indexPath];\n        [hsc setBackgroundColor:[UIColor whiteColor]];\n        [hsc setUpCellWithArray:[someDictionary objectForKey:[NSString stringWithFormat:@\"%ld\",(long)cv.tag]]];\n        hsc.cellDelegate = self;\n        [hsc.scroll setFrame:CGRectMake(hsc.scroll.frame.origin.x, hsc.scroll.frame.origin.y, hsc.frame.size.width, 70 )];\n        hsc.scroll.contentOffset= CGPointMake(self.collEventTimeHeader.contentOffset.x,0.0);\n        return hsc;\n}\n\n````\n\n###### To manage event click event use below custom delegate method of calender cell\n````\n-(void)callSelected:(id)sender\n{\n  //Handle click event\n}\n\n````\n\n###### To customize UI for event use below method\n\n````\n-(UIView *)createCustomView:(NSArray *)array\n{\n}\n````\n\n:)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpayalumraliya%2Fhorizontaltimeslayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpayalumraliya%2Fhorizontaltimeslayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpayalumraliya%2Fhorizontaltimeslayout/lists"}