File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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.
34382 . 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:
You can’t perform that action at this time.
0 commit comments