@@ -634,33 +634,37 @@ Example:
634634
635635```swift
636636class ViewController: ScrollStackController, ScrollStackControllerDelegate {
637-
638- func viewDidLoad () {
639- super .viewDidLoad ()
640-
641- self .scrollStack .stackDelegate = self
642- }
643-
644- func scrollStackDidScroll (_ stackView : ScrollStack, offset : CGPoint) {
645- // stack did scroll
646- }
647-
648- func scrollStackRowDidBecomeVisible (_ stackView : ScrollStack, row : ScrollStackRow, index : Int , state : ScrollStack.RowVisibility) {
649- // Row did become partially or entirely visible.
650- }
637+
638+ func viewDidLoad () {
639+ super .viewDidLoad ()
640+
641+ self .scrollStack .stackDelegate = self
642+ }
643+
644+ func scrollStackDidScroll (_ stackView : ScrollStack, offset : CGPoint) {
645+ // Stack did scroll
646+ }
651647
652- func scrollStackRowDidBecomeHidden (_ stackView : ScrollStack, row : ScrollStackRow, index : Int , state : ScrollStack.RowVisibility) {
653- // Row did become partially or entirely invisible.
654- }
648+
649+ func scrollStackDidEndScrollingAnimation (_ stackView : ScrollStack) {
650+ // Scrolling animation has ended
651+ }
655652
656- func scrollStackDidUpdateLayout (_ stackView : ScrollStack) {
657- // This function is called when layout is updated (added, removed, hide or show one or more rows) .
658- }
653+ func scrollStackRowDidBecomeVisible (_ stackView : ScrollStack, row : ScrollStackRow, index : Int , state : ScrollStack.RowVisibility ) {
654+ // Row did become partially or entirely visible .
655+ }
659656
660- func scrollStackContentSizeDidChange (_ stackView : ScrollStack, from oldValue : CGSize, to newValue : CGSize ) {
661- // This function is called when content size of the stack did change (remove/add, hide/show rows) .
662- }
657+ func scrollStackRowDidBecomeHidden (_ stackView : ScrollStack, row : ScrollStackRow, index : Int , state : ScrollStack.RowVisibility ) {
658+ // Row did become partially or entirely invisible .
659+ }
663660
661+ func scrollStackDidUpdateLayout (_ stackView : ScrollStack) {
662+ // This function is called when layout is updated (added, removed, hide or show one or more rows).
663+ }
664+
665+ func scrollStackContentSizeDidChange (_ stackView : ScrollStack, from oldValue : CGSize, to newValue : CGSize) {
666+ // This function is called when content size of the stack did change (remove/add, hide/show rows).
667+ }
664668}
665669```
666670
0 commit comments