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)
}
}
}
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:
Expected behavior Expect smooth horizontal sliding Tabs
Versions (please complete the following information):