Skip to content

Commit

Permalink
Merge pull request netcosports#41 from netcosports/issue_#39
Browse files Browse the repository at this point in the history
Pages becomes invisible in reusable pager source netcosports#39
  • Loading branch information
sergeimikhan authored May 20, 2019
2 parents 575548e + dcd9781 commit 0c3ed6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/Core/CollectionViewReusedPagerSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ open class CollectionViewReusedPagerSource: CollectionViewSource {
let visibleCells = containerView.visibleCells
guard !visibleCells.isEmpty else { return }

disappearing = visibleCells[0] as? PagerCell
if let appearing = appearing {
disappearing = visibleCells.first { $0 != appearing } as? PagerCell
} else {
disappearing = visibleCells[0] as? PagerCell
}
}

private func finishAppearanceTransitionIfNeeded() {
Expand Down

0 comments on commit 0c3ed6a

Please sign in to comment.