diff --git a/CHANGELOG.md b/CHANGELOG.md index feffb5e..a06e4ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,6 @@ CHANGELOG * **BREAKING:** The constraint making chain now utilises protocols to tighten the API's to avoid user error. This may break some syntaxes. * **BREAKING:** Semantic `and` and `with` chain variables were removed -* **BREAKING:** `insets` deprecated and renamed to `inset` * Ensure Swift 1.2 compatibility * Added a `Snap.Config.interfaceLayoutDirection` variable for richer Leading/Trailing support. * Fixed memory leaks that could occur on long lived views diff --git a/Source/ConstraintBuilder.swift b/Source/ConstraintBuilder.swift index 9285b84..a7711dc 100644 --- a/Source/ConstraintBuilder.swift +++ b/Source/ConstraintBuilder.swift @@ -84,9 +84,6 @@ public protocol ConstraintBuilderOffsetable: ConstraintBuilderMultipliable { func offset(amount: CGSize) -> ConstraintBuilderMultipliable func offset(amount: EdgeInsets) -> ConstraintBuilderMultipliable - func inset(amount: EdgeInsets) -> ConstraintBuilderMultipliable - - @availability(*, deprecated=0.10.0, renamed="inset") func insets(amount: EdgeInsets) -> ConstraintBuilderMultipliable } @@ -423,15 +420,12 @@ final internal class ConstraintBuilder: Constraint, ConstraintBuilderExtendable, return self } - // MARK: inset + // MARK: insets - func inset(amount: EdgeInsets) -> ConstraintBuilderMultipliable { + func insets(amount: EdgeInsets) -> ConstraintBuilderMultipliable { self.constant = EdgeInsets(top: amount.top, left: amount.left, bottom: -amount.bottom, right: -amount.right) return self } - func insets(amount: EdgeInsets) -> ConstraintBuilderMultipliable { - return self.inset(amount) - } // MARK: Constraint