Skip to main content

All Questions

1 vote
1 answer
39 views

SwiftUI MapKit breaks the custom navigation bar

When I use non-deprecated Map() functions, it breaks the custom navigation bar and displays the system's default navigation bar instead. I haven’t been able to find a solution to this issue anywhere. ...
Derya Karakus's user avatar
0 votes
2 answers
102 views

SwiftUI's navigationBarItems leading and trailing buttons not showing in FamilyActivityPicker

I have the following View in SwiftUI to display FamilyActivityPicker: import SwiftUI import FamilyControls struct FamilyActivityPickerView: View { @State private var selectionToDiscourage = ...
sudoExclamationExclamation's user avatar
1 vote
0 answers
62 views

How to create a Navigation Bar with a title, "Done" button and Segmented Picker in SwiftUI?

I'm trying to replicate a UI similar to the one in the Safari app on iOS (as shown in the attached image) using SwiftUI. The navigation bar includes: A dynamic title based on the selected segmented ...
HD Mavani's user avatar
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() ...
duckSern1108's user avatar
  • 1,161
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 ...
Kenny Wyland's user avatar
  • 21.9k
1 vote
2 answers
117 views

SwiftUI Handling EnvironmentObject Resets with navigationLink : Avoiding Navigation View Rebuilds

I have the code below where I use a NavigationLink to add multiple child views on button click. However, as soon as I increase the EnvironmentObject value, all views reset, and only ChildView 1 ...
Umair Ahmed's user avatar
1 vote
0 answers
58 views

SwiftUI: Close popover sheet return me to unexpected destination

I am developing an ios app using swift.I am on xcode 15.3 now I have a problem with NavigationView Let's say my app have 2 pages (page A,page B) and a popover sheet C I wrapped my whole app with ...
Dang Vu's user avatar
  • 11
1 vote
1 answer
262 views

Why NavigationLink is not working sometimes, even when we alter the isActive variable?

Have you ever experienced the NavigationLink not working sometimes, but when you scroll the list to the bottom or do something else, the navigation is triggered? NavigationView { List { ...
Mushrankhan's user avatar
0 votes
1 answer
103 views

SwiftUI How to change page from different list cell?

I listened by @sonle to using NavigationStack. I think something is going wrong. It does navigate but not like my expecting to destination to Travel Detail. It looks like this. NavigationLink(...
Evan Lu's user avatar
  • 89
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: ...
Ievgen's user avatar
  • 2,079
2 votes
1 answer
714 views

accessibilityViewIsModal in swiftUI

I've used accessibilityViewIsModal - true in UIKit where I need to shift accessibility focus from one view to another subview. How to use accessibilityViewIsModal in swiftUI? I've tried following ...
pkc's user avatar
  • 8,546
2 votes
1 answer
479 views

SwiftUI Navigation Link Selection's Highlight Not Working

In iOS, when you tap a row in a list to navigation to a page, the row gets highlighted to indicate which row is selected. This is not working for me when I have a NavigationStack(path:root:) that uses ...
Argerano's user avatar
0 votes
1 answer
115 views

NavigationViews with TabView and Signed in / Signed out state swiftui

Here is the general structure of my code right now. Basically I am trying to make an app where a user has to sign in to use. Once the user is signed in, they will be taken to a tab view. Right now I ...
NoChillKill's user avatar
1 vote
0 answers
277 views

How to find top visible view in SwiftUI?

Using this type of code we can get top visible view controller in swift. But how to check same functionality for SwiftUI. func getTopViewController() -> UIViewController? { var topController: ...
Pranit's user avatar
  • 930
0 votes
0 answers
189 views

Share variables across views in iOS app with SwiftUI

I'm new to StackOverflow and SwiftUI programming. So I have this very simple app with a homepage, a settings page and a page where some text is displayed (for now). The thing I need is for the user to ...
kiwidiwi's user avatar

15 30 50 per page
1
2 3 4 5
11