mirror of https://github.com/SnapKit/SnapKit
Touch readme
This commit is contained in:
parent
61b4016202
commit
8fbe3c18bd
|
@ -12,10 +12,10 @@ import SnapKit
|
||||||
class MyViewController: UIViewController {
|
class MyViewController: UIViewController {
|
||||||
|
|
||||||
lazy var box = UIView()
|
lazy var box = UIView()
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
self.view.addSubview(box)
|
self.view.addSubview(box)
|
||||||
box.snp_makeConstraints { (make) -> Void in
|
box.snp_makeConstraints { (make) -> Void in
|
||||||
make.width.height.equalTo(50)
|
make.width.height.equalTo(50)
|
||||||
|
@ -26,6 +26,7 @@ class MyViewController: UIViewController {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Resources
|
## Resources
|
||||||
|
|
||||||
* [Documentation](http://snapkit.io/docs/)
|
* [Documentation](http://snapkit.io/docs/)
|
||||||
|
|
Loading…
Reference in New Issue