From 6fc4f08afa60ccef36a56f8b496c43f3ebd165b2 Mon Sep 17 00:00:00 2001 From: Drew Olbrich Date: Sat, 9 Feb 2019 16:09:36 -0800 Subject: [PATCH] Rename to moveWidthAndHeightConstraints --- Source/ScrollingContentViewManager.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/ScrollingContentViewManager.swift b/Source/ScrollingContentViewManager.swift index a6c072c..cc6e7e9 100644 --- a/Source/ScrollingContentViewManager.swift +++ b/Source/ScrollingContentViewManager.swift @@ -299,7 +299,7 @@ public class ScrollingContentViewManager: KeyboardObservering, ScrollViewBounceC // scroll view, leaving the content view without width and height constraints. The // content view will be assigned replacement minimum width and height constraints // later, in `addScrollViewAndContentViewConstraints`. - transferWidthAndHeightConstraints(of: contentView, to: scrollView) + moveWidthAndHeightConstraints(of: contentView, to: scrollView) } /// Adds the content view as a subview of the scroll view. @@ -392,12 +392,12 @@ public class ScrollingContentViewManager: KeyboardObservering, ScrollViewBounceC } } - /// Transfers width and height constraints from one view to another view. + /// Moves width and height constraints from one view to another view. /// /// - Parameters: /// - fromView: The view to transfer width and height constraints from. /// - toView: The view to transfer width and height constraints to. - private func transferWidthAndHeightConstraints(of fromView: UIView, to toView: UIView) { + private func moveWidthAndHeightConstraints(of fromView: UIView, to toView: UIView) { var constraintsToRemove: [NSLayoutConstraint] = [] for constraint in fromView.constraints { if constraint.firstAttribute == .width || constraint.firstAttribute == .height {