{"id":23261519,"url":"https://github.com/theinkedengineer/toosieslide","last_synced_at":"2025-08-20T18:31:18.967Z","repository":{"id":56924395,"uuid":"253297643","full_name":"TheInkedEngineer/ToosieSlide","owner":"TheInkedEngineer","description":"`ToosieSlide` is simple `Swift` library to generate a carousel like effect.","archived":false,"fork":false,"pushed_at":"2020-05-11T08:04:17.000Z","size":785,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-18T00:29:35.521Z","etag":null,"topics":["carousel","center","collectionviewflowlayout","collectionviewlayout","ios","swift","uicollectionview","uicollectionviewflowlayout"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheInkedEngineer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-04-05T17:55:56.000Z","updated_at":"2023-07-12T11:22:53.000Z","dependencies_parsed_at":"2022-08-20T22:50:25.156Z","dependency_job_id":null,"html_url":"https://github.com/TheInkedEngineer/ToosieSlide","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheInkedEngineer%2FToosieSlide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheInkedEngineer%2FToosieSlide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheInkedEngineer%2FToosieSlide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheInkedEngineer%2FToosieSlide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheInkedEngineer","download_url":"https://codeload.github.com/TheInkedEngineer/ToosieSlide/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230441613,"owners_count":18226406,"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":["carousel","center","collectionviewflowlayout","collectionviewlayout","ios","swift","uicollectionview","uicollectionviewflowlayout"],"created_at":"2024-12-19T13:33:13.812Z","updated_at":"2024-12-19T13:33:14.442Z","avatar_url":"https://github.com/TheInkedEngineer.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"ToosieSlideLogo.png\" alt=\"Toosie Slide Logo\" width=\"400\"\u003e\n\u003c/p\u003e\n\n![Documentation](https://theinkedengineer.github.io/ToosieSlide/docs/1.1.x/badge.svg)\n[![Twitter](https://img.shields.io/twitter/url/https/theinkedgineer.svg?label=TheInkedgineer\u0026style=social)](https://twitter.com/theinkedgineer)\n# ToosieSlide\n\n`ToosieSlide` is a library that offers a custom flow layout that simulates a paginated collection view, with the cell always staying in the middle. In other words, a carousel.\nIn addtion `ToosieSlide` supports automatic cell resizing and alpha difference between focused and unfocused cells.\n\n `ToosieSlide` is fully documented [**here**](https://theinkedengineer.github.io/ToosieSlide/docs/1.1.x/index.html)\n \n Unless you have been living under a rock or born in 2030, `ToosieSlide` gets its name and its logo is inspired by `Drake`'s [**Toosie Slide**](https://www.youtube.com/watch?v=xWggTb45brM)\n \n Here is what it looks like:\n \n \u003cimg src=\"ToosieSlideDemo.gif\" alt=\"Toosie Slide Demo\" height=\"300\"\u003e\n\n## 1. Requirements and Compatibility\n\n- iOS 10+\n- XCode 11\n- Swift 5.1+\n\n## 2. Installation\n\n### Cocoapods\n\nAdd the following line to your `Podfile`\n\n` pod 'ToosieSlide', '~\u003e 1.1'`\n\n### Swift Package Manager\n\nAdd the following to you `Package.swift`\n\n```\ndependencies: [\n    .package(url: \"https://github.com/TheInkedEngineer/ToosieSlide.git\", .upToNextMajor(from: \"1.1.1\"))\n]\n```\n## 3. Code Example\n\n### Using `UICollectionViewCarouselLayout`\n\n```swift\nlazy var collection: UICollectionView = {\n  let carouselFlow = UICollectionViewCarouselLayout()\n  carouselFlow.itemSize = CGSize(width: DemoCell.width, height: DemoCell.height)\n  carouselFlow.minimumLineSpacing = 10\n  let collection = UICollectionView(collectionViewCarouselLayout: carouselFlow)\n  collection.register(DemoCell.self, forCellWithReuseIdentifier: DemoCell.identifier)\n  return collection\n}()\n```\n\n### Customizing `UICollectionViewCarouselLayout`\n\n```swift\nlet carouselFlow = UICollectionViewCarouselLayout()\ncarouselfFlow.lowestVelocitySensitivity = 0.3\ncarouselfFlow.focusedItemScaleFactor = 1\ncarouselfFlow.focusedItemAlphaValue = 1\ncarouselfFlow.nonFocusedItemsScaleFactor = 0.5\ncarouselfFlow.nonFocusedItemsAlphaValue = 0.7\n```\n\n\n## 4. Roadmap\n\n- support continuous swiping\n\n## 5. Contribution\n\n**Working on your first Pull Request?** You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github)\n\n## Generate the project\n\nTo generate this project locally, you need [xcodegen](https://github.com/yonaskolb/XcodeGen). It is a great tool to customize a project and generate it on the go.\n\nYou can either install it manually following their steps, or just run my `setup.sh` script. It automatically installs [Homebrew](https://brew.sh) if it is missing, installs `xcodegen`, removes existing (if present) `.xcodeproj`, run `xcodegen` and moves configuratiom files to their appropriate place.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheinkedengineer%2Ftoosieslide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheinkedengineer%2Ftoosieslide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheinkedengineer%2Ftoosieslide/lists"}