{"id":2532,"url":"https://github.com/tispr/tispr-card-stack","last_synced_at":"2025-08-03T00:31:55.290Z","repository":{"id":1077856,"uuid":"39101285","full_name":"tispr/tispr-card-stack","owner":"tispr","description":"Swipe able, customizable card stack view, Tinder like card stack view based on UICollectionView. Cards UI","archived":false,"fork":false,"pushed_at":"2022-01-28T10:34:37.000Z","size":7454,"stargazers_count":850,"open_issues_count":8,"forks_count":76,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-04-24T14:49:17.768Z","etag":null,"topics":["indy"],"latest_commit_sha":null,"homepage":"https://weareindy.com","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/tispr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-14T21:29:26.000Z","updated_at":"2024-04-13T02:53:32.000Z","dependencies_parsed_at":"2022-11-28T10:33:47.099Z","dependency_job_id":null,"html_url":"https://github.com/tispr/tispr-card-stack","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tispr%2Ftispr-card-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tispr%2Ftispr-card-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tispr%2Ftispr-card-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tispr%2Ftispr-card-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tispr","download_url":"https://codeload.github.com/tispr/tispr-card-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510719,"owners_count":17931756,"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":["indy"],"created_at":"2024-01-05T20:16:16.104Z","updated_at":"2024-12-06T18:30:33.112Z","avatar_url":"https://github.com/tispr.png","language":"Swift","funding_links":[],"categories":["UI","Cards","Swift","Content"],"sub_categories":["Cards","Other free courses"],"readme":"Swipable, customizable card stack view, Tinder like card stack view based on UICollectionView. Cards UI\n\n\u003cimg src=\"./Screenshot_main.gif\" width=\"400\" alt=\"Swipable, customizable card stack view, Tinder like card stack view based on UICollectionView\" /\u003e\n\n\nСocoapods installation\n------------------\n\nAdd in your `Podfile`:\u003cbr/\u003e\n```\npod 'TisprCardStack'\n```\n\nplease pay attention:\n- 2.x.x versions with swift 4.0\n- 1.x.x  versions with swift 3.0 \n\n\nAnd in your `*.swift`:\n```swift\nimport TisprCardStack\n```\n\n\nManual installation\n------------------\n\nAdd `TisprCardStackViewCell.swift`,`TisprCardStackViewController.swift`, `TisprCardStackViewLayout.swift` into your Xcode project.\n\n\nUsage start\n-----\n1. Create controller 'TisprCardStackViewController' with 'TisprCardStackViewLayout' collectionViewLayout\n\n2. Configuration TisprCardStackViewController,\n\n  ```swift\n        setAnimationSpeed(0.85)\n        setCardSize(size)\n  ```\n\n3. then specify count of cards,\n  ```swift\n  func numberOfCards() -\u003e Int {}\n  ```\n\t\n4. return cards by index:\n  ```swift\n  card(collectionView: UICollectionView, cardForItemAtIndexPath indexPath: NSIndexPath) -\u003e TisprCardStackViewCell {}\n  ```\n\nAdditional features/options\n-----\t\n1. Adding a new card: How to call the animation:\n\n  ```swift\nfunc newCardWasAdded()\n  ```\n\n1. How to configure the amount of visible cards in each stack (top and bottom):\n  ```swift\n        layout.topStackMaximumSize = 4\n        layout.bottomStackMaximumSize = 30\n        layout.bottomStackCardHeight = 45\n  ```\n\n1. Changing card position: How to call the movement of a card from the top to the bottom stack and vice versa:\n  ```swift\n        moveCardUp()\n        moveCardDown()\n  ```\n1. Delete card:\n  ```swift\n\t\tdeleteCard\n  ```\n1. You can track changing of card stack in method:\n  ```swift\n\tfunc cardDidChangeState(cardIndex: Int)\n   ```\n\n\nFor more detail, see the sample project.\n\nContact owner\n-------\n\n[Indy](https://weareindy.com)\n\nLicense\n-------\nApache License\n                           Version 2.0. See LICENSE.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftispr%2Ftispr-card-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftispr%2Ftispr-card-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftispr%2Ftispr-card-stack/lists"}