{"id":2889,"url":"https://github.com/aimalygin/StableCollectionViewLayout","last_synced_at":"2025-08-03T12:31:32.396Z","repository":{"id":40241825,"uuid":"355528108","full_name":"aimalygin/StableCollectionViewLayout","owner":"aimalygin","description":"UICollectionViewLayout adjusts a content offset if the collection view is updated","archived":false,"fork":false,"pushed_at":"2023-11-29T06:06:52.000Z","size":4211,"stargazers_count":63,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-24T18:58:02.893Z","etag":null,"topics":["carthage","cocoapods","contentoffset","ios","spm","swift","uicollectionview","uicollectionviewlayout","uikit"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/aimalygin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-04-07T11:59:22.000Z","updated_at":"2024-04-24T18:58:02.894Z","dependencies_parsed_at":"2024-01-28T08:18:59.761Z","dependency_job_id":null,"html_url":"https://github.com/aimalygin/StableCollectionViewLayout","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/aimalygin%2FStableCollectionViewLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimalygin%2FStableCollectionViewLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimalygin%2FStableCollectionViewLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimalygin%2FStableCollectionViewLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimalygin","download_url":"https://codeload.github.com/aimalygin/StableCollectionViewLayout/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228543179,"owners_count":17934439,"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":["carthage","cocoapods","contentoffset","ios","spm","swift","uicollectionview","uicollectionviewlayout","uikit"],"created_at":"2024-01-05T20:16:25.532Z","updated_at":"2024-12-07T00:31:03.953Z","avatar_url":"https://github.com/aimalygin.png","language":"Swift","funding_links":[],"categories":["UI"],"sub_categories":["Table View / Collection View"],"readme":"\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://app.bitrise.io/app/7728e287cc146a7f\"\u003e\n        \u003cimg src=\"https://app.bitrise.io/app/7728e287cc146a7f/status.svg?token=hud0QzPtQQzeKyywD1RyCA\u0026branch=main\"\n             alt=\"Build Status\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/aimalygin/StableCollectionViewLayout\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/cocoapods-latest-green\"\n             alt=\"Pods Version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/aimalygin/StableCollectionViewLayout\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/platform-ios-lightgrey\"\n             alt=\"Platforms\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/aimalygin/StableCollectionViewLayout\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/spm-compatible-green\"\n             alt=\"SPM Compatible\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n----------------\n\n# StableCollectionViewLayout\n\nThis layout adjusts a content offset if the collection view is updated. You can insert, delete or reload items and `StableCollectionViewLayout` will take care of the content offset.\n\nLike this\n\n![stable](https://raw.githubusercontent.com/aimalygin/InfiniteCollectionViewFlowLayout/main/stable.gif)\n\n## Demo\n\n![Demo](https://raw.githubusercontent.com/aimalygin/InfiniteCollectionViewFlowLayout/main/demo.gif)\n\n## Usage\n\nYou should just create and pass `StableCollectionViewFlowLayout` to `UICollectionView` init\n```swift\nimport StableCollectionViewLayout\n\nUICollectionView(frame: .zero, collectionViewLayout: StableCollectionViewFlowLayout())\n```\nAlso, you can create the own subclass of `StableCollectionViewLayout` and use it.\n\n## Installation\n\n### CocoaPods\n\nThe preferred installation method is with [CocoaPods](https://cocoapods.org). Add the following to your `Podfile`:\n\n```ruby\npod 'StableCollectionViewLayout', '~\u003e 1.0.2'\n```\n\n### Carthage\n\nFor [Carthage](https://github.com/Carthage/Carthage), add the following to your `Cartfile`:\n\n```ogdl\ngithub \"aimalygin/StableCollectionViewLayout\" ~\u003e 1.0.2\n```\n\n### Swift Package Manager\n\nFor [Swift Package Manager](https://swift.org/package-manager/):\n\n```\nTo integrate using Xcode:\n\nFile -\u003e Swift Packages -\u003e Add Package Dependency\n\nEnter package URL: https://github.com/aimalygin/StableCollectionViewLayout, and select the latest release.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimalygin%2FStableCollectionViewLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimalygin%2FStableCollectionViewLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimalygin%2FStableCollectionViewLayout/lists"}