From 7fb543df541d8233af316d6573d39cde11080eba Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Sat, 30 May 2015 20:00:57 +1200 Subject: [PATCH] Change objc syntax to swift syntax --- docs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs.md b/docs.md index 0deced0..68c7701 100644 --- a/docs.md +++ b/docs.md @@ -271,7 +271,7 @@ Alternative if you are only updating the **constant** value of the constraint yo // this is Apple's recommended place for adding/updating constraints // this method can get called multiple times in response to setNeedsUpdateConstraints // which can be called by UIKit internally or in your code if you need to trigger an update to your constraints -- (void)updateConstraints { +override func updateConstraints() { self.growingButton.snp_updateConstraints { (make) -> Void in make.center.equalTo(self); make.width.equalTo(self.buttonSize.width).priorityLow()