diff --git a/Sources/SwiftUIPager/Pager.swift b/Sources/SwiftUIPager/Pager.swift index 2e01738..5c503fc 100644 --- a/Sources/SwiftUIPager/Pager.swift +++ b/Sources/SwiftUIPager/Pager.swift @@ -195,6 +195,7 @@ public struct Pager: View where PageView: View, Element: self.content(for: proxy.size) .environmentObject(pagerModel) .onReceive(pagerModel.$page) { (page) in + guard self.page != page else { return } self.page = page } }