fermoya / SwiftUIPager

Native Pager in SwiftUI
MIT License
1.27k stars 166 forks source link

[BUG] tvOS scrolling not working #300

Open HenryGlendening opened 1 year ago

HenryGlendening commented 1 year ago

Describe the bug Regression of issue #237:

Unable to scroll on tvOS even though package claims to be tvOS compatible. The directional buttons on the device's newer Siri remote allow navigating between the Pager's pages, however, performing swipe gestures on either Siri remote does not cause the Pager to respond and navigate.

This affects the Apple TV 4K and Apple TV HD devices and both kinds of Apple TV Siri remotes.

To Reproduce Implement a basic example with focusable areas, such as NavigationLink

Expected behavior Expected to scroll left or right using Apple TV Remote, just like on a standard ScrollView.

Screenshots / Videos On the screenshot, left item is in focus. It is not centered and unable to scroll to the left, beyond this item (there a total of 5 in the pager)

Environment

metin-atalay commented 1 year ago

Hi @HenryGlendening , We use this lib in our project, there isn't any error about your situation. but the page width in our pager and the screen width is the same. If you try something like that, will it work?