Prechádzať zdrojové kódy

Hotfix to ensure insets are actually used

Robert Payne 11 rokov pred
rodič
commit
4303bd6037
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      Snappy/Constraint.swift

+ 1 - 1
Snappy/Constraint.swift

@@ -287,7 +287,7 @@ class Constraint {
     // MARK: insets
     
     func insets(amount: UIEdgeInsets) -> Constraint {
-        self.insets = amount
+        self.offset = amount
         return self
     }