Fix Xcode Beta 3 compiler error

This commit is contained in:
Robert Payne 2015-03-24 23:09:25 +13:00
parent 8b406c09b4
commit 1e5cdba18d
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ public class Constraint {
NSException(name: "Cannot Install Constraint", reason: "Already installed on different view.", userInfo: nil).raise()
return []
}
return self.installedLayoutConstraints?.allObjects as Array<LayoutConstraint>
return (self.installedLayoutConstraints?.allObjects as? Array<LayoutConstraint>)!
}
var newLayoutConstraints = Array<LayoutConstraint>()