Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the page slides sideways with an uneven jittering effect when embedding the TwitterView into the TabView #131

Open
ibeizhu opened this issue Jun 15, 2023 · 1 comment

Comments

@ibeizhu
Copy link

ibeizhu commented Jun 15, 2023

Describe the bug
Referring to the official example, the page slides sideways with an uneven jittering effect when embedding the TwitterView into the TabView

To Reproduce
Below code to reproduce the behavior:

import SwiftUI
import PagerTabStripView

struct ContentView: View {
    @State private var selection: Tab = .home
    enum Tab {
        case home
        case my
        case square
    }
    var body: some View {
        TabView(selection: $selection) {
            TwitterView()
                .tabItem {
                    Label("Home", systemImage: "house.fill")
                }
                .tag(Tab.home)
            TwitterView()
                .tabItem {
                    Label("Find", systemImage: "dot.circle.viewfinder")
                }
                .tag(Tab.square)
            TwitterView()
                .tabItem {
                    Label("My", systemImage: "person.crop.circle")
                }
                .tag(Tab.my)
        }
    }
}

Expected behavior
Expect smooth horizontal sliding Tabs

Versions (please complete the following information):

  • Xcode: [e.g. Xcode 14.3.1]
  • Device: [e.g. iPhone14]
  • OS: [e.g. iOS13.4]
  • Library version [e.g. 4.0.0]
@ibeizhu
Copy link
Author

ibeizhu commented Jun 15, 2023

the video to show the bug

2023-06-15.22.37.13.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant