{"id":16949181,"url":"https://github.com/timoliver/tostackview","last_synced_at":"2025-03-21T10:10:42.482Z","repository":{"id":56923089,"uuid":"400689991","full_name":"TimOliver/TOStackView","owner":"TimOliver","description":"A barebones container view for UIKit that stacks collections of subviews","archived":false,"fork":false,"pushed_at":"2023-11-24T08:20:01.000Z","size":117,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-09T19:58:28.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/TimOliver.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"timoliver","custom":"https://tim.dev/paypal"}},"created_at":"2021-08-28T03:14:52.000Z","updated_at":"2023-05-04T12:47:53.000Z","dependencies_parsed_at":"2024-10-13T21:53:24.298Z","dependency_job_id":"6c500acf-a664-42da-989e-2e5a27f5db36","html_url":"https://github.com/TimOliver/TOStackView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOStackView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOStackView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOStackView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOStackView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimOliver","download_url":"https://codeload.github.com/TimOliver/TOStackView/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244776338,"owners_count":20508506,"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":[],"created_at":"2024-10-13T21:53:21.229Z","updated_at":"2025-03-21T10:10:42.458Z","avatar_url":"https://github.com/TimOliver.png","language":"Objective-C","funding_links":["https://github.com/sponsors/timoliver","https://tim.dev/paypal"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"screenshot.png\" width=\"650\" style=\"margin:0 auto\" /\u003e\n\u003c/p\u003e\n\n\u003cspan align=\"center\"\u003e\n  \n[![CI](https://github.com/TimOliver/TOStackView/workflows/CI/badge.svg)](https://github.com/TimOliver/TOStackView/actions?query=workflow%3ACI)\n[![Version](https://img.shields.io/cocoapods/v/TOStackView.svg?style=flat)](http://cocoadocs.org/docsets/TOStackView)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/TimOliver/TOStackView/master/LICENSE)\n[![Platform](https://img.shields.io/cocoapods/p/TOStackView.svg?style=flat)](http://cocoadocs.org/docsets/TOBorderView)\n  \n\u003c/span\u003e\n\n`TOStackView` is a container view that handles laying out\na collection of subviews in a vertical or horizontal alignment. \n\nIt is a very basic version of `UIStackView` that can be used in use cases where the flexibility and complexity of `UIStackView` isn't necessary.\n\nI built this control after I became addicted to the simplicity of `VStack` and `HStack` in SwiftUI, and wanted similar convenience in my UIKit apps, without needing the full complexity of `UIStackView`.\n\n## Features\n\n* Lays out a collection of subviews in a horizontal or vertical alignment.\n* Allows for controlling the alignment of the elements on the alternate axis (eg, Left-alignment in vertically stacked elements).\n* Provides basic self-sizing functionality.\n* Handles baseline alignment of elements that support it, such as SF Symbols images.\n\n## System Requirements\niOS 9.0 and above.\n\n## Installation\n\n**As a CocoaPods Dependency**\n\nAdd the following to your Podfile:\n```\npod 'TOStackView'\n```\n\n**Swift Package Manager**\n\nWill be coming as soon as I get the time! If you can't wait, please consider filing a PR.\n\n**Manual Installation**\n\nCopy the folder `TOStackView` to your Xcode project.\n\n`TOStackView` is an Objective-C project, but it has been written to work properly in Swift as well. If you are using it in a Swift project, don't forget to include it in your Objective-C bridging header.\n\n## Examples\n\n```objc\n// Create some content views\nUILabel *leftLabel = [[UILabel alloc] init];\nleftLabel.text = @\"Hello\";\n[leftLabel sizeToFit];\n\nUILabel *rightLabel = [[UILabel alloc] init];\nrightLabel.text = @\"Hello\";\n[rightLabel sizeToFit];\n\n// Create a stack view enclosing the content views\nTOStackView *stackView = [[TOStackView alloc] initWithArrangedSubviews:@[leftLabel, rightLabel]];\n\n// Size the stack view to wrap the content views\n[stackView sizeToFit];\n\n```\n\n## Credits\n`TOStackView` was originally created by [Tim Oliver](http://twitter.com/TimOliverAU) as a component for iComics 2, an upcoming comic reader app for iOS.\n\niOS Device mockups used in the screenshot created by [Pixeden](http://www.pixeden.com).\n\n## License\n`TOStackView` is licensed under the MIT License, please see the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoliver%2Ftostackview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimoliver%2Ftostackview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoliver%2Ftostackview/lists"}