Skip to content

Commit 40e06e5

Browse files
committed
fix loop
1 parent e580b4c commit 40e06e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

StackScrollView/StackScrollViewCellType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extension StackScrollViewCellType where Self: UIView {
3131
public var stackScrollView: StackScrollView? {
3232
var superview: UIView? = self
3333

34-
while !(superview is StackScrollView) {
34+
while superview != nil && !(superview is StackScrollView) {
3535
superview = superview?.superview
3636
}
3737

0 commit comments

Comments
 (0)