-
Notifications
You must be signed in to change notification settings - Fork 229
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
Add static position feature #254
Add static position feature #254
Conversation
- Applies to: `flex items` | ||
- Parameter: CGFloat | ||
|
||
**Method:** | ||
|
||
* **`position(_: Position)`** | ||
The position property tells Flexbox how you want your item to be positioned within its parent. Position values: | ||
* **`relative (default)`** | ||
* **`absolute`**: The view is positioned using properties: top(), bottom(), left(), right(), start(), end(). | ||
* **`relative (default)`** The view is positioned using Insets properties (top, bottom, left, right, start, end) from its normal position within its flex container and will take up space within the flex container. This node will always form a containing block. |
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.
If there are any awkward phrases or sentences that do not align with the project's tone, please let me know.
@@ -1,71 +0,0 @@ | |||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
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.
Moved to InsetTests.
1d9ffb5
to
fd74198
Compare
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.
Very nice work 👍
New release. Thanks |
Thank you for reviewing the PR and releasing it 😄 |
What is this PR for?
Add feature for the static position supported in Yoga version 3.0.0.
https://www.yogalayout.dev/docs/styling/position
https://www.yogalayout.dev/docs/styling/insets
Tests
It does not affect the existing project functionality.
UnitTests ✅
Cocoapods, SPM Example projects build & run ✅