I’ve fundamental tabview on my display screen. TabView
has 4-5 contents and a timer
handle it for transfer the subsequent merchandise. There isn’t any problem till now.
Then person can transfer the pages left or proper when person make this response I must cease timer
and begin once more.
Drag gesture
working however I can’t Manuel change in tabView
, kindly advise ?
TabView(choice: $index) {
ForEach(0..<information.rely, id: .self) { merchandise in
PageContent(mannequin: information[item])
}
}
.gesture(DragGesture(minimumDistance: 0)
.onChanged { _ in
print("🧿 altering")
}
.onEnded { _ in print("🧿 finish") }
)
.tabViewStyle(PageTabViewStyle(indexDisplayMode: .by no means))