Questions tagged [navigationview]

Provides navigation drawer access. Part of Android's design support library.

Summary

Helps developers follow Android's material design standards by providing access to the navigation drawer.

Navigation View

The navigation drawer can be an important focal point for identity and navigation within your app and consistency in the design here can make a considerable difference in how easy your app is to navigate, particularly for first time users. NavigationView makes this easier by providing the framework you need for the navigation drawer as well as the ability to inflate your navigation items through a menu resource.

Reference

770 questions
7
votes
1 answer

How to retrieve the window handle of the current WinUI 3 MainWindow from a page in a frame in a NavigationView control on the MainWindow

I am creating my first WinUI 3 desktop application. I have a NavigationView on my MainWindow. I have 9 different pages that I navigate to via the frame in the NavigationView. One of the pages is for printing reports. I need to get the FileSavePicker…
LennyL
  • 225
  • 3
  • 9
7
votes
1 answer

SwiftUI onAppear called twice when NavigationView inside TabView

So I have a TabView where each of the tabs is embedded in a NavigationView. On first appear of each tab I get the following lifecycle calls onAppear(), onDisappear(), onAppear(). So it looks like onAppear gets called twice. This only happens the…
andrei
  • 1,353
  • 15
  • 24
7
votes
2 answers

VideoPlayer view prevents SwiftUI Navigation Bar from hiding

The problem occurs when I put VideoPlayer view inside NavigationView's parent view or child view. In this example the child view will show navigation bar: struct ParentView: View { var body: some View { NavigationView { VStack { …
7
votes
4 answers

Adding a Subtitle under NavigationTitle

Let's say I have the following code: struct SwiftUIView: View { var body: some View { NavigationView { VStack { Text("Hello") Text("World") } …
Nico Cobelo
  • 557
  • 7
  • 18
7
votes
1 answer

How to remove opacity animation in SwiftUI NavigationLink

When tapping on a NavigationLink, it reduces the opacity slightly. Is there a way to disable this. I tried using .buttonStyle(PlainButtonStyle()) but that didn't have the desired effect. It is embedded in a scrollView (preferred over List for…
santi.gs
  • 514
  • 3
  • 15
7
votes
2 answers

SwiftUI: How to switch to a new navigation stack with NavigationViews

I am currently using SwiftUI Beta 5. I have a workflow which involves navigating through a series of views. The last view involves an operation which populates a load of data into the app and ends that particular workflow. Once the data has been…
Andy Thomas
  • 1,367
  • 2
  • 14
  • 30
7
votes
1 answer

How to display missing back button in Master-Detail1-Detail2 view in SwiftUI in landscape?

I'm using a NavigationView and NavigationLinks to move from a MasterView to a Detail1View and then further to a Detail2View. On an iPhone in portrait mode, the back button is displayed for all detail views and allows to move back from Detail2View to…
caram
  • 1,494
  • 13
  • 21
7
votes
0 answers

Inserting an Admob MEDIUM_RECT into Android design library's NavigationView's menu

By using I can use my custom layout and create a native ad inside the NavigationView. However, the list item's height seems to…
7
votes
2 answers

How to position menu items in Navigation View?

My question is related to recently released Navigation View from Design Support Library. I want to position Log In at the bottom of the Navigation View, how I can do this? My menu XML right now, look like this :
filipp.kowalski
  • 5,495
  • 7
  • 27
  • 45
6
votes
2 answers

SwiftUI NavigationView vs NavigationStack for iOS 15/16

I'm trying to make my iPhone apps (targeting iOS 15 and above) fully compatible with iOS 16 without success! I don't know how to have NavigationView for iOS 15 and NavigationStack for iOS 16 in the same piece of code. The code above isn't accepted…
Alexnnd
  • 429
  • 4
  • 13
6
votes
0 answers

SwiftUI NavigationView issue with Parent-Child-Grandchild scenario when attempting grandchild previous next navigation

I am using SwiftUI in a project that requires a model with a 'one to many to many' entity structure. I use a navigation view at the parent level with navigation links at parent and child levels. This works well in that I can: Select a child at…
6
votes
0 answers

Present a view on top of a navigation View in swiftUI

I have a MainView which is a Navigation View and it presents a View through NavigationLink i.e. SubView here. In SubView, I want to present a view on top of the subview on a button toggle while hiding the navigation bar and the subview contents. I…
user2580
  • 239
  • 5
  • 13
6
votes
0 answers

Best way to handle a TabView inside a NavigationView in SwiftUI

I am developing an app in Swift with SwiftUI. I have this setup where I put a TabView inside a NavigationView and used the navigationBarTitle on the tabView. I did this because if I put the NavigationView inside the TabView, I cannot make the Tab…
BountyHunter
  • 85
  • 2
  • 7
6
votes
1 answer

Hide navigation bar Swiftui

I've a problem with the NavigationView in SwiftUI, I've add this code for hide the navigation and works fine but in when scroll the view appear the sticky header how to remove this? thanks!! NavigationView…
Stefano Toppi
  • 626
  • 10
  • 28
6
votes
1 answer

How to properly include "Add Item" button in a NavigationView using SwiftUI?

I need a "Plus" ⊕ Button in my NavigationView's List .navigationBarItems (right on the navigation bar), which I'd like to add a row to the list, using a subsequent view in the navigation hierarchy to enter its name etc. But first, I can't even get…
electromaggot
  • 634
  • 6
  • 16