Any visual layout that incorporates selectable tabs as an organizational element.
Questions tagged [tabview]
770 questions
4
votes
2 answers
Vertical Paging in SwiftUI
I'm creating a vertical paging view via TabView following this
Everything is perfect except the strange right margin as highlighted in pic below.
Here is the code I use. Appreciate it if anyone could point out the root cause.
import…

LiangWang
- 8,038
- 8
- 41
- 54
4
votes
1 answer
Android Tab view
I have issue in the tab view. I have to show tab view many navigation. For example . In the first tab called "Sales" , It list all sales route.If the user click one route it need to go list of retailer like wise its go in the first tab. There are…

Piraba
- 6,974
- 17
- 85
- 135
4
votes
1 answer
SwiftUI: TabView only works properly without binding (dots don't change)
a weird problem here - either a bug or I'm missing something simple.
I'm creating a TabView {} with a PageTabViewStyle(). It works perfectly, please see below and note the dots at the bottom (the ones that indicate which page is selected - please…

darekm
- 285
- 1
- 12
4
votes
1 answer
Hide Navigation bar for `TabView` not working
In swiftUI, iOS14. I can not hide the navigation bar of TabView. Here is my code:
struct ContentView: View {
var body: some View {
NavigationView {
TabView() {
List {
Text("Hi!")
…

蘇哲聖
- 735
- 9
- 17
4
votes
1 answer
Make TabView Background Transparent
Views in SwiftUI have a transparent background by default. This usually means that they have a white background because that's the default background color of your app. However, this also means that you can use a ZStack to change the background…

Caleb Kleveter
- 11,170
- 8
- 62
- 92
4
votes
1 answer
TabView does not respect selection binding when displayed modally
Considering the below code, I would expect my TabView to show the randomly calculated image when my tab view is displayed, however this is not the case. It will always display the first image at index 0. If I hardcode the selection in the TabView…

Chris
- 7,830
- 6
- 38
- 72
4
votes
0 answers
Adding margin/padding between bottom and tabview title in Swiftui
Currently I have this screen in an example app I'm currently developing:
To achieve this view I used the following code using SwiftUI to implement the GUI.
var body: some View {
TabView(selection: $selectedTabTag) {
…

ravelinx
- 1,557
- 4
- 18
- 26
4
votes
3 answers
Change color of image (icon) in tabItems in SwiftUI
How can i change the color of the image (icon) in the tabItems in SwiftUI?
I tried so many things and nothing works...
Thanks
Here is my test code :
import SwiftUI
struct TestTabviewIconColor: View {
var body: some View {
TabView {
…

Flincorp
- 751
- 9
- 22
4
votes
3 answers
SwiftUI: Adjusting position of Image in a TabView
I use the following code to create a TabView with SwiftUI:
struct TabbedView: View {
@State private var selected = 0
var body: some View {
TabView(selection: $selected) {
View1().tabItem {
Image("Tab1")
…

JAHelia
- 6,934
- 17
- 74
- 134
4
votes
2 answers
SwiftUI Present View Modally via TabView?
I have a TabView set up as follows:
struct ContentView: View {
@State private var selection = 0
@State var newListingPresented = false
var body: some View {
TabView(selection: $selection){
// Browse
…

Steven Schafer
- 834
- 3
- 10
- 24
4
votes
2 answers
TabView tabItem image move to top
I learned how to create a tabBar like UIKit tabBar in swiftUI. And I want to move the center tabItem to top . Is there any way I can achieve this?
TabView code
TabView {
ViewTasks()
.tabItem {
Image(systemName:…

Ibrahim Kurmywal
- 77
- 1
- 10
4
votes
0 answers
App crashing when using TabView in SwiftUI
When I use a list in my TabView in Xcode 11 project (all in SwiftUI), The app crashes if there is anything other than default Text() in the list when I try to change tabs/views(for example, I used a section with a header, and it crashed), followed…

Thomas Bahmandeji
- 193
- 6
4
votes
1 answer
How do you vertically center a SwiftUI tabItem
I have created a TabView using SwiftUI. I am trying to have the TabItems in the TabBar centered vertically. However they do not center properly.
import SwiftUI
struct ContentView: View {
var body: some View {
TabView(selection:…

Chris
- 823
- 2
- 7
- 16
4
votes
0 answers
Flutter: Dissmissible widgets disable Tabview drag detection
I have two tabs, the left tab having a list of tiles and the right tab having nothing. The user can drag the screen from right-to-left or left-to-right to get from one tab to the other.
The left tab has a list of dismissible tiles that only have…

Johnny Boy
- 790
- 3
- 7
- 18
4
votes
3 answers
How to add notch to TabBar to place FloatingActionButton in it
I would like to create a notch inside the TabBar to place the FloatingActionBottom in it but I don't know how to do that.
I found nothing in the documentations or on the internet.

TheUniqueProgrammer
- 605
- 2
- 6
- 13