Questions tagged [tabview]

Any visual layout that incorporates selectable tabs as an organizational element.

770 questions
2
votes
0 answers

Adding a ZStack around a TabView/NavigationView moves content up into safe area when .blur is used

My application uses a TabView and contained in it there is a NavigationView so I can transition to different views on the selected tabs. I am using .navigationTitle together with .navigationBarTitleDisplayMode(.large) to show users where they are…
Simon
  • 41
  • 5
2
votes
1 answer

Can a Primefaces tab be manually reset to force a reload

I'm using a Primefaces tabView with the dynamic and cache attributes set to true - each tab is thus loaded the first time it's displayed and then cached so it does need to be reloaded. Is there a way to manually force a reload of an already cached…
willix
  • 686
  • 1
  • 6
  • 13
2
votes
0 answers

SwiftUI's tabViewStyle PageView does not work for Portrait to Landscape rotation

Using Swift5.5, iOS15.0.1, To create a PageView is still not that simple in SwiftUI - even in Fall 2021. Apple gives us the possibility to mis-use a TabView with a special modifier in order to create a PageView The modifier is called…
iKK
  • 6,394
  • 10
  • 58
  • 131
2
votes
2 answers

Flutter Tab view in the middle of the screen

I was trying to achiving something like that in the image. But when i try to do that this error is getting. The following assertion was thrown while applying parent data.: Incorrect use of ParentDataWidget. The ParentDataWidget Expanded(flex: 1)…
Alan Bosco
  • 737
  • 5
  • 20
2
votes
1 answer

SwiftUI - remove space between TabView that has PageViewStyle

I have a TabView with 7 pages. Each one of the pages has 100 points less than the screen's width. struct ContentView: View { var body: some View { GeometryReader { reader in VStack(alignment: .center) { …
mahan
  • 12,366
  • 5
  • 48
  • 83
2
votes
2 answers

SwiftUI - How to add toolbars to TabView tabs inside a NavigationView?

I'm trying to add different toolbars to each of my tabs but they are not displayed. The app will mostly be used on a landscape iPad and I can add the toolbars to the TabView itself and they display but then I don't know how to pass the button press…
Magnas
  • 3,832
  • 5
  • 33
  • 48
2
votes
2 answers

Reset NagivationView stack in TabView

I have a tabview with two tabs (tabs A and B). Clicking tab A opens a master View. In that master view there is a navigation link to Page 1. Within Page 1 there is also a link to Page 2. When the user is on Page 1 or 2, and I tap Tab A, it doesn’t…
2
votes
0 answers

Memory issue with TabView and TabViewStyle (SwifUI)

There is a "BUG" on iOS and with SwiftUI. I have created a small project that you can download to reproduce it. Here the issue: On swipe with the configuration tabViewStyle the memory is always increasing and never released. Without it, no…
Maurice
  • 2,129
  • 2
  • 25
  • 33
2
votes
1 answer

NavigationView inside TabView: How to get to top-level TabView when using the TabItem-Buttons

I have got my ContentView, which is a TabView, with View1 and View2 as tabs: struct ContentView: View { @State private var selection: Tab = .View1 enum Tab { case View1 case View2 } var body: some View { …
J. Mann
  • 115
  • 6
2
votes
1 answer

SwiftUI TabView crashes when displaying tab containing data that changed when said tab was invisible

A SwiftUI TabView contains to two tabs. Each displays data from the same model. If the data is missing, a ProgressView is displayed, if the data is present, the current value is displayed. In the example model the data is set asynchronously after 2…
2
votes
1 answer

I am not able to overwrite NavigationItemTitle into TabView in SwiftUI

I am a new in SwiftUI. I have a ContentView, in that I added NavigationView and from that NavigationView it redirect into another view which have a TabView. //ContentView.swift struct ContentView: View { @State private var isValidLogin : Bool =…
2
votes
2 answers

Change default blue color TabBar

When creating a TabBar using TabView and .tabItem, the default colors are: gray when image isn't clicked and blue when it is. Here's a sample code. struct TabBar: View{ @State var current = 0 var body: some View{ TabView(selection: $current) { …
Mateus Neves
  • 674
  • 1
  • 6
  • 20
2
votes
2 answers

How to change the appBar background color to match the background color of different tabView pages in flutter?

I'm trying to build a simple app structure with an appBar, tabBar and 3 tabView pages. Each of these pages will have a different background color. I would like this background color to cover the full screen (ie, the space taken up by the AppBar,…
John
  • 23
  • 4
2
votes
0 answers

How do I dismiss the TabView in SwiftUI?

I'm stuck trying to figure out how to dismiss an existing TabView in my SwiftUI application. Basically, it works like this: The SceneDelegate launches a view called MainScreenView() struct MainScreenView: View { @State var…
JFortYork
  • 137
  • 10
2
votes
1 answer

SwiftUI - Overlay TabView with Custom View

I'm having an app with a tab bar navigation concept. For one view I'm currently trying to implement a tab bar overlay that you all know from the Photos App in iOS. It appears when you select images. See below: I tried to implement this behavior in…
SwiftUIRookie
  • 591
  • 7
  • 16