Skip to content

Commit

Permalink
Observe animation on index
Browse files Browse the repository at this point in the history
  • Loading branch information
fermoya committed Jan 15, 2021
1 parent 1b08146 commit 41d6273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftUIPager/PagerContent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ extension Pager {
#endif
}
})
.onAnimationCompleted(for: pagerModel.draggingOffset, completion: {
.onAnimationCompleted(for: CGFloat(pagerModel.index), completion: {
if pagerModel.pageIncrement != 0 {
onPageChanged?(pagerModel.index)
}
Expand Down

0 comments on commit 41d6273

Please sign in to comment.