Rename to moveWidthAndHeightConstraints

This commit is contained in:
Drew Olbrich
2019-02-09 16:09:36 -08:00
parent 81bd105e4d
commit 6fc4f08afa
+3 -3
View File
@@ -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 {