SwiftUI restrict drag gesture that changes view in TabView

前端 未结 0 949
囚心锁ツ
囚心锁ツ 2021-02-07 17:50

I have code that enables me to change views programatically using buttons by making use of

 TabView(selection: $VM.selectedPage) {

 ViewOne()
 .tag(0)
 ...
 }


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题