{"id":13995746,"url":"https://github.com/FluidGroup/StackScrollView","last_synced_at":"2025-07-22T22:32:10.562Z","repository":{"id":10734289,"uuid":"66780780","full_name":"FluidGroup/StackScrollView","owner":"FluidGroup","description":"📋 iOS Form UI Builder in Swift (powered by UICollectionView)","archived":false,"fork":false,"pushed_at":"2022-01-26T00:43:21.000Z","size":10981,"stargazers_count":422,"open_issues_count":2,"forks_count":31,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-10-29T15:51:13.648Z","etag":null,"topics":["form","uicollectionview","uistackview","uistackview-scrollable"],"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/FluidGroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["muukii"],"patreon":"muukii","ko_fi":"muukii"}},"created_at":"2016-08-28T17:16:40.000Z","updated_at":"2024-10-10T01:12:51.000Z","dependencies_parsed_at":"2022-08-07T06:00:27.157Z","dependency_job_id":null,"html_url":"https://github.com/FluidGroup/StackScrollView","commit_stats":null,"previous_names":["muukii/stackscrollview"],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluidGroup%2FStackScrollView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluidGroup%2FStackScrollView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluidGroup%2FStackScrollView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluidGroup%2FStackScrollView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FluidGroup","download_url":"https://codeload.github.com/FluidGroup/StackScrollView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227190335,"owners_count":17745245,"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":["form","uicollectionview","uistackview","uistackview-scrollable"],"created_at":"2024-08-09T14:03:34.249Z","updated_at":"2024-11-29T18:30:55.288Z","avatar_url":"https://github.com/FluidGroup.png","language":"Swift","funding_links":["https://github.com/sponsors/muukii","https://patreon.com/muukii","https://ko-fi.com/muukii"],"categories":["Swift"],"sub_categories":[],"readme":"# StackScrollView\n\n[![CI Status](http://img.shields.io/travis/muukii/StackScrollView.svg?style=flat)](https://travis-ci.org/muukii/StackScrollView)\n[![Version](https://img.shields.io/cocoapods/v/StackScrollView.svg?style=flat)](http://cocoapods.org/pods/StackScrollView)\n[![License](https://img.shields.io/cocoapods/l/StackScrollView.svg?style=flat)](http://cocoapods.org/pods/StackScrollView)\n[![Platform](https://img.shields.io/cocoapods/p/StackScrollView.svg?style=flat)](http://cocoapods.org/pods/StackScrollView)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n\u003cimg width=320 src=\"Resources/shot.png\"\u003e\u003cimg width=320 src=\"Resources/sample.gif\"\u003e\n\n⚠️ This sample is using demo-components.\nStackScrollView does not have default-components.\nStackScrollView is like UIStackView.\nSo, we need to create the components we need.\n\n## What is this?\n\nStackScrollView builds form UI easily.\n\nStackScrollView includes UICollectionView.\nUICollectionView calculates size of view by AutoLayout, then that display.\n(Use `systemLayoutSizeFitting`)\n\n- We call `StackCell` instead of `Cell` on StackScrollView.\n- We no longer need to consider reusing Cells.\n- `StackCell` requires constraint based layout.\n\n## Usage\n\n### Basic usage\n\n```swift\nlet stack = StackScrollView()\n\nstack.append(view: ...)\n\nstack.remove(view: ..., animated: true)\n```\n\n### APIs\n\n#### StackScrollView\n\n```swift\nfunc append(view: UIView)\nfunc remove(view: UIView, animated: Bool)\nfunc scroll(to view: UIView, at position: UICollectionViewScrollPosition, animated: Bool)\n```\n\n#### StackCellType\n\nStackScrollView does not required StackCellType.\nif `StackCell` has `StackCellType`, be easy that control StackCell.\n\n```swift\nfunc scrollToSelf(animated: Bool)\nfunc scrollToSelf(at position: UICollectionViewScrollPosition, animated: Bool)\nfunc updateLayout(animated: Bool)\nfunc remove()\n```\n\n*Demo has included this APIs usage.*\n\n### Create CustomCell from Code\n\n*We have to set constraints completely.*\n\n```swift\nfinal class LabelStackCell: UIView {\n  \n  private let label = UILabel()\n  \n  init(title: String) {\n    super.init(frame: .zero)\n    \n    addSubview(label)\n    label.translatesAutoresizingMaskIntoConstraints = false\n    \n    label.topAnchor.constraint(greaterThanOrEqualTo: topAnchor, constant: 8).isActive = true\n    label.bottomAnchor.constraint(lessThanOrEqualTo: bottomAnchor, constant: 8).isActive = true\n    label.rightAnchor.constraint(equalTo: rightAnchor, constant: 8).isActive = true\n    label.leftAnchor.constraint(equalTo: leftAnchor, constant: 8).isActive = true\n    label.centerYAnchor.constraint(equalTo: centerYAnchor).isActive = true\n    heightAnchor.constraint(greaterThanOrEqualToConstant: 40).isActive = true\n    \n    label.font = UIFont.preferredFont(forTextStyle: .body)\n    label.text = title\n  }\n}\n```\n\n```swift\nlet stack = StackScrollView()\nstack.append(view: LabelStackCell(title: \"Label\"))\n```\n\n### Create CustomCell from XIB\n\nWe can use UIView from XIB.\n\nThis framework has `NibLoader\u003cT: UIView\u003e`.\nIt might be useful for you.\n\n### Create everything\n\nYou can create any Cell.\nPlease, check `StackScrollView-Demo`\n\n### ManualLayout\n\nYou can create Cell with ManualLayout.\n\nIf you use ManualLayout, the Cell have to use `ManualLayoutStackCellType`.\nThen, return self-size based on maximum size in `size(maxWidth:maxHeight)`\n\n## Author\n\nmuukii, muukii.app@gmail.com\n\n## License\n\nStackScrollView is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFluidGroup%2FStackScrollView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFluidGroup%2FStackScrollView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFluidGroup%2FStackScrollView/lists"}