Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pourhadi authored Dec 28, 2019
1 parent dfd3990 commit c900fa0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ Not required. Defaults to CollectionView.RowHeight.sameAsItemWidth.

An enum for setting the desired height for the collection view's rows.

```swift
public typealias CollectionViewRowHeightBlock = (_ row: Int, _ rowMetrics: GeometryProxy, _ itemSpacing: CGFloat, _ numberOfColumns: Int) -> CGFloat

public enum RowHeight {
case constant(CGFloat)
case sameAsItemWidth
case dynamic(CollectionViewRowHeightBlock)
}
```

#### tapAction: ((Item, GeometryProxy) -> Void)?

Not required. Defaults to nil.
Expand Down

0 comments on commit c900fa0

Please sign in to comment.