{"id":32149344,"url":"https://github.com/notsobigcompany/cardstack","last_synced_at":"2025-10-21T09:54:38.316Z","repository":{"id":152573107,"uuid":"498447706","full_name":"notsobigcompany/CardStack","owner":"notsobigcompany","description":"A SwiftUI view that arranges its children in a whimsical interactive deck of cards, as seen in Big News","archived":false,"fork":false,"pushed_at":"2023-10-05T09:48:36.000Z","size":1059,"stargazers_count":214,"open_issues_count":0,"forks_count":12,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-21T09:54:28.968Z","etag":null,"topics":["cards","cardstack","swift","swiftui","ui","ui-components"],"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/notsobigcompany.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-05-31T18:13:16.000Z","updated_at":"2025-10-12T08:38:09.000Z","dependencies_parsed_at":"2023-10-03T14:23:22.543Z","dependency_job_id":null,"html_url":"https://github.com/notsobigcompany/CardStack","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/notsobigcompany/CardStack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notsobigcompany%2FCardStack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notsobigcompany%2FCardStack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notsobigcompany%2FCardStack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notsobigcompany%2FCardStack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notsobigcompany","download_url":"https://codeload.github.com/notsobigcompany/CardStack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notsobigcompany%2FCardStack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280240308,"owners_count":26296527,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cards","cardstack","swift","swiftui","ui","ui-components"],"created_at":"2025-10-21T09:54:37.344Z","updated_at":"2025-10-21T09:54:38.309Z","avatar_url":"https://github.com/notsobigcompany.png","language":"Swift","readme":"\u003e [!WARNING]  \n\u003e This package is now deprecated in favour of  [CardDeckPageViewStyle](https://opensource.notsobig.company/documentation/bigswiftui/carddeckpageviewstyle/) found in the new [BigUIPaging](https://github.com/notsobigcompany/BigUIPaging) package.\n\n# CardStack\n\nA SwiftUI view that arranges its children in a whimsical interactive deck of cards.\n\n![Card stack](Preview.gif)\n\nCardStack mimics the behaviour of the photo stack in iMessage, as well as the \"Top Stories\" in [Big News](https://bignews.app).\n\n## Overview\nYou create stacks dynamically from an underlying collection of data. Each item in the collection must conform to `Identifiable`. \n\n```swift\nCardStack(items) { item in\n    RoundedRectangle(cornerRadius: 20, style: .continuous)\n        .fill(item.color)\n        .frame(height: 400)\n}\n```\n\n## Supporting selections in stacks \nTo make members of a stack selectable, install a tap gesture inside the view provider.\n\n```swift\nCardStack(items) { item in\n    RoundedRectangle(cornerRadius: 20, style: .continuous)\n        .onTapGesture {\n            // do something\n        }\n}\n```\n\nTo get a stack's topmost card index, provide a binding to the `currentIndex` initialiser.\n\n```swift\n@State private var currentIndex = 0\n\nCardStack(items, currentIndex: $currentIndex) { item in\n    ...\n}\n```\n\n## Installation\nAdd CardStack to your app's Package.swift file:\n\n```swift\n.package(url: \"https://github.com/notsobigcompany/CardStack\")\n```\n\nAlternatively, add it in Xcode by going to File -\u003e Add Packages. \n\nA SwiftUI preview is available in the CardStack file itself.\n\n## License\nCopyright 2022 NOT SO BIG TECH LIMITED\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotsobigcompany%2Fcardstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotsobigcompany%2Fcardstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotsobigcompany%2Fcardstack/lists"}