Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaranrobrien authored Mar 13, 2022
1 parent dae7603 commit bdced83
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ ScrollView(.horizontal) {

### Parameters
* `alignment`: The guide for aligning the subviews in this flow. This guide has the same vertical screen coordinate for every child view.
* `horizontalSpacing`: The distance between horizontally adjacent subviews, or `nil` if you want the flow to choose a default distance for each pair of subviews.
* `verticalSpacing`: The distance between vertically adjacent subviews, or `nil` if you want the flow to choose a default distance for each pair of subviews.
* `spacing`: The distance between adjacent subviews, or `nil` if you want the flow to choose a default distance for each pair of subviews.
* `content`: A view builder that creates the content of this flow.

## VFlow
Expand All @@ -36,8 +35,7 @@ ScrollView(.vertical) {

### Parameters
* `alignment`: The guide for aligning the subviews in this flow. This guide has the same horizontal screen coordinate for every child view.
* `horizontalSpacing`: The distance between horizontally adjacent subviews, or `nil` if you want the flow to choose a default distance for each pair of subviews.
* `verticalSpacing`: The distance between vertically adjacent subviews, or `nil` if you want the flow to choose a default distance for each pair of subviews.
* `spacing`: The distance between adjacent subviews, or `nil` if you want the flow to choose a default distance for each pair of subviews.
* `content`: A view builder that creates the content of this flow.

## Flow
Expand All @@ -55,10 +53,12 @@ ScrollView(.vertical) {
### Parameters
* `axis`: The layout axis of this flow.
* `alignment`: The guide for aligning the subviews in this flow on both the x- and y-axes.
* `horizontalSpacing`: The distance between horizontally adjacent subviews, or `nil` if you want the flow to choose a default distance for each pair of subviews.
* `verticalSpacing`: The distance between vertically adjacent subviews, or `nil` if you want the flow to choose a default distance for each pair of subviews.
* `spacing`: The distance between adjacent subviews, or `nil` if you want the flow to choose a default distance for each pair of subviews.
* `content`: A view builder that creates the content of this flow.

## Advanced Usage
The distance between adjacent subviews can be controlled in both axes using the `horizontalSpacing` and `verticalSpacing` parameters, instead of the `spacing` parameter.

## Requirements

* iOS 14.0+, macOS 11.0+, tvOS 14.0+ or watchOS 7.0+
Expand Down

0 comments on commit bdced83

Please sign in to comment.