-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Paywalls V2] Fix vstack and hstack growing size when fit #4646
Conversation
// self.modifier(SizeModifier(size: size, | ||
// hortizontalAlignment: alignment, | ||
// verticalAlignment: alignment)) | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this commented out code can be removed
@@ -58,7 +58,8 @@ struct TextComponentView: View { | |||
.multilineTextAlignment(style.textAlignment) | |||
.foregroundColorScheme(style.color, uiConfigProvider: self.viewModel.uiConfigProvider) | |||
.padding(style.padding) | |||
.size(style.size, alignment: style.horizontalAlignment) | |||
.size(style.size, | |||
horizontalAlignment: style.horizontalAlignment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need to also pass the verticalAlignment
parameter here?
.size(style.size,
horizontalAlignment: style.horizontalAlignment,
verticalAlignment: style.verticalAlignment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also thought the same thing at first too 😅 But... text doesn't have a vertical alignment property for its content 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, you're totally right! Thanks for the clarification!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, you're totally right! Thanks for the clarification!
Np np! Thanks for asking about that because it does seem like an odd change at first 😇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! No comments besides Antonio's.
Motivation
Vertical and horizontal stacks would act as fill when set as fit
Description