Skip to content
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] Update stack size spec #4467

Merged
merged 7 commits into from
Nov 11, 2024

Conversation

joshdholtz
Copy link
Member

@joshdholtz joshdholtz commented Nov 11, 2024

Motivation

Update stack size per spec

Description

All basic components (text, image, and stacks) gained a size property. It allows their width and height to be either fit, fill, or fixed

This is the implementation for StackComponent and StackComponentView

  • Replaces width with size
  • New .size(Size) view modifier that applies these width and height settings and can be used by other components
  • Added new FlexVStack (similar to FlexHStack) which wasn't added before 🤷‍♂️

Demo

Screen.Recording.2024-11-11.at.6.36.40.AM.mov

@joshdholtz joshdholtz changed the title Update stack size Part 2: Stack size Nov 11, 2024
@joshdholtz joshdholtz changed the title Part 2: Stack size [Paywalls V2] Update stack spec Nov 11, 2024
@joshdholtz joshdholtz changed the title [Paywalls V2] Update stack spec [Paywalls V2] Update stack size spec Nov 11, 2024
@joshdholtz joshdholtz requested review from a team November 11, 2024 17:52
@joshdholtz joshdholtz marked this pull request as ready for review November 11, 2024 17:52
Copy link
Contributor

@fire-at-will fire-at-will left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I might consider adding a few unit tests for the custom Codable implementations, but other than looks good!

Base automatically changed from paywalls-v2/schema-rework-part-1-color to main November 11, 2024 20:12
@joshdholtz joshdholtz force-pushed the paywalls-v2/schema-rework-part-2-size-stack branch from 582f6e3 to 8da48a3 Compare November 11, 2024 20:16
@joshdholtz
Copy link
Member Author

@RCGitBot please test

@joshdholtz joshdholtz merged commit 7ae6c05 into main Nov 11, 2024
33 of 35 checks passed
@joshdholtz joshdholtz deleted the paywalls-v2/schema-rework-part-2-size-stack branch November 11, 2024 22:30
This was referenced Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants