{"id":32148898,"url":"https://github.com/aimalygin/stablecollectionviewlayout","last_synced_at":"2026-02-19T07:01:38.600Z","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":71,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-18T09:23:03.721Z","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":"2025-07-22T18:04:08.000Z","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,"purl":"pkg:github/aimalygin/StableCollectionViewLayout","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","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimalygin%2FStableCollectionViewLayout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29605799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["carthage","cocoapods","contentoffset","ios","spm","swift","uicollectionview","uicollectionviewlayout","uikit"],"created_at":"2025-10-21T09:21:43.403Z","updated_at":"2026-02-19T07:01:38.594Z","avatar_url":"https://github.com/aimalygin.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"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"}