{"id":13463462,"url":"https://github.com/ra1028/RACollectionViewReorderableTripletLayout","last_synced_at":"2025-03-25T06:32:08.276Z","repository":{"id":17544573,"uuid":"20347338","full_name":"ra1028/RACollectionViewReorderableTripletLayout","owner":"ra1028","description":"The custom collectionView layout that can perform reordering of cells by dragging it.","archived":false,"fork":false,"pushed_at":"2015-07-07T21:23:38.000Z","size":10985,"stargazers_count":1481,"open_issues_count":11,"forks_count":192,"subscribers_count":50,"default_branch":"master","last_synced_at":"2024-10-15T02:41:15.228Z","etag":null,"topics":[],"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/ra1028.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":"2014-05-31T02:06:16.000Z","updated_at":"2024-10-12T14:29:32.000Z","dependencies_parsed_at":"2022-09-08T11:20:15.709Z","dependency_job_id":null,"html_url":"https://github.com/ra1028/RACollectionViewReorderableTripletLayout","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ra1028%2FRACollectionViewReorderableTripletLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ra1028%2FRACollectionViewReorderableTripletLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ra1028%2FRACollectionViewReorderableTripletLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ra1028%2FRACollectionViewReorderableTripletLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ra1028","download_url":"https://codeload.github.com/ra1028/RACollectionViewReorderableTripletLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222045612,"owners_count":16921982,"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-07-31T13:00:53.893Z","updated_at":"2024-10-29T12:31:25.730Z","avatar_url":"https://github.com/ra1028.png","language":"Objective-C","readme":"RACollectionViewReorderableTripletLayout\n=======================\n\n#### The custom collectionView layout that can perform reordering of cells by dragging it.\n\n### \u003cspan style=\"color:red;\"\u003eI created a new awesome UICollectionView reorderable layout !\u003c/span\u003e\n#### \u003cspan style=\"color:red;\"\u003e[Check it out !!](https://github.com/ra1028/RAReorderableLayout)\u003c/span\u003e\n\n## Features\n- Reorder cells by long pressing and dragging it !\n- You can Receive notification to some dragging events.\n- Sorry, has not supported horizontal scroll collection view.\n- ~~Sections two or more are also not supported...~~   __Supported !__\n\n#### Please, send me pull request !\n\n\n## Screen shots\n![screen shot1](https://github.com/ra1028/RACollectionViewReorderableTripletLayout/raw/master/Assets/screenshot1.png)\n![screen shot2](https://github.com/ra1028/RACollectionViewReorderableTripletLayout/raw/master/Assets/screenshot2.png)\n\n\n## Animation\n![animated gif](https://github.com/ra1028/RACollectionViewReorderableTripletLayout/raw/master/Assets/animation.gif)\n\n\n## Installation\n\nRACollectionViewReorderableTripletLayout is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n    pod \"RACollectionViewReorderableTripletLayout\"\n\n\n## Usage\nAdd RACollectionViewReorderableTripletLayout to your collection view, then set delegate and datasource.\n```Objective-C\nself.collectionView.delegate = self;\nself.collectionView.dataSource = self;\n```\n\n\n## Delegates and Datasource\n#### TripletLayout\n```Objective-C\n- (CGSize)collectionView:(UICollectionView *)collectionView sizeForLargeItemsInSection:(NSInteger)section; //Default to automaticaly grow square !\n- (UIEdgeInsets)insetsForCollectionView:(UICollectionView *)collectionView;\n- (CGFloat)sectionSpacingForCollectionView:(UICollectionView *)collectionView;\n- (CGFloat)minimumInteritemSpacingForCollectionView:(UICollectionView *)collectionView;\n- (CGFloat)minimumLineSpacingForCollectionView:(UICollectionView *)collectionView;\n```\n#### ReorderableTripletLayout\n```Objective-C\n- (void)collectionView:(UICollectionView *)collectionView itemAtIndexPath:(NSIndexPath *)fromIndexPath willMoveToIndexPath:(NSIndexPath *)toIndexPath;\n- (void)collectionView:(UICollectionView *)collectionView itemAtIndexPath:(NSIndexPath *)fromIndexPath didMoveToIndexPath:(NSIndexPath *)toIndexPath;\n\n- (BOOL)collectionView:(UICollectionView *)collectionView canMoveItemAtIndexPath:(NSIndexPath *)indexPath;\n- (BOOL)collectionView:(UICollectionView *)collectionView itemAtIndexPath:(NSIndexPath *)fromIndexPath canMoveToIndexPath:(NSIndexPath *)toIndexPath;\n```\n\n```Objective-c\n- (CGFloat)reorderingItemAlpha:(UICollectionView * )collectionview; //Default 0.\n- (UIEdgeInsets)autoScrollTrigerEdgeInsets:(UICollectionView *)collectionView; //Sorry, has not supported horizontal scroll.\n- (UIEdgeInsets)autoScrollTrigerPadding:(UICollectionView *)collectionView;\n\n- (void)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout willBeginDraggingItemAtIndexPath:(NSIndexPath *)indexPath;\n- (void)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout didBeginDraggingItemAtIndexPath:(NSIndexPath *)indexPath;\n- (void)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout willEndDraggingItemAtIndexPath:(NSIndexPath *)indexPath;\n- (void)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout didEndDraggingItemAtIndexPath:(NSIndexPath *)indexPath;\n```\n\n\n## License\nRACollectionViewReorderableTripletLayout is available under the MIT license. See the LICENSE file for more info.\n\n","funding_links":[],"categories":["Objective-C","Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fra1028%2FRACollectionViewReorderableTripletLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fra1028%2FRACollectionViewReorderableTripletLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fra1028%2FRACollectionViewReorderableTripletLayout/lists"}