From 7cb3a61c1404910cf93023abc66702d50e5a00fc Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Sun, 12 Apr 2015 18:35:29 +1200 Subject: [PATCH] Revert insets to inset --- CHANGELOG.md | 1 - Source/ConstraintBuilder.swift | 10 ++-------- 2 files changed, 2 insertions(+), 9 deletions(-) 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