Skip to content

Commit 9faa432

Browse files
Merge pull request #16 from camdenfullmer/return-if-found
Return early if the scroll view was found
2 parents 0aba9e1 + d3f3f3b commit 9faa432

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/StatefulTabView/Helpers/TabBarCoordinator.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ private extension TabBarCoordinator {
8888
var view: UIScrollView?
8989

9090
views.forEach {
91+
guard view == nil else {
92+
return
93+
}
94+
9195
if let scrollView = $0 as? UIScrollView {
9296
view = scrollView
9397
} else {

0 commit comments

Comments
 (0)