Skip to content

Commit 049fa98

Browse files
committed
Fixed example
1 parent b7de9cc commit 049fa98

4 files changed

Lines changed: 3 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/Pods
22
/Podfile.lock
3+
.DS_Store

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ let allRows = scrollStack.rows
129129
let isEmpty = scrollStack.isEmpty // true if it does not contains row
130130
let notHiddenRows = scrollStack.rows.filter { !$0.isHidden }
131131

132-
// By Vibility
132+
// By Visibility
133133
let currentlyVisibleRows = scrollStack.visibleRows // only currently visible rows (partially or enterly)
134134
let enterlyVisibleRows = scrollStack.enterlyVisibleRows // only enterly visible rows into the stack
135135

ScrollStackControllerDemo/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class ViewController: UIViewController {
8383
extension ViewController: TagsVCProtocol {
8484

8585
func toggleTags() {
86-
let index = stackView.gitrowForController(tagsVC)!.index
86+
let index = stackView.rowForController(tagsVC)!.index
8787
tagsVC.isExpanded = !tagsVC.isExpanded
8888
stackView.reloadRow(index: index, animated: true)
8989
}

0 commit comments

Comments
 (0)