Skip to content

Commit 879d971

Browse files
committed
💬 Make isTrailing parameter in pageTransition(...) optional
1 parent 2c4f1b9 commit 879d971

File tree

1 file changed

+1
-1
lines changed
  • Sources/ShinySwiftUI/Extensions/SwiftUI/View

1 file changed

+1
-1
lines changed

‎Sources/ShinySwiftUI/Extensions/SwiftUI/View/View.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public extension View {
199199
- parameter isTrailing: Whether the view is swiping left or right.
200200
*/
201201
@ViewBuilder
202-
func pageTransition(isTrailing: Bool) -> some View {
202+
func pageTransition(isTrailing: Bool = true) -> some View {
203203
#if os(iOS)
204204
self.transition(isTrailing ? .swipe : .swipeReversed)
205205
#else

0 commit comments

Comments
 (0)