{"id":28550316,"url":"https://github.com/seek-oss/seek-stackable","last_synced_at":"2025-08-24T11:13:08.621Z","repository":{"id":54295055,"uuid":"66796341","full_name":"seek-oss/seek-stackable","owner":"seek-oss","description":"iOS framework for laying out nested views vertically and horizontally.","archived":false,"fork":false,"pushed_at":"2025-05-30T05:22:43.000Z","size":100,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-06-26T09:04:16.955Z","etag":null,"topics":["ios","swift","uitableview","uitableviewcell"],"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/seek-oss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-08-28T23:39:16.000Z","updated_at":"2025-05-30T05:14:38.000Z","dependencies_parsed_at":"2024-01-09T12:25:14.413Z","dependency_job_id":"9e18c72b-0ea2-4bad-bdaa-4922560b8fc0","html_url":"https://github.com/seek-oss/seek-stackable","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/seek-oss/seek-stackable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seek-oss%2Fseek-stackable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seek-oss%2Fseek-stackable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seek-oss%2Fseek-stackable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seek-oss%2Fseek-stackable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seek-oss","download_url":"https://codeload.github.com/seek-oss/seek-stackable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seek-oss%2Fseek-stackable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263247192,"owners_count":23436808,"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":["ios","swift","uitableview","uitableviewcell"],"created_at":"2025-06-10T03:08:45.687Z","updated_at":"2025-07-03T02:30:59.237Z","avatar_url":"https://github.com/seek-oss.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# seek-stackable\niOS framework for laying out nested views vertically and horizontally.\n\n- [History](#history)\n- [Why use stackable?](#why-use-stackable)\n- [What it's not](#what-its-not)\n- [Current Limitations](#current-limitations)\n- [Example](#example)\n\n# History\nWe wanted to be able to layout variable height UITableViewCell's without paying a penalty in scrolling smoothness and without having to maintain frame layout code.\n\n# Why use stackable?\n- It's just frames\n- Get the performance of frame layout without lots of code\n- Declarative view expression makes for easy integration in code\n- Frames can be cached\n- Frames are immutable\n- Integration with various controls is extensible using protocol extensions\n- Interfaces with standard UIKit controls\n- Currently used by the SEEK iOS App for Search Results\n\n# What it's not\n- stackable is not a replacement for UIStackView\n  - stackable is not meant to be dynamic like UIStackView, relying on immutable frames instead\n  - Currently a number of features in UIStackView are not available in stackable such as alignment options but this will change over time\n- stackable is not based on AutoLayout\n  - AutoLayout is powerful but difficult to tune for performance\n\n# Current Limitations\n- integration has only been verified with UILabel and UIImageView\n- no alignment options\n- no distribution options\n\n# Example\n\n```swift\nlet descriptionLabel = UILabel()\nlet attribute1 = UILabel()\nlet attribute2 = UILabel()\nlet attribute3 = UILabel()\nlet logoImageView = UIImageView()\n\nlet stack = VStack(spacing: 2) {[\n  HStack(spacing: 10) {[\n    VStack(spacing: 1) {[\n      attribute1,\n      attribute2,\n      attribute3\n    ]},\n    logoImageView.stackSize(100, 100)\n  ]},\n  descriptionLabel\n]}\n\nlet width = self.frame.size.width\n\n// give me the frames\nlet stackedFrames = stack.framesForLayout(width)\n\n// how tall is the stack?\nlet height = stack.heightForFrames(stackedFrames)\n\n// lay the frames out\nstack.layoutWithFrames(stackedFrames)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseek-oss%2Fseek-stackable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseek-oss%2Fseek-stackable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseek-oss%2Fseek-stackable/lists"}