Last active
June 12, 2017 18:57
-
-
Save barbosa/440fae2f856e765730455d34006f07d4 to your computer and use it in GitHub Desktop.
Revisions
-
barbosa revised this gist
Jun 12, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ final class MyViewController: UIViewController { } } final class MyView: UIView, NibLoadableView { @IBOutlet private(set) weak var myLabel: UILabel! { didSet { -
barbosa renamed this gist
Jun 12, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
barbosa created this gist
Jun 12, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ import UIKit final class MyViewController: UIViewController { func loadView() { view = MyView.fromNib() } } final class MyView: UIView { @IBOutlet private(set) weak var myLabel: UILabel! { didSet { myLabel.textColor = .blue myLabel.text = "This is my label" } } @IBOutlet private(set) weak var otherView: UIView! { didSet { otherView.backgroundColor = .red otherView.layer.cornerRadius = 3.0 otherView.layer.masksToBounds = true } } }