Add background color to quick start box in README.md (#619)

This commit is contained in:
Liam Elmore 2019-08-05 09:39:18 +01:00 committed by Robert Payne
parent d458564516
commit 198b62402f
1 changed files with 3 additions and 2 deletions

View File

@ -105,6 +105,7 @@ class MyViewController: UIViewController {
super.viewDidLoad() super.viewDidLoad()
self.view.addSubview(box) self.view.addSubview(box)
box.backgroundColor = .green
box.snp.makeConstraints { (make) -> Void in box.snp.makeConstraints { (make) -> Void in
make.width.height.equalTo(50) make.width.height.equalTo(50)
make.center.equalTo(self.view) make.center.equalTo(self.view)