This was written before UIStackView
was introduced in iOS 9. Please use it, or OAStackView
if you need to support iOS 8.
TAStackView
is an almost[1] fully API-compatible NSStackView
port to Cocoa Touch (think: UIStackView
!) that's written in Swift.
[1] Currently only supports visibility priorities of NSStackViewVisibilityPriorityMustHold
(visible) and NSStackViewVisibilityPriorityNotVisible
(hidden). See the NSStackView documentation for more information.
see NSStackView
documentation
- iOS 7.0+
- Xcode 6.0
- If you'd like to ask a general question, e-mail me.
- If you found a bug, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute, submit a pull request.
- Add TAStackView as a submodule by opening the Terminal,
cd
-ing into your top-level project directory, and entering the commandgit submodule add https://github.com/tomabuct/TAStackView.git
- Open the
TAStackView
folder, and dragTAStackView.xcodeproj
into the file navigator of your Xcode project. - In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the "Targets" heading in the sidebar.
- In the tab bar at the top of that window, open the "Build Phases" panel.
- Expand the "Link Binary with Libraries" group, and add
TAStackView.framework
.
see NSStackView
documentation
TAStackView is released under the MIT license. See LICENSE.md for details.