Skip to content

Commit 9b6b315

Browse files
Merge pull request #51 from rzulkoski/carthagebadge
Carthagebadge
2 parents 772786f + c9f454b commit 9b6b315

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# TZStackView
1+
# TZStackView [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
22
A wonderful layout component called the [`UIStackView` was introduced with *iOS 9*](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIStackView_Class_Reference/). With this component it is really easy to layout components in a row both horizontally and vertically. Apple recommends using the `UIStackView` wherever possible and resort to explicit `NSLayoutConstraints` only when there is no way to do it with `UIStackView`. This saves you lots of boiler plate `NSLayoutConstraint` creation code.
33

44
`UIStackView` requires *iOS 9*, but we're not ready to make our apps require *iOS 9+* just yet. In the meanwhile, we developers are eager to try this component in our apps right now! This is why I created this replica of the `UIStackView`, called the `TZStackView` (TZ = Tom van Zummeren, my initials). I created this component very carefully, tested every single corner case and matched the results against the *real* `UIStackView` with automated `XCTestCases`.
@@ -25,6 +25,15 @@ pod "TZStackView", "1.1.2"
2525
```
2626
Unfortunately, using Cocoapods with a Swift pod requires iOS 8.
2727

28+
### Use [Carthage](https://github.com/Carthage/Carthage)
29+
30+
Example `Cartfile`:
31+
```
32+
github "tomvanzummeren/TZStackView" ~> 1.1
33+
```
34+
35+
Run `carthage` to build the framework and drag the built `TZStackView.framework` into your Xcode project.
36+
2837
### Drag files directly into your project
2938
Alternatively (when you do want to support iOS 7) drag in the following classes from the *Example* folder directly into your *Xcode* project
3039
* `TZStackView`

0 commit comments

Comments
 (0)