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
0
votes
1 answer

How to avoid app crash with TabView inside NavigationView when navigate backwards ios 13 SwiftUI

I'm using a TabView inside NavigationView but my app crashes when I try to navigate backwards, it shows this error message "Thread 1: EXC_BAD_ACCESS (code=2, address=0x16ad5bff0)" at AppDelegate class. In ios 14 device it works fine but it crashes…
Sokina
  • 57
  • 2
  • 7
0
votes
1 answer

Custom TabView navigation in SwiftUI

I am trying to create a a custom TabView for my app. I have followed a tutorial for this but i am unavble to get the view to change depending on what button is pressed. My code is below for a button displayed on my TabView. when this is pressed i…
Benjio
  • 73
  • 1
  • 11
-1
votes
1 answer

Hide & Disable TabBar when in NavigationDestination Subview - Apple Watch

I'm trying to create a UI layout and navigation functionality similar to the Apple Fitness app on Apple Watch. This is all WatchOS 9 so no need for older API support, phew! I want to have NavigationTitle set for each view in a TabBar. I want each…
Simon
  • 304
  • 2
  • 17
-1
votes
1 answer

Slide Show Dot Indicator - SwiftUI

I'm trying to build an image slideshow using Tab View with a custom Dot indicator based on UIPageControl but the dots are never displayed. Indeed the call to create the dot indicator is executed only once at the start of view creation The images in…
Arjun
  • 133
  • 1
  • 10
-1
votes
1 answer

SwiftUI: custom Pagination on TabView PageTabViewStyle not working properly

I'm working on a custom Tabview Pagination and the below image is what I am trying to archive. The idea is when the textEditor if filled and user move to the next question ( tab index ), the Capsule will be filled with color. However, my current…
Duc Dang
  • 186
  • 1
  • 14
-1
votes
1 answer

How do I get UIViewControllerRepresentable to work with searchable

I've been having issues getting a UIViewControllerRepresentable wrapping a UIPageViewController to play nicely with SwiftUI. Specifically, I can't get the searchable modifier to work properly when the UIViewControllerRepresentable is in the view…
jmacdonagh
  • 3,851
  • 3
  • 18
  • 14
-1
votes
1 answer

How to cause a SwiftUI tabview to reload when another tab is interacted with?

I've tried looking around at State and ObservableObject solutions to this but I need some help. Essentially I have in my ContentView a tabView with 2 tabs in it, say subview1 and subview2. Both subviews also contain another view called cellView.…
-2
votes
2 answers

How can I listen for changes to data in one ViewModel in another ViewModel using Swift/SwiftUI?

Apologies if this seems a bit basic, but I really don't understand what the best practice is for solving this problem. I have tried saving the selected house in UserDefaults then checking to see if the selected house has changed using the…
Cameron Henige
  • 368
  • 2
  • 17
-2
votes
2 answers

In SwiftUI, get warning while using animation() in TavView

I want implement OnBoard Screen in SwiftUI. For that reason, I used TabView. It works perfectly. But I got this warning 'animation' was deprecated in iOS 15.0. How I implement withAnimation or animation(_:value:) to fulfil my goal. …
Aminul Haque Aome
  • 2,261
  • 21
  • 34
1 2 3
21
22