-
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 feature for Gap #241
Add feature for Gap #241
Conversation
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.
Everything is perfect, but please, could you update the documentation? Thanks
@@ -159,4 +163,101 @@ final class WidthSizeContentTests: XCTestCase { | |||
rootFlexContainer.flex.layout() | |||
XCTAssertEqual(aView.frame, CGRect(x: 0.0, y: 0.0, width: 400.0, height: 200.0)) | |||
} | |||
|
|||
func test_set_gap_in_row_direction() { |
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.
Thanks for adding all those unit tests!
OK I updated README and Comments of gap! |
@Skyline-23 , could you update your branch, I have fixed the CI. Then after, I will be able to merge your PR. thanks |
I updated it. Thank you! |
Co-authored-by: Ray (Kanghoon Oh) <[email protected]>
Your fix has been released. Thanks for this change |
Add features
columnGap(_ value: CGFloat) -> Flex
rowGap(_ value: CGFloat) -> Flex
gap(_ value: CGFloat) -> Flex
background
After Yoga layout updated to 2.0.0 the gap func added. and as needed by this issue and my company's product, me and my partner @TaekH made feature to use. 🙇♂️
Addition
the direction (row, column) is shows swapped. I think maybe it is issue from yoga layout