Skip to content

Commit 0dcc9fc

Browse files
committed
Fix typo
1 parent 9346003 commit 0dcc9fc

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,13 @@ You can also subscribe events for events about row visibility state changes by s
543543
Example:
544544

545545
```swift
546-
class ViewController: UIViewController, ScrollStackControllerDelegate {
546+
class ViewController: ScrollStackController, ScrollStackControllerDelegate {
547+
548+
func viewDidLoad() {
549+
super.viewDidLoad()
550+
551+
self.stackView.stackDelegate = self
552+
}
547553

548554
func scrollStackDidScroll(_ stackView: ScrollStack, offset: CGPoint) {
549555
// stack did scroll

0 commit comments

Comments
 (0)