All Questions
61 questions
0
votes
1
answer
55
views
Push/pop animation of NavigationView not work when nested in TabView.tabViewStyle(.page(indexDisplayMode: .never))
I have this sample code:
@main
struct SwiftUITestApp: App {
var body: some Scene {
WindowGroup {
VStack {
TabView {
HomeView()
...
0
votes
0
answers
95
views
SwiftUI EditMode not working properly in ListView
TLDR: Move Indicators did not appear in List EditMode even after the moveDisabled modifier value is false(dynamically updated).
Hello guys, I'm here to ask about the editMode in listView that made me ...
2
votes
1
answer
97
views
Different Nav Bar Appearances for different tabs in TabView in SwiftUI
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 ...
0
votes
0
answers
65
views
What steps can I take to get my SearchandFilterBar working in this code and what could the problem be?
I want the SearchandFilterBar to toggle the ShowDestinationSeachView filter, however when I click on the search button nothing happens.
I have tried to remove the SearchandFilterBar from the toolbar ...
2
votes
1
answer
377
views
SwiftUI how to hide "more" navigation bar in 5th,6th tabs in a custom Tabview
I'm using a custom tabview to show 6 tabs in the tabview. It's only limited to 5 so if you add 6, it creates a "More" section and the 5th and 6th tabs are shown in a navigation view. When ...
0
votes
1
answer
106
views
Replace deprecated NavigationView for iPhone and iPad Layout
I'm currently using NavigationView to layout my App for iPhone and iPad depending on the horizontalSizeClass. Since the functions I'm using for NavigationView and NavigationLink are deprecated I ...
0
votes
2
answers
187
views
How to keep NavigationLink active while closing or switching to another app in SwiftUI
I have a problem when navigating to the details page, but when I try to open another application or close the application, the navigation link that was initially active suddenly closes by itself. ...
1
vote
1
answer
99
views
When using an iPad and you change the screen from compact to regular, how do you keep the current view from going to a default view?
// BottomNavigationBarView.swift
// TrexlerLibrary
//
// Created by Emanuel Luna on 2/3/24.
//
import SwiftUI
import UserNotifications
enum ActiveView: String, Hashable {
case home
case ...
1
vote
1
answer
85
views
List inside TabView inside NavigationView breaks animation for Navigation Title
I want to have NavigationView starting with Welcome scene + TabView on the followup scene with List of items. I want NavigationView bar to coordinate with List scrolling in a "usual" way:
...
0
votes
1
answer
190
views
NavigationLink inside TabView stops working
I have a view (NewGameView) with a NavigationLink to a different view (LoadView). In this second one there is a Button that closes the view, going back to the first one. This works wonderfully, until ...
0
votes
1
answer
882
views
How do you hide the NavBar in certain SwiftUI Views while also proving a Back button to go to the previous tab?
I am trying to recreate the NavBar behavior that a lot of fitness apps like Strava and AllTrails use to make the activity specific page less busy by removing the NavBar for that specific page.
In ...
0
votes
2
answers
107
views
Using sheet for presenting different views on 2 buttons actions are presenting view incorrect view
enum ActiveSheet: Identifiable {
case first, second
var id: Int {
return hashValue
}
}
struct ContentView: View {
@State var activeSheet: ActiveSheet?
var body: some ...
0
votes
1
answer
241
views
Change Content of TabView Dynamically Cause Page to Become Blank
When I try to change the content of a TabView in runtime, the app crashes or show a blank screen. Platform: Xcode 15.0 beta 6 (15A5219j) / iOS 17.0 beta 5 (21A5303d)
Below is the minimal code that can ...
4
votes
1
answer
858
views
SwiftUI: TabBar inside of a split NavigationView?
I have an iPad app I am writing with SwiftUI. I would like to have a split NavigationView with the left-hand (navigation) side displaying a TabView and the right-hand (content) side displaying other ...
2
votes
0
answers
417
views
NavigationStack to TabView
I've spent sometime going over questions on Stack Overflow and couldn't find an answer.
I'm trying to navigate from a List View (similar to a Sidebar) to a View that contains a TabView. However, when ...