From 9949aba7e8f70ac5bc77a08ac81e7f23c731c871 Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Tue, 5 Aug 2014 13:23:43 +1200 Subject: [PATCH] Removed unsupported autolayout combination Seems like autolayout no longer supports constraining locations to constants. You must constrain them to a view. --- SnappyExample/ViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SnappyExample/ViewController.swift b/SnappyExample/ViewController.swift index 4dc0ad5..9eca6e3 100644 --- a/SnappyExample/ViewController.swift +++ b/SnappyExample/ViewController.swift @@ -37,7 +37,7 @@ class ViewController: UIViewController { view1.snp_makeConstraints { make in - make.top.and.left.equalTo(CGPointZero).insets(padding) + make.top.and.left.equalTo(superview).insets(padding) make.size.equalTo(CGSizeMake(100, 50)) }