tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1061HTML 997Markdown 12TOML 83120 Definitions

Fix another typo in the Swift docs

bb94c36da687099be668b183ca8d55185d36938d · by Noah Gilmore · (7 years ago) · parent bd6e1961c · browse the tree at this commit

Semantic delta

No definition changed: this change is text, documentation or data.

1 files · +1 −1

diff --git a/docs/src/pages/docs/swift.mdx b/docs/src/pages/docs/swift.mdx
index 37abfeb5a..90eaa3788 100644
--- a/docs/src/pages/docs/swift.mdx
+++ b/docs/src/pages/docs/swift.mdx
@@ -157,7 +157,7 @@ Computes the layout of a node tree given a size. The size passed in is used to c
 <Code lang="swift">{`func computeLayout(thatFits size: Size<Float?>) -> Layout`}</Code>
 
 # Style
-The `Style` object contains all the properties associated with flexbox as well as some properties which we found useful outside of flexbox. For example `positionType` can be set to `PositionType.absolute` which puts the node into a absolute layout context instead of a flexbox context. `aspectRatio` is another property not part of the flexbox specification which when set ensures the node matches a certain aspect ratio.
+The `Style` object contains all the properties associated with flexbox as well as some properties which we found useful outside of flexbox. For example `positionType` can be set to `PositionType.absolute` which puts the node into an absolute layout context instead of a flexbox context. `aspectRatio` is another property not part of the flexbox specification which when set ensures the node matches a certain aspect ratio.
 
 <Code lang="swift">{`
 class Style {