Skip to content

Commit b6391dc

Browse files
authored
Added new modifiers to README.md
1 parent 7985f2a commit b6391dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ You want to draw an "infinite" calendar component like the one in the base Calen
2121
contentFrame: @escaping (ChangeIndex) -> CGRect,
2222
increaseIndexAction: @escaping (ChangeIndex) -> ChangeIndex?,
2323
decreaseIndexAction: @escaping (ChangeIndex) -> ChangeIndex?,
24-
orientation: UIInfiniteScrollView<ChangeIndex>.Orientation
24+
orientation: UIInfiniteScrollView<ChangeIndex>.Orientation,
25+
updateBinding: Binding<Bool>? = nil,
26+
spacing: CGFloat = 0
2527
)
2628
```
2729
- frame: the frame of the InfiniteScrollView.
@@ -31,6 +33,8 @@ You want to draw an "infinite" calendar component like the one in the base Calen
3133
- increaseIndexAction: the query from the InfiniteScrollView to get the value after a certain ChangeIndex (recursive logic).
3234
- decreaseIndexAction: the query from the InfiniteScrollView to get the value before a certain ChangeIndex (recursive logic).
3335
- orientation: the orientation of the InfiniteScrollView.
36+
- updateBinding: Boolean that can be changed if the InfiniteScrollView's content needs to be updated.
37+
- spacing: Space between the views.
3438
2. Let's see how content, increaseIndexAction and decreaseIndexAction work:
3539
1. For our MonthView we need to provide a Date so that it will extract the month to display.
3640
It could be declared like this:

0 commit comments

Comments
 (0)