Skip to content

Commit

Permalink
Fix dragForwardOnly and tvOS
Browse files Browse the repository at this point in the history
This method is not supported and should be hidden for tvOS
  • Loading branch information
fermoya committed Apr 4, 2022
1 parent 5e7d2f6 commit c018a9c
Show file tree
Hide file tree
Showing 20 changed files with 1 addition and 2,284 deletions.
2 changes: 1 addition & 1 deletion Sources/SwiftUIPager/Pager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ public struct Pager<Element, ID, PageView>: View where PageView: View, Element:
.contentLoadingPolicy(contentLoadingPolicy)
.loopPages(isInifinitePager, repeating: loopingCount)
.alignment(alignment)
.dragForwardOnly(dragForwardOnly)
.interactive(scale: interactiveScale)
.interactive(opacity: opacityIncrement)
.interactive(rotation: shouldRotate)
Expand All @@ -223,6 +222,7 @@ public struct Pager<Element, ID, PageView>: View where PageView: View, Element:
.onDraggingEnded(onDraggingEnded)
.bounces(bounces)
.draggingAnimation(draggingAnimation)
.dragForwardOnly(dragForwardOnly)
#else
pagerContent = pagerContent.draggingAnimation(draggingAnimation)
#endif
Expand Down
28 changes: 0 additions & 28 deletions SwiftUIPager/Helpers/Buildable.swift

This file was deleted.

45 changes: 0 additions & 45 deletions SwiftUIPager/Helpers/CGPoint+Angle.swift

This file was deleted.

52 changes: 0 additions & 52 deletions SwiftUIPager/Helpers/OnAnimationCompletedModifier.swift

This file was deleted.

22 changes: 0 additions & 22 deletions SwiftUIPager/Helpers/View+Helper.swift

This file was deleted.

126 changes: 0 additions & 126 deletions SwiftUIPager/Page.swift

This file was deleted.

28 changes: 0 additions & 28 deletions SwiftUIPager/PageConfiguration/ContentLoadingPolicy.swift

This file was deleted.

42 changes: 0 additions & 42 deletions SwiftUIPager/PageConfiguration/GesturePriority.swift

This file was deleted.

Loading

0 comments on commit c018a9c

Please sign in to comment.