-
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 vertical, horizontal #146
Conversation
Sources/FlexLayout.swift
Outdated
This method is valid only when the item position is absolute (`view.flex.position(.absolute)`) | ||
*/ | ||
@discardableResult | ||
public func horizontalDirected(_ value: CGFloat) -> Flex { |
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.
Not sure that horizontalDirected
is required since we set start
and end
to the same value, this is equivalent to setting the left
and right
.
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.
Yeap, you are right, miss this moment. Will remove horizontalDirected
Sources/FlexLayout.swift
Outdated
This method is valid only when the item position is absolute (`view.flex.position(.absolute)`) | ||
*/ | ||
@discardableResult | ||
public func horizontal(_ value: CGFloat) -> Flex { |
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.
Good, could you please add theses methods in the documentation (README.md) in the section https://github.com/layoutBox/FlexLayout#4-absolute-positioning.
I can also add |
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 the addition 👍
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.
Really good addition 👍
New release including your change https://github.com/layoutBox/FlexLayout/releases/tag/1.3.17 |
Add vertical, horizontal and horizontalDirected to absolute positioning. Useful methods instead of .top(x).bottom(x), start(y).end(y), etc. (Just like in pin)