Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
psharanda committed Jun 11, 2024
1 parent f65d590 commit 4aa1bf5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 30 deletions.
4 changes: 2 additions & 2 deletions FixFlexSamples/FixFlexSamples/Stories/FixFlexStories.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ class FixFlexStories: DynamicComponentStories {
parent.widthAnchor.constraint(equalToConstant: 200).isActive = true
parent.heightAnchor.constraint(equalToConstant: 100).isActive = true

// demo
parent.fx.hstack(Fix(15),
Flex(child),
Fix(15))
// demo


parent.fx.vstack(Fix(15),
Flex(child),
Fix(15))
Expand Down
43 changes: 17 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,13 @@ Huh, that's a lot of code to write, and imagine needing to modify it — inserti

<img class="snapshot"
src="FixFlexSamples/Ref/ReferenceImages_64/FixFlexSamplesTests.FixFlexTests/test_[email protected]"
width="200"
align="left"/>
width="200"/>

```swift
parent.fx.hstack(Fix(15),
Flex(child),
Fix(15))

parent.fx.vstack(Fix(15),
Flex(child),
Fix(15))
Expand All @@ -228,8 +231,7 @@ parent.fx.vstack(Fix(15),

<img class="snapshot"
src="FixFlexSamples/Ref/ReferenceImages_64/FixFlexSamplesTests.FixFlexTests/test_[email protected]"
width="200"
align="left"/>
width="200"/>

```swift
parent.fx.hstack(Flex(),
Expand All @@ -247,8 +249,7 @@ parent.fx.vstack(Flex(),

<img class="snapshot"
src="FixFlexSamples/Ref/ReferenceImages_64/FixFlexSamplesTests.FixFlexTests/test_[email protected]"
width="200"
align="left"/>
width="200"/>

```swift
parent.fx.hstack(Fill(),
Expand All @@ -266,8 +267,7 @@ parent.fx.vstack(Fill(),

<img class="snapshot"
src="FixFlexSamples/Ref/ReferenceImages_64/FixFlexSamplesTests.FixFlexTests/test_[email protected]"
width="200"
align="left"/>
width="200"/>

```swift
parent.fx.hstack(Fill(),
Expand All @@ -285,8 +285,7 @@ parent.fx.vstack(Fill(),

<img class="snapshot"
src="FixFlexSamples/Ref/ReferenceImages_64/FixFlexSamplesTests.FixFlexTests/test_[email protected]"
width="200"
align="left"/>
width="200"/>

```swift
parent.fx.hstack(Flex([topLabel, bottomLabel]))
Expand All @@ -304,8 +303,7 @@ parent.fx.vstack(Fill(),

<img class="snapshot"
src="FixFlexSamples/Ref/ReferenceImages_64/FixFlexSamplesTests.FixFlexTests/test_[email protected]"
width="200"
align="left"/>
width="200"/>

```swift
parent.fx.hstack(Fix(15),
Expand Down Expand Up @@ -336,8 +334,7 @@ parent.fx.vstack(Fill(),

<img class="snapshot"
src="FixFlexSamples/Ref/ReferenceImages_64/FixFlexSamplesTests.FixFlexTests/test_[email protected]"
width="200"
align="left"/>
width="200"/>

```swift
parent.fx.hstack(Fix(5),
Expand All @@ -358,8 +355,7 @@ parent.fx.vstack(Fix(5),

<img class="snapshot"
src="FixFlexSamples/Ref/ReferenceImages_64/FixFlexSamplesTests.FixFlexTests/test_[email protected]"
width="200"
align="left"/>
width="200"/>

```swift
parent.fx.vstack(Flex([leftLabel, rightLabel]))
Expand All @@ -375,8 +371,7 @@ parent.fx.hstack(Flex(leftLabel, compressionResistancePriority: .required),

<img class="snapshot"
src="FixFlexSamples/Ref/ReferenceImages_64/FixFlexSamplesTests.FixFlexTests/test_[email protected]"
width="200"
align="left"/>
width="200"/>

```swift
parent.fx.vstack(Fix(5),
Expand All @@ -398,8 +393,7 @@ parent.fx.hstack(Fix(5),

<img class="snapshot"
src="FixFlexSamples/Ref/ReferenceImages_64/FixFlexSamplesTests.FixFlexTests/test_[email protected]"
width="200"
align="left"/>
width="200"/>

```swift
parent.fx.vstack(Fix(5),
Expand Down Expand Up @@ -430,8 +424,7 @@ parent.fx.hstack(Fix(5),

<img class="snapshot"
src="FixFlexSamples/Ref/ReferenceImages_64/FixFlexSamplesTests.FixFlexTests/test_[email protected]"
width="200"
align="left"/>
width="200"/>

```swift
parent.fx.vstack(Flex([label, leadingView, trailingView]))
Expand All @@ -453,8 +446,7 @@ parent.fx.hstack(startAnchor: label.leadingAnchor,

<img class="snapshot"
src="FixFlexSamples/Ref/ReferenceImages_64/FixFlexSamplesTests.FixFlexTests/test_[email protected]"
width="200"
align="left"/>
width="200"/>

```swift
parent.fx.vstack(Flex([label, leadingView, trailingView]))
Expand All @@ -477,8 +469,7 @@ parent.fx.hstack(startAnchor: label.leftAnchor,

<img class="snapshot"
src="FixFlexSamples/Ref/ReferenceImages_64/FixFlexSamplesTests.FixFlexTests/test_[email protected]"
width="200"
align="left"/>
width="200"/>

```swift
parent.fx.vstack(Fill(),
Expand Down
3 changes: 1 addition & 2 deletions Readme/src/templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ Huh, that's a lot of code to write, and imagine needing to modify it — inserti

<img class="snapshot"
src="<%- story.imageName %>"
width="<%- `${story.imageWidth/3}` %>"
align="left"/>
width="<%- `${story.imageWidth/3}` %>"/>

```swift
<%- story.codeSnippet %>
Expand Down

0 comments on commit 4aa1bf5

Please sign in to comment.