Questions tagged [swiftui-tabview]

For questions about TabView - a component in Apple's SwiftUI framework that switches between multiple child views using interactive user interface elements. When using this tag also include the more generic [swiftui] tag where possible.

Links:

  • Apple Developer Documentation for TabView.
325 questions
0
votes
0 answers

TabView Navigation SwiftUi

I have such a code and I can't set up navigation struct ContentView: View { var body: some View { TabView{ RootView(title: "Main") .tabItem{ Image(systemName: "house") …
dev_nil
  • 89
  • 1
  • 8
0
votes
0 answers

How to create a new toolbar navigation link on each new view and link back to previous view?

Need to create a new toolbar navigation link on each new view going to the next item in the array and back button going to previous item. Currently, it doesn't do that and keeps creating a new toolbar navigationlink on the same view when a new item…
0
votes
1 answer

Navigation View in Tab View Child Views SwiftUi

I have started learning swiftUI so I have question about Navigation View. My app starts with splash screen which is embedded in Navigation View and after that I have navigation link to the second screen which is Tab View. Do I need navigation views…
0
votes
0 answers

How to implement different navigation titles for different tab views in SwiftUI?

My code is currently seen below. I'm expecting the first tab to have the navigation title "Friends" and the second tab to have the navigation title "Filtered View". However, they both show the navigation title of "Friends"…
0
votes
1 answer

how to remove bottom space of list view on swiftui

I want to remove the empty space below list element. Height has to be dynamic for list rows. If I remove the list, then the content will start from the bottom. Here is code: var body: some View { VStack{ …
0
votes
1 answer

How to get TabView .page background style to stick

I have a bunch of TabViews in my view structure all with .tabViewStyle(.page) to get paged tab views with the little dots to cycle through some pictures. I want the dots to have a background so they can be seen regardless of the picture contents. I…
ima747
  • 4,667
  • 3
  • 36
  • 46
0
votes
0 answers

SwiftUI show custom sheet over tab bar

I have custom tab bar with two screen and I created a modifier to display custom sheet from bottom. I don't want to use .sheet cause I can't change cornerRadius and also I want my sheet to be self-sized (dynamique height). MainView: struct MainView:…
OuSS
  • 19
  • 3
0
votes
1 answer

SwiftUI TabView inside a NavigationView

So I know it's not really encouraged to put a TabView inside a NavigationView and that you're supposed to do it the other way around. But the way I want my app I don't really see how I can have it another way... So I have a login screen in which a…
0
votes
1 answer

Align multiple dynamic HStack in VStack inside navigation View

Need to align this : import SwiftUI struct MainAct: View { private let images = ["ImageSlide/first","ImageSlide/second","ImageSlide/third","ImageSlide/fourth","ImageSlide/five","ImageSlide/six","ImageSlide/seven"] @StateObject var imageList =…
0
votes
2 answers

Swipe and delete row with two sections in table view and add deleted name to second section

please help, I have an array with names and when I select a cell I add the selected name to the second section of a table view and delete the name from that first section (all fine here) but if I don't want the name in second section for some…
0
votes
0 answers

Tab Bar Customisation (tab bar item positioning) with Tabview in SwiftUI

I am trying to figure out how to use the functions from xcode with very limited information from the Apple documentation. How to use certain functions or variables or where to find examples and detailed explanations? The particular case that I am…
cc nn
  • 115
  • 1
  • 1
  • 7
0
votes
1 answer

How could I make certain menu items appear depending on the navigation "bar" I press

I am building an app that will store multiple Nintendo consoles and their details (kinda like Mactracker but for Nintendo stuff). I wanna store certain consoles in categories on the main menu but I'm not sure how I could do it (I'm pretty new to…
0
votes
0 answers

Change "more" label to another word in TabView in SwiftUI

Does anyone know if it's possible or how to change the "More" label to another word in TabView (SwiftUI)? When there are more than 5 elements or views, the "More" label with three points (ellipsis) is added. I would like to be able to change that…
0
votes
1 answer

Different Behavior Between Light and Dark Modes Upon Change in Orientation?

I have a setup with tab views within a navigation view. I have been testing for some time with light mode showing that all views work properly when switched between portrait and landscape modes. When I switch to dark mode, all the tabs work fine…
0
votes
0 answers

How to add a List with a TabView that has a List inside in SwftUI

I am wanting to add a TabView with a List, inside another List. The issue is that adding a list with a TabView that has a list inside makes it so that the view is small. Can't figure out if this scenario is possible. The reason it needs two List is…
abcdefg
  • 97
  • 1
  • 9