From 1e5cdba18d19e0c320f9105345b3c52827a88196 Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Tue, 24 Mar 2015 23:09:25 +1300 Subject: [PATCH] Fix Xcode Beta 3 compiler error --- Source/Constraint.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Constraint.swift b/Source/Constraint.swift index 59676ff..b671494 100644 --- a/Source/Constraint.swift +++ b/Source/Constraint.swift @@ -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 + return (self.installedLayoutConstraints?.allObjects as? Array)! } var newLayoutConstraints = Array()