You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently use a mix of "with" and "to" when talking about alignment.
The base method and most parameterized usages use "with:"
align(.center, with: view, .center)
align(.center, withSuperviewPosition: .center)
But the superview methods use "to:"
alignToSuperview(.center, offset: .zero)
alignToSuperview(.center, inset: 42)
I feel strongly that we should converge on a single preposition to use in all of these cases, but I could be convinced to go with either one. I'm leaning towards "with," but curious is anyone else feels strongly.
The text was updated successfully, but these errors were encountered:
We currently use a mix of "with" and "to" when talking about alignment.
The base method and most parameterized usages use "with:"
align(.center, with: view, .center)
align(.center, withSuperviewPosition: .center)
But the superview methods use "to:"
alignToSuperview(.center, offset: .zero)
alignToSuperview(.center, inset: 42)
I feel strongly that we should converge on a single preposition to use in all of these cases, but I could be convinced to go with either one. I'm leaning towards "with," but curious is anyone else feels strongly.
The text was updated successfully, but these errors were encountered: