Created
September 10, 2017 07:58
-
-
Save dqhieu/cd18bacaaa54689b976b3c29bb47c6f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myView = MyView(title: "Lorem Ipsum is simply dummy text of the printing", subTitle: "Lorem Ipsum is simply dummy text of the printing", content: "Lorem Ipsum is simply dummy text of the printing") | |
self.view.addSubview(myView) | |
myView.snp.makeConstraints { (make) in | |
make.width.equalToSuperview().multipliedBy(0.5) | |
make.centerX.centerY.equalToSuperview() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment