We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a11f6f commit 9465d8fCopy full SHA for 9465d8f
ZLSwipeableViewSwift/ZLSwipeableView.swift
@@ -147,8 +147,8 @@ public class ZLSwipeableView: UIView {
147
148
guard let view = viewToBeRewinded else { return }
149
150
- if UInt(allViews().count) == numberOfActiveView && allViews().first != nil {
151
- remove(allViews().first!)
+ if UInt(activeViews().count) == numberOfActiveView && activeViews().first != nil {
+ remove(activeViews().last!)
152
}
153
insert(view, atIndex: allViews().count)
154
updateViews()
0 commit comments