780 questions
5
votes
1
answer
1k
views
Back button ignores AccentColor in NavigationView iOS 26
I’m reviewing my apps for iOS 26 and noticed a UI change.
In previous iOS versions, when I defined an AccentColor in the Asset Catalog, the back button in a NavigationView automatically adopted that ...
0
votes
0
answers
43
views
SwiftUI NavigationLink automatically pops when requesting Contacts permission (iOS 18)
When push a new page using navigationview and request contact permission before system alert appear. The page pop by itself. How to solve the problem. Tried push this page, fullscreenover this page, ...
0
votes
1
answer
501
views
How to create multi-view deep NavigationView in SwiftUI?
I am creating an onboarding flow for an iOS app with the UI written in SwiftUI
SwiftUI has a NavigationView UI component that uses NavigationLinks to enable a user to move to the next view
However, ...
1
vote
0
answers
133
views
Navigating to swiftui view from push notification
I have a multiple root navigationView in swiftui view, I am setting the root based on a state variable, the issue is that when I am navigating to a screen from a push notification click and then click ...
-1
votes
1
answer
91
views
In SwiftUI,should the NavigationView be inside the TabView or outside?Both have problems
When the NavigationView is placed outside the TabView, dismissing a sheet may cause an error view to be displayed. (In SwiftUI, when the MyView popup sheet then dismissed, the MyView should be ...
1
vote
0
answers
21
views
Menu item of NavigationView doesn't get checked if it was the last item checked
I have a menu with a few items, which are displayed or hidden depending on if the user is logged in.
If the user has logged in, I show an item option to sign out. When this happens, I launch the home ...
0
votes
1
answer
255
views
SwiftUI List navigation title font and padding update?
I'm trying to change the font and padding on the title ("My Title")? So i'm setting the .navigationTitle to have the nice List behavior where as you scroll past the title, it updates the ...
2
votes
4
answers
1k
views
Disable collapsing Sidebar/NavigationSplitView
How to disable sidebar minimization in macOS? In app like App Store, Music, Reminders, Mail, Messages this is disabled. In an app like Feedback Assistant, there is a critical error - after minimizing ...
0
votes
1
answer
92
views
how to access views which are inside Navigation view in navigation drawer in kotlin
i want go back functionality in navigation view. i would like to know how to add on click listener to go back button which is located inside my navigation view. i have code like
below.
my activity ...
1
vote
1
answer
172
views
WinUi 3 How to fix NavigationView expanding footer item behaviour
The NavigationView expanding footer item behaviour in WinUi 3 is bugged. The footer panel is not resized when an item is expanded and part of the footer is not visible (you can scrool the footer panel)...
0
votes
1
answer
500
views
Remove Ripple Effect from Drawer Layout Navigation View
I'm trying to remove this ripple effect from my Navigation View without any luck. I tried following the answers from BottomNavigationView - Shadow and Ripple Effect and How to disable gray animation ...
0
votes
1
answer
849
views
NavigationBar item to edge of screen
Issue
Adding a custom nav button limits touchable area of the button, reducing ux by making it harder to press. I want there to be some space to the left of my chevron but it won't extend into the ...
0
votes
0
answers
103
views
SwiftUI - How to programatically load a new view from the current view (Xcode 15 beta 6)
The approaches that I used in earlier versions have stopped working, in fact they crash. The culprit is, I believe, TabView.
To load a new View as follows still works:
NavigationLink(destination: ...
0
votes
0
answers
742
views
SwiftUI Overlay within NavigationView z-index layering issues
I'm pretty new to Swift, so if there is a better way to do what I'm trying to do, please let me know. On the main view, I have a list that navigates to other views, and I have a sidebar that overlays ...
0
votes
2
answers
1k
views
How to prevent WinUI 3 NavigationView from navigating subpages first when navigating backwards
I have used the WinUI Template Studio to generate the solution.
Visual Studio 2022
The NavigationView in WinUI 3 allows you for navigating between peers and pages. One problem I discovered is having a ...
1
vote
2
answers
2k
views
WinUI (C#): How To Share Data Between Pages - The Proper Way?
I'm very new to this, especially WinUI, so please bear with me.
I'm writing an UI app with Visual Studio which communicates with a console program through a JSON file with properties. The UI has two ...
-1
votes
1
answer
253
views
SwiftUI can you have a view in a loop?
In the app I am developing, I have multiple (23) screens that are the almost the same. They differ by a picture. The data for all of these can be kept in an array [String]. I tried calling a ...
1
vote
1
answer
839
views
NavigationView introduces white space at top of screen
Introducing NavigationView seems to inject white space at the top of the screen.
Without it the text sits at the top.
The code is basic:
var body: some View{
NavigationView{
VStack {
...
0
votes
1
answer
318
views
How to dismiss DetailView without closing the whole window in SwiftUI MacOS app?
Here is an example of two SwiftUI views with unexpected behavior of closing the window instead of dismissing DetailView:
struct ContentView: View {
var body: some View {
NavigationView {
...
0
votes
1
answer
65
views
Frame Layout keep stacking over, how to refresh them
Inside the DrawerLayout in FrameLayout when I click the item of Navigation Menu, they keep clashing and stacking over each other, so what do I do?
This is my Java code for loading fragment in the ...
2
votes
0
answers
34
views
Android - navigation drawer navigationview bug: some non selected items are becoming bold
<com.google.android.material.navigation.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
...
0
votes
0
answers
74
views
NavigationView closes instantly
When I try to open the NavigationView, it closes instantly so as it's not even shown at all. When I double click to open it, it shows for a brief second before closing again.
My MainActivity class:
...
0
votes
1
answer
84
views
overriding onNavigationItemSelected stops navigation to fragments on item click in drawerLayout
overriding onNavigationItemSelected stops navigation component functionality of opening fragments on item click, instead it calls onNavigationItemSelected and nothing else happens.
navigation view ...
0
votes
0
answers
170
views
What is the equivalent to MenuItemSource in WinUI 3 NavigationView
I'm trying to bind to the NavigationView using the MenuItemSource property, but apparently, that property has gone away in WinUI 3. I searched the documentation, but it seems to only go to 2.8: https:/...
0
votes
1
answer
147
views
SwiftUI: do NavigationView attributes needs to be copy-pasted in each View?
I have a NavigationStack that I use to move between Views in my iOS app that has some modifications done on the toolbar (Color, colorScheme, toolbar items).
To keep the same appearance on all the ...