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

Add feature for Gap #241

Merged
merged 12 commits into from
Jan 11, 2024
Merged

Add feature for Gap #241

merged 12 commits into from
Jan 11, 2024

Conversation

Skyline-23
Copy link
Contributor

@Skyline-23 Skyline-23 commented Jan 9, 2024

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

Copy link
Member

@lucdion lucdion left a 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() {
Copy link
Member

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!

@Skyline-23
Copy link
Contributor Author

OK I updated README and Comments of gap!
If it needs to be changed or more explain, Tell me. I will update it

@lucdion
Copy link
Member

lucdion commented Jan 11, 2024

@Skyline-23 , could you update your branch, I have fixed the CI. Then after, I will be able to merge your PR. thanks

@Skyline-23
Copy link
Contributor Author

I updated it. Thank you!

README.md Outdated Show resolved Hide resolved
Co-authored-by: Ray (Kanghoon Oh) <ggaa96@naver.com>
@lucdion lucdion merged commit f27dfb6 into layoutBox:master Jan 11, 2024
0 of 2 checks passed
@lucdion
Copy link
Member

lucdion commented Jan 11, 2024

Your fix has been released. Thanks for this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants