Explorar o código

Removed unsupported autolayout combination

Seems like autolayout no longer supports constraining locations to constants. You must constrain them to a view.
Robert Payne %!s(int64=11) %!d(string=hai) anos
pai
achega
9949aba7e8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      SnappyExample/ViewController.swift

+ 1 - 1
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))
         }