Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tifoaudii committed Jun 3, 2021
1 parent 3944c10 commit 5abccae
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
# TifoKit
A declarative UIKit for improve layout productivity when developing an iOS application

A description of this package.
# Requirements
- Min. iOS 11
- Swift 5+
-
# Installation
Currently only available via Swift Package Manager

# Example Usage
```
class ViewController: UIViewController, LayoutStackBehaviour {
override func viewDidLoad() {
super.viewDidLoad()
VStack {
HStack {
UIView()
.setBackgroundColor(.black)
UIView()
.setBackgroundColor(.purple)
UIView()
.setBackgroundColor(.red)
}
.setDistribution(.fillEqually)
.setSpacing(10)
UIView()
.setBackgroundColor(.blue)
UIView()
.setBackgroundColor(.yellow)
}
.setDistribution(.fillEqually)
.setSpacing(10)
.setHorizontalMargins(10)
}
}
```
# License
TifoKit is released under the MIT license.

0 comments on commit 5abccae

Please sign in to comment.