From 238e4ccf4b603fdfd791656fabde62ba4b00151b Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Sun, 17 Sep 2017 15:15:02 +1200 Subject: [PATCH] Add explicit self for clarity --- docs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs.md b/docs.md index 0bce1e4..b095728 100644 --- a/docs.md +++ b/docs.md @@ -314,10 +314,10 @@ class MyViewController: UIVewController { self.view.addSubview(tableView) tableView.snp.makeConstraints { (make) -> Void in - make.top.equalTo(topLayoutGuide.snp.bottom) + make.top.equalTo(self.topLayoutGuide.snp.bottom) make.left.equalTo(view) make.right.equalTo(view) - make.bottom.equalTo(bottomLayoutGuide.snp.top) + make.bottom.equalTo(self.bottomLayoutGuide.snp.top) } } @@ -341,7 +341,7 @@ class MyViewController: UIVewController { self.view.addSubview(tableView) tableView.snp.makeConstraints { (make) -> Void in - make.top.equalTo(safeAreaLayoutGuide.snp.bottom) + make.top.equalTo(self.safeAreaLayoutGuide.snp.bottom) } }