Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
74 views

I'm trying to show a fullScreenCover when the user taps the third tab instead of actually switching to that tab. The issue is that resetting selectedTab = oldValue in onChange breaks the ...
Mehmet Baykar's user avatar
1 vote
2 answers
76 views

Is there a way to set the background color for the generated "overflow" "more" page for when you have lots of tabs in TabView? SwiftUI iOS
evermore's user avatar
9 votes
4 answers
779 views

We use SwiftUI's tabViewBottomAccessory in our iOS apps for displaying an Audio MiniPlayer View (like in the Apple Music App). TabView(selection: $viewModel.selectedTab) { // Tabs here } ....
NicolasBrunner's user avatar
1 vote
0 answers
106 views

I'd like to achieve a layout similar to the one shown in the Apple Fitness app. When I insert a ScrollView into a TabView, everything works fine, but if I try to add a NavigationStack to wrap the ...
HAS's user avatar
  • 35
1 vote
1 answer
85 views

The SF- Symbols inside the TabView are in my case always displayed filled. Meaning instead of showing book, it shows book.fill. Is there a way to display the "unfilled" version of the symbol?...
Error_Eldar's user avatar
0 votes
1 answer
57 views

In SwiftUI, I have a layout shift bug. Here's a code sample that reproduces the issue. struct ContentView: View { var body: some View { TabView { Tab("Home", ...
Dan Fabulich's user avatar
  • 40.1k
0 votes
1 answer
86 views

I’m new to SwiftUI and have completed half of my TabBar UI. However, I’m stuck on adding an outer corner to the selected tab. This is what I currently have: This is what I'm tring to do: Below is my ...
Ronit Vasoya's user avatar
0 votes
1 answer
246 views

I am attempting to cover the entire screen (iPad and iPhone) while using a TabView, but there always remains the bottom strip that is not covered. struct CoverTestApp: App { var body: some Scene { ...
Pete's user avatar
  • 223
0 votes
1 answer
420 views

I would like to conditionally render TabViewBottomAccessory because I don't want to show it when I am drilling down. When going to the child view I want to hide both tab view (which I achieved by ....
Andrew's user avatar
  • 49.8k
0 votes
0 answers
130 views

If you are currently on the beta of iOS 26, open Apple Music and you'll see a tabViewBottomAccessory that is the mini NowPlayingView. When tapped, it opens the NowPlayingView. Is there a similar way ...
user25626237's user avatar
0 votes
0 answers
1k views

I'm trying to use .tabViewBottomAccessory introduced in iOS 26 to have an audio bar that exists throughout my entire app. The problem I'm having is that I have some nested TabViews, which seems to ...
Ali's user avatar
  • 1
0 votes
0 answers
40 views

If the window width is not enough to display all the tabs, then some may be hidden by the arrow. I have exactly this situation. But the problem is that the hidden tab turns out to be inactive/...
Nikolai Nagornyi's user avatar
3 votes
2 answers
2k views

Apple's new iOS 26 Liquid Glass design language includes a bar that floats above the new tab bar. Seen here in the Music app: As you scroll, the bar elegantly flows down into the tab bar space, which ...
pkamb's user avatar
  • 35.5k
2 votes
1 answer
327 views

I’m building a Files-style SwiftUI app and my primary goal is to adopt both: NavigationSplitView on wider (regular) widths (iPad/macOS), and TabView + NavigationStack on narrow (compact) widths (...
ayelvs's user avatar
  • 736
14 votes
3 answers
20k views

Apple's iOS 26 "Liquid Glass" introduces a new UI paradigm of a tab bar with a separate floating action button off to the side. This seems to be a common UI design used in many of Apple's ...
pkamb's user avatar
  • 35.5k
0 votes
2 answers
101 views

I am trying to drive programatic changes to the tab state of a TabView from a coordinator. The tabview works and changes state when I click a new tab, but does not work when I change the state in the ...
user2607381's user avatar
0 votes
0 answers
106 views

I have a view called SurahView. In this view, I need 2 modes: translation and reading. In the translation mode, I have a series of verses with both the Arabic text and English text for each verse. In ...
Ali's user avatar
  • 1
1 vote
0 answers
62 views

File: ContentView struct ContentView: View { var body: some View { TabView { ListView() .tabItem { Image(systemName: "book") } }...
Luna's user avatar
  • 53
0 votes
1 answer
78 views

I have a TabView with two tabs, and I want the first tab to have color scheme of light and the second tab to have color scheme of dark. I've tried this: struct ContentView: View { var body: some ...
helloworld142857's user avatar
1 vote
0 answers
109 views

Given that on iPadOS 18 the TabBar is on the top, and I need to hide/show it based on push/pop a view to/from a NavigationStack I am experiencing a weird animation glitch. This question is similar an ...
Petar's user avatar
  • 2,291
1 vote
1 answer
102 views

I'm trying to create an animated onboarding experience where the content of each tab animates when it appears. My code does work as intended when swiping between tabs: However, it behaves ...
routern's user avatar
  • 29
4 votes
1 answer
316 views

With iOS 18 Apple decided to move our beloved bottom tab bar controller to the top of the screen (apparently thats more modern). I am having the following situation: I have TabView where we have root ...
Boyan Pavlov's user avatar
0 votes
1 answer
263 views

I am having the following view: import SwiftUI struct HiddenTabs: View { var body: some View { TabView { NavigationStack { NavigationLink("Tap Me") {...
Bogdan Gusiev's user avatar
0 votes
0 answers
43 views

Suppose I have a TabView which is the root of my app. I need to be able to tab between each of these, but some of them have their own NavigationStack Every one of them has a List associated with them, ...
xTwisteDx's user avatar
  • 2,520
0 votes
0 answers
115 views

Here is simplistic code just to showcase what I mean and approximately what I have in my project: ContentView.swift: struct ContentView: View { var body: some View { TabView { ...
Yamiko Hikari's user avatar
-1 votes
1 answer
74 views

Every element in my SwiftUI code becomes its own TabView. It is not on one side how i want it. Every item is spread on another TabView. I tried asking Chatgpt. He thought i gave every item its own ...
Oliver Zimmer's user avatar
0 votes
0 answers
75 views

I have created a custom hover effect per this WWDC video and many other examples on the net: https://developer.apple.com/videos/play/wwdc2024/10152/ I can get the button to expand when looked at ...
bdelliott's user avatar
  • 493
1 vote
1 answer
117 views

When a ScrollView is nested in a TabView, you can press on the tab button and the scroll view will scroll to top. import SwiftUI struct SwiftUIView: View { let items = (1...100).map { "Item \($...
cdignam's user avatar
  • 1,444
0 votes
0 answers
89 views

I am using TabView in my main view and the tab bar looks perfect when the labels are in English but an issue arises when my titles are translated as my app needs to support Spanish localization. When ...
pnw2024's user avatar
1 vote
1 answer
366 views

Does anyone know a solution to the issue where SafeArea is ignored when using TabView with NavigationSplitView in SwiftUI? When using UISplitViewController, the new tab view style and split view are ...
Kngw Kngw's user avatar
  • 123
0 votes
1 answer
337 views

In my SwiftUI app for iOS, I have a TabView with two tabs. Now I want to add a ToolTip to the second tabItem label. I am trying to use the TipKit framework, but I just don't see the tip. Here is an ...
Markus's user avatar
  • 3,395
1 vote
0 answers
68 views

TabView views only show when I remove the ScrollView. But I need the ScrollView for my complex UI, so how do I fix this? ScrollView { VStack { if showDivider { Divider(...
CobraCodes's user avatar
1 vote
0 answers
51 views

I have a full code example below. The problem is that when I tap "Go to Detail" in the DogsView, the detail view is not visually pushed, although the path does get added to the path array ...
soleil's user avatar
  • 13.3k
0 votes
0 answers
38 views

I have implemented a tree view representing different types of objects. Details for these objects should be displayed in a tabbed table view. If I do select an object in the tree, the details of this ...
hjbflyer's user avatar
0 votes
1 answer
88 views

I'm working on a project written in SwiftUI and I want to create an Onboarding screen which has 4 pages. Each page has a full-screen image introducing about app. I use Tabview and enable page ...
Scofield Tran's user avatar
0 votes
0 answers
54 views

I create a TabView, but for some reason it occupies the entire area on the screen although the view it contains is not on the entire screen. VStack { TabView(selection: $selectedPage) { ...
pridurok's user avatar
2 votes
0 answers
364 views

I'm trying to implement a custom font (OpenSans) in my SwiftUI app. Most of my views are happy to take the font and I know therefore that it's being loaded from the bundle correctly. However, there ...
Jacob King's user avatar
  • 6,205
0 votes
1 answer
68 views

I have this sample code: @main struct SwiftUITestApp: App { var body: some Scene { WindowGroup { VStack { TabView { HomeView() ...
duckSern1108's user avatar
  • 1,254
0 votes
2 answers
96 views

In my app, I have a tabView which contains two tabs presenting the same view. The content in each view is dictated within the respective view. The views have a .sheet modifier which currently triggers ...
quinner's user avatar
  • 68
0 votes
2 answers
432 views

The following SwiftUI code will generate Bottom Tab public struct TeamBContentView : View { public init() {} public var body: some View { VStack { TabView { ...
Elye's user avatar
  • 61.3k
0 votes
0 answers
142 views

I have a pretty simple TabView. The .tabViewStyle is .page. It is my understanding that for this style the index indicator is supposed to show up at the bottom–which is currently not the case. Here's ...
appfrosch's user avatar
  • 1,436
1 vote
3 answers
196 views

I need a custom tab bar for my application. The implementations of custom nav bar I've seen so far stacks screens in a ZStack and use opacity to conditionally show the selected screen. My issue is ...
WorldNeedsRefactoring's user avatar
0 votes
0 answers
391 views

In one of my projects I have a VideoPlayer() in a TabView with .tabViewStyle(.page(indexDisplayMode: .always)) to make a paginated carousel. The VideoPlayer has built-in controls for playing/pausing ...
joey's user avatar
  • 317
2 votes
1 answer
429 views

I'm seeing inconsistent behavior when using NavigationStack inside a TabView. On my device (iOS 17.6.1) with Xcode 16.0, the "drilling down" stops working after navigating back to the root ...
Jorn van Dijk's user avatar
2 votes
2 answers
889 views

With Xcode 16 and iOS18, I'm facing an issue with Tabbar SwiftUI. Now in iOS18, we have a floating Tabbar in the iPad. Earlier, before iOS18, when I pushed any view, a new view was above the Tabbar. ...
Hardik Shah's user avatar
2 votes
2 answers
177 views

I am facing a really strange issue and I have no clue how to solve this problem. There is a Text and a TabView in a VStack. Now the problem is, when I am trying to set the Text's text based on some @...
Daud Mujib's user avatar
0 votes
0 answers
94 views

I have 2 tabs in TabView in NavigationStack. Each tab has ScrollView for all over the screen. While switching between those tabs, the navigation title becomes not animated and stuck. The attached ...
Bary Levy's user avatar
  • 624
1 vote
2 answers
214 views

I'm having an issue with SwiftUI where only the top part of the button is clickable, while the bottom part is not clickable at all. Here is my code snippet. Does anyone know how I can fix this? struct ...
Chad Chiu's user avatar
2 votes
1 answer
128 views

I've got a TabView which hosts 3 tabs (Liabilities, In/Out, and Assets). Each tab has a NavigationView in it. I want to have a different Nav Bar Appearance for each (red themed for Liabilities, white ...
Kenny Wyland's user avatar
0 votes
1 answer
221 views

So I have this style for my label that makes icon and text aligned horizontally, It works fine out of tabItem But once I add that to the tabItem in TabView the icon and the text become vertically ...
Mykyta Shapko's user avatar

1
2 3 4 5
9