Any visual layout that incorporates selectable tabs as an organizational element.
Questions tagged [tabview]
770 questions
2
votes
1 answer
SwiftUI: Add Items dynamically to TabView
i want to use TabView to display some data. I'm using paged view style for this.
struct ContentView: View {
@State var texts: [String] = ["first", "second"]
var body: some View {
TabView {
ForEach(texts, id: \.self) { text in
…

Thieri
- 203
- 1
- 10
2
votes
0 answers
Properly disable touch on UIPageControl in a TabView with PageTabViewStyle
I have set up a (paging) TabView with .tabViewStyle(PageTabViewStyle(indexDisplayMode: .always)).
I would like the IndexView to be merely visual, i.e. no to respond to any touch.
To achieve this I have set…

mmklug
- 2,252
- 2
- 16
- 31
2
votes
1 answer
Receive the selected TabView from another view - SwiftUI
I'm trying do make a swiftui app with tabView.
I want the tabview works normally but also the selected tab may come from the first page
The first view
struct ContentView: View {
@State var selectedTab = 0
var body: some View {
…

Sokina
- 57
- 2
- 7
2
votes
1 answer
SwiftUI TabView + NavigationView navbar doesn't show up
I started to use SwiftUI after a couple years of UIKit.. This is not a piece of cake lol.
Alright, so I am trying to build an app that has a tab bar with 2 elements. Each Tab with contain a ViewController (View now) and they will be embedded in a…

Oleg G.
- 550
- 5
- 25
2
votes
1 answer
How can i create TabView with Headers on top not bottom in SwiftUI
How can i make a SwiftUI TabView with headers aligned to top rather than the bottom.
Thanks

TheWhiteSword
- 115
- 1
- 10
2
votes
1 answer
SwiftUI: .onappear not displaying data from firebase in first tab
In my app the first tab in the starting screen does not show any data. The code for the tab is as follows:
import SwiftUI
import FirebaseFirestore
import Firebase
import FirebaseFirestoreSwift
struct LibraryScreen: View {
@ObservedObject var…

HamdyAli
- 173
- 3
- 14
2
votes
0 answers
Pan and Tap gesture is not working inside the flutter TabviewController
I have used a GestureDetector which is placed inside TabViewController. In that, the Pan and Tap events of Gesture Detector are not working and instead of that the drag and tap event of TabViewController is working. How to make the events of gesture…

Kanagambigai Murugan
- 90
- 7
2
votes
0 answers
SwiftUI TabView more tab content not showing
I am working on a SwiftUI app that uses TabView as the main navigation. I currently have six items, each of which reference another View for content display:
struct ContentView: View {
init() {
UITabBar.appearance().barTintColor =…

forrest
- 10,570
- 25
- 70
- 132
2
votes
0 answers
SwiftUI: "Fatal error: Index out of range" after deleting last item of a list and switching to another tabview
I try to implement a dynamic created list into an tabview in SwiftUI using an EnvironmentObject and a Binding (which may not be needed in the example-code below but it is in my real project) for the SubView of the row.
The list itself (add item,…

deimoszero
- 21
- 1
2
votes
0 answers
Listview can not scroll in tabview ? (Flutter)
I have a tabview:
TabBarView(
physics: FixedExtentScrollPhysics(),
controller: _tabController,
children: [
ProfileTab(_scaffoldKey),
…

Hoang Trung Nguyen
- 409
- 7
- 16
2
votes
1 answer
SwiftUI: How can i change TabView height?
I'd like to set a fixed height of 200 for my TabView.
TabView {
TabItem1().tabItem {
Text("Tab1")
}
TabItem2().tabItem {
Text("Tab2")
}
}

Raz
- 29
- 1
- 6
2
votes
2 answers
SwiftUI Crash when scrolling a list
Glad to post my first question here!
I've been playing around with SwiftUI for a few weeks now and during a bigger project, I found the following bug.
If you have a TabView and a list inside it, if you try to change the tab while the scroll…

Catalin Olaru
- 59
- 7
2
votes
2 answers
Displaying a NavigationBar, inside a NavigationView, inside a TabView, after a NavigationLink. SwiftUI
I'm making an App in which user needs to Log In and after that take me to a TabView in which I have 3 different views (Navigation Views).
The problem is after I Log In, and use a NavigationLink to send me to the TabView, to display me the 3…

Pablo Carmona
- 21
- 3
2
votes
1 answer
SwiftUI: Can I add more Views to TabView then Tab Items?
I consider whether there is possibility to add more Views to TabView in SwiftUI then there is place for TabItems.
I have done something like this:
TabView(selection: $selectedTab) {
Text("Hello World 1")
.tabItem {
…

Michał Ziobro
- 10,759
- 11
- 88
- 143
2
votes
1 answer
iOS TabView with Unity3D integration
Has anyone here been able to integrate a TabView based application with Unity3d? I have been working on a solution, but I'm beginning to believe that it may not be possible to do. The concept basically is to have the Unity3d OpenGLES view paused…

Mike
- 21
- 2