Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
400 views
in Technique[技术] by (71.8m points)

ios - create tabbar slide effect / swiftUi

I created a tabbar, but I couldn't give the slide transition effect between pages. I don't know how to do it. Can you. I do not yet have the information to do.

 TabView{
            
            VStack{
                
                Text("1st screen").font(.largeTitle)
                
            }.tabItem{
                Image(systemName: "1.circle")
                Text("1")
            }.tag(0)
            
            VStack{
                
                Text("2st screen").font(.largeTitle)
                
            }.tabItem{
                Image("img")
                Text("2")
            }.tag(1)
            VStack{
                
                Text("3st screen").font(.largeTitle)
                
            }.tabItem{
                Image("img")
                Text("3")
            }.tag(3)
            VStack{
                
                Text("4st screen").font(.largeTitle)
                
            }.tabItem{
                Image("img")
                Text("4")
            }.tag(4)
            
        }

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...