Skip to content

Commit

Permalink
Swift docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Sjölander committed Apr 29, 2019
1 parent 1f4481a commit 82cf59a
Show file tree
Hide file tree
Showing 3 changed files with 486 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/src/pages/docs/kotlin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ enum class PositionType {
The `FlexWrap` property controls what happens when children overflow the size of the container along the main axis. By default children are forced into a single line (which can shrink components).

- `Wrap` enables wrapping of children if they overflow the main axis of the container.
- 'NoWrap' disables wrapping of children, children will instead shrink to fit the main axis or overflow depending on their `flexShrink` setting.
- `NoWrap` disables wrapping of children, children will instead shrink to fit the main axis or overflow depending on their `flexShrink` setting.
- `WrapReverse` enables wrapping of children if they overflow the main axis of the container. Unlike `Wrap`, lines are laid out in reverse order.

Optional, if left undefined `NoWrap` is the default value.
Expand Down Expand Up @@ -459,15 +459,15 @@ Flex grow describes how any space within a container should be distributed among

Optional, if left undefined `0.0` is the default value.

<Code lang="kotlin">{`flexGrow: f32`}</Code>
<Code lang="kotlin">{`flexGrow: Float`}</Code>

----

Flex shrink describes how to shrink children along the main axis in the case that the total size of the children overflow the size of the container on the main axis. flex shrink is very similar to flex grow and can be thought of in the same way if any overflowing size is considered to be negative remaining space. These two properties also work well together by allowing children to grow and shrink as needed. Flex shrink accepts any floating point value >= 0. A container will shrink its children weighted by the child’s flex shrink value. If `flexShrink` is set to 0 the node will not shrink.

Optional, if left undefined `1.0` is the default value.

<Code lang="kotlin">{`flexShrink: f32`}</Code>
<Code lang="kotlin">{`flexShrink: Float`}</Code>

----

Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/docs/rust.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ enum PositionType {
The `FlexWrap` property controls what happens when children overflow the size of the container along the main axis. By default children are forced into a single line (which can shrink components).

- `Wrap` enables wrapping of children if they overflow the main axis of the container.
- 'NoWrap' disables wrapping of children, children will instead shrink to fit the main axis or overflow depending on their `flex_shrink` setting.
- `NoWrap` disables wrapping of children, children will instead shrink to fit the main axis or overflow depending on their `flex_shrink` setting.
- `WrapReverse` enables wrapping of children if they overflow the main axis of the container. Unlike `Wrap`, lines are laid out in reverse order.

Optional, if left undefined `NoWrap` is the default value.
Expand Down
Loading

0 comments on commit 82cf59a

Please sign in to comment.