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
1
vote
1 answer

TextField In Tab View will show space upon keyboard

I'm using text field in Tab view, but when keyboard shows out. There has a space upon keyboard. enter image description here var body: some View { TabView { TestView() } } var body: some View { VStack { …
kuan
  • 25
  • 5
1
vote
1 answer

It is possible to hide this dots which is showing if I chose tabViewStyle(PageTabViewStyle())

It is possible to hide this dots which is showing if I chose tabViewStyle(PageTabViewStyle()). I don't found any result so im asking you guys.Its iPhone screen where you can see 7 dots import SwiftUI struct kafelki: View { @State var Index = 0 …
Mario999
  • 13
  • 2
1
vote
0 answers

Combining Navigation Bar, TabView and searchable causes the NavigationBar UI issue with lists

Combining Navigation Bar, TabView and searchable causes the NavigationBar and Search InputField to stay stationary when scrolling up on the second selected tab. If I run the code below and first click on the Bookmark tab and scroll the list up, I…
J. Edgell
  • 1,555
  • 3
  • 16
  • 24
1
vote
0 answers

SWIFTUI : Wide space appear on top as switch between tabs

Basically, I am working on a project in which there is a navigation process, therefore, I have to implement navigationview with tabview. As app loads, initial screen appear(homeview) normal, but an issue arises as soon I switch between tab option,…
1
vote
1 answer

Taking Top Space When Adding Tab Bar in SwiftUI

I am integrating Side Menu in my SwiftUI app. The side menu is working fine. The problem I am getting is I have a tab bar at the bottom, and when I open my side menu screen, it is taking some space from the top and I am not getting why it is getting…
Taimoor Arif
  • 750
  • 3
  • 19
1
vote
0 answers

How can i disable the swipe for the tab view in certain indexes before i swipe in swift UI?

TabView(index){ UIView } .gesture( DragGesture() .onChanged { if $0.startLocation.x > $0.location.x { //left // methodTochangeIndex() } }) Then i updated index on .onchange so…
abinbabu
  • 43
  • 8
1
vote
1 answer

swiftUI tabView pagetabviewstyle - button to next is not working

import SwiftUI GuideImageView currentPage mean 1VStack which is in text and images from array from guidelists struct GuideImageView: View { @State var currentPage: Int = 0 var body: some View { VStack{ TabView(selection: $currentPage){ …
Dasol98
  • 13
  • 2
1
vote
1 answer

SwiftUI - TabView init after click on TabItem

I'm running at the moment in a issue with the TabView under SwiftUI. I selecting the state of the TabView over a EnvironmentObject (see code below), at this moment everything is fine, but when I click on a tab it switch it but after it it…
Sebastian R.
  • 447
  • 8
  • 21
1
vote
1 answer

SwiftUI Tabview inside TabView and List items highlight behaviour strange?

I am new in Swift, please help me a hand The first question is Can use TabView inside a TabView? If it can be, I got an issue related to List, items inside List is highlighted when I tap into another place // This tab will have many pages and can…
Binh Ho
  • 3,690
  • 1
  • 31
  • 31
1
vote
2 answers

With each tab containing grid, how to fill each grid

I want to have a TabView, where each tab is a LazyVGrid. I want to fill each grid in a particular tab, before another tab gets created, and I'd like this to be adaptive to whatever screen is being seen (in particular iPad vs. iPhone). I have…
Jack
  • 2,206
  • 3
  • 18
  • 25
1
vote
1 answer

Swiftui - Handling Tab navigation inside a root navigation properly

The structure of my swiftUI app navigation is as below View : A { Navigation View { // List View on click // Takes me to a Tab View NavigationLink(destination : Tab View) } } View : Tab View { ViewX .tag(0) …
1
vote
2 answers

TabView keeping state on tab changes SwiftUI

I'm having my View's reload when my TabView tab changes. I'm trying to show a ProgressView while fetching data from an API on initial data loading, but it's being reloaded every tab change, even after navigating to another view. If I remove my…
cole
  • 1,039
  • 1
  • 8
  • 35
1
vote
1 answer

How to connect LazyVGrid cells with the corresponding full screen images in a TabView (Xcode 13, iOS15)

I'm having a hard time matching the correct grid cell when zooming out from the corresponding tab. Just starting to learn and I should definitely go through a few more tutorials. If you want to lend a hand here, thank you in advance. This is the…
Neurythmic
  • 25
  • 5
1
vote
2 answers

How do I prevent the user from switching to certain tabs in a SwiftUI TabView

I am creating sort of a game in swift that gives the user a new clue every time they guess incorrectly. I would like to have a TabView for the clues, but I don’t want the player to have access to every clue at the start. I was thinking either…
Cooper
  • 13
  • 3
1
vote
0 answers

SwiftUI: Change VoiceOver name for TabView?

is it possible to change the name of a TabView from "tabbar" to another name? If you first tap on an TabBar con VoiceOver says: Tabbar - Info - tab 1 from 3. if you click the other icons: Einstellungen - gab 3 of 3. After changing the focus away…
Michael
  • 616
  • 5
  • 20