Skip to content
This repository was archived by the owner on Dec 27, 2020. It is now read-only.

Commit a90a144

Browse files
committed
readme
1 parent b153273 commit a90a144

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33
SwiftUI Grid view layout with auto-sizing items and flexible column count.
44

55
<center>
6-
<img src="Resources/preview.png"/>
6+
<img src="Resources/iPad1.png"/>
77
</center>
88

99
## Examples
1010

1111
```swift
1212
/// Simple grid.
1313

14-
Grid(0...100) {
15-
Text("\($0)")
14+
Grid(0...100, minimumItemWidth: 100) { _ in
15+
Rectangle()
16+
.foregroundColor(.red)
17+
.frame(height: 100)
1618
}
1719
```
1820

@@ -26,9 +28,14 @@ Grid(self.planets, minimumItemWidth: 320, spacing: 16) {
2628
print("Selection:", $0)
2729
}
2830
}
29-
.edgesIgnoringSafeArea(.all)
3031
```
3132

33+
## Performance
34+
35+
<center>
36+
<img src="Resources/iPad2.png"/>
37+
</center>
38+
3239
## Requirements
3340

3441
- Swift 5+

0 commit comments

Comments
 (0)