{"id":2308,"url":"https://github.com/CezaryKopacz/CKWaveCollectionViewTransition","last_synced_at":"2025-08-02T23:32:57.312Z","repository":{"id":35526469,"uuid":"39797193","full_name":"CezaryKopacz/CKWaveCollectionViewTransition","owner":"CezaryKopacz","description":"Cool wave like transition between two or more UICollectionView","archived":false,"fork":false,"pushed_at":"2019-10-13T12:54:07.000Z","size":809,"stargazers_count":1860,"open_issues_count":1,"forks_count":134,"subscribers_count":37,"default_branch":"master","last_synced_at":"2024-10-29T17:50:03.981Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CezaryKopacz.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":"2015-07-27T20:50:07.000Z","updated_at":"2024-10-04T07:00:37.000Z","dependencies_parsed_at":"2022-08-28T18:34:16.983Z","dependency_job_id":null,"html_url":"https://github.com/CezaryKopacz/CKWaveCollectionViewTransition","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CezaryKopacz%2FCKWaveCollectionViewTransition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CezaryKopacz%2FCKWaveCollectionViewTransition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CezaryKopacz%2FCKWaveCollectionViewTransition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CezaryKopacz%2FCKWaveCollectionViewTransition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CezaryKopacz","download_url":"https://codeload.github.com/CezaryKopacz/CKWaveCollectionViewTransition/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503176,"owners_count":17930527,"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:10.465Z","updated_at":"2024-12-06T17:30:59.032Z","avatar_url":"https://github.com/CezaryKopacz.png","language":"Swift","funding_links":[],"categories":["UI","Swift","Animation","Content"],"sub_categories":["Animation","Other free courses","Transition"],"readme":"# CKWaveCollectionViewTransition\n\nThis is a cool custom transition between two or more UICollectionViewControllers with wave-like cell animation.\nCould be used in e.g. galleries.\n\n![anim.gif](https://raw.githubusercontent.com/CezaryKopacz/CKWaveCollectionViewTransition/master/anim.gif)\n\nAnimation idea was taken from [Łukasz Frankiewicz](http://twitter.com/almetien) [Dribble project](https://dribbble.com/shots/2044312-Bits-and-pixels-Tide-Transition)\n\n## Installation\n\nThere are two options:\n\n* Via CocoaPods.\n* Manually add the files into your Xcode project. Slightly simpler, but updates are also manual.\n\n## Usage\n\n* In storyboard add an object in your NavigationController.\n\n![object.jpg](https://raw.githubusercontent.com/CezaryKopacz/CKWaveCollectionViewTransition/master/usage1.jpg)\n\n* Set it's class to NavigationControllerDelegate\n\n![objectCustomClass.jpg](https://raw.githubusercontent.com/CezaryKopacz/CKWaveCollectionViewTransition/master/usage2.jpg)\n\n* Set NavigationController delegate to this object.\n\n![navigationControllerDelegateObject.jpg](https://raw.githubusercontent.com/CezaryKopacz/CKWaveCollectionViewTransition/master/usage3.jpg)\n\nor \n\nImplement UINavigationControllerDelegate in your ViewController:\n\n\n```swift\nfunc navigationController(navigationController: UINavigationController, animationControllerForOperation operation: UINavigationControllerOperation,\n        fromViewController fromVC: UIViewController, toViewController toVC: UIViewController) -\u003e UIViewControllerAnimatedTransitioning? {\n            let animator = CKWaveCollectionViewAnimator()\n            if operation != UINavigationControllerOperation.Push {\n                animator.reversed = true\n            }\n\n            return animator\n    }\n```\n\n * The last thing you have to set is **selectedIndexPath** property in your didSelectItemAtIndexPath method implementation.\n\n\n```swift\noverride func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {\n        selectedIndexPath = indexPath\n}\n```\n\n\n## Properties\n\n\n```swift\ninternal let animationDuration: Double! = 1.0\n```\n\nTotal animation duration.\n   \n```swift\ninternal let kCellAnimSmallDelta: Double! = 0.01\ninternal let kCellAnimBigDelta: Double! = 0.03\n```\n \nProperties you can change to adjust animation.\n\n\n## Requirements\n\n* iOS 7.0+\n\n## License\n\nReleased under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCezaryKopacz%2FCKWaveCollectionViewTransition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCezaryKopacz%2FCKWaveCollectionViewTransition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCezaryKopacz%2FCKWaveCollectionViewTransition/lists"}