navigationview Questions

23

Solved

Is there a way to hide the arrow to the right of the navigation link view that is automatically added? I want to show an image grid using NavigationView -> List -> HStack -> NavigationLink_1 - Nav...
Maintenon asked 11/10, 2019 at 2:33

2

Solved

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 fo...
Recalcitrant asked 11/3, 2022 at 0:13

2

I have a GeometryReader in a NavigationView and initially the size is 0 when the view first displayed. I'm not sure if it's a bug or the correct behavior but I'm looking for a way to solve this as ...
Illinois asked 30/4, 2021 at 2:29

6

Solved

I have a UITableViewController subclass that I have wrapped in UIViewControllerRepresentable. I have set the navigationItem.title and navigationItem.leftBarButtonItems in my view controller. I pre...

6

Solved

I just started coding in SwiftUI and came across a problem. I need to give different colors to the background of the navigation bar (NavigationView). The colors will change as I go from one view to...
Centrist asked 15/9, 2021 at 16:9

5

Solved

Let's say I have the following code: struct SwiftUIView: View { var body: some View { NavigationView { VStack { Text("Hello") Text("World") } .navigationTitle("Swift...
Sicular asked 21/1, 2021 at 12:59

3

Solved

I'm trying to make an exercise app and when a user finishes a set of exercises, I want them to be able to press a button to go back into the home screen. There are 5 exercises in total, so I made 5...
Baptlsta asked 22/11, 2022 at 15:42

3

Solved

With NavigationView being the root of UIHostingController , the below code shows split view for iPad. struct ContentView: View { var body: some View { NavigationView { Text("Hello") ...
Peg asked 28/6, 2020 at 15:21

2

I'm using Xcode 12 with deployment for iOS 14.0. My home screen has a NavigationView Within the NavigationView there is a TabView (with 4 tabs) Within each tab are subviews that have buttons and N...

4

Solved

I have two Views and each of them contains NavigationView with title. I have created a TabBar View which also has a NavigationView on it. struct TabbarView: View { var body: some View { Navigati...
Enceinte asked 2/8, 2019 at 15:22

10

Solved

In my NavigationView I have a header layout with id 'viewId' with active buttons. To setup those buttons, I do the following in activity's onPostCreate: final View panel = findViewById(R.id.viewId...

4

Solved

I am making a sliding menu. I have successfully created a navigation drawer and menu items inside the navigation view in groups. But I want to make the items closer to each other. Can I change the ...
Smolt asked 3/9, 2015 at 18:3

2

Solved

I'm new to Swift and I've been trying to build an app and learn as I go. I have a NavigationView that holds a List as a sidebar that renders the content as the user clicks. The bar between these tw...
Dormer asked 15/5, 2021 at 18:39

3

Solved

I'm changing locale programmatically from fragment and everything ok. There is one exception, the NavigationView menu, where language didn't changing. How to refresh it without recreate all activit...
Inflection asked 20/1, 2016 at 9:32

2

Solved

When I push more than one view, multiple back buttons are visible in the navigation bar. struct ContentView: View { var body: some View { NavigationView { NavigationLink(destination:SecView()) {...
Sarabia asked 20/10, 2019 at 22:6

3

Solved

How can I programmatically open (show in screen) NavigationView? I can't find any function what can be helpfull. I have this xml file: <android.support.v4.widget.DrawerLayout xmlns:android="h...
Cyan asked 20/8, 2015 at 15:42

2

Solved

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...
Presswork asked 13/9, 2022 at 9:47

1

Solved

Following this answer, I learned how to add extra views to the NavigationView's menu items, by adding an action layout. My question is, essentially, how can I tweak each of those individual actionL...
Regnant asked 11/9, 2022 at 23:31

1

Solved

There's something I don't really understand about the transition from NavigationView to NavigationStack for SwiftUI 4 and iOS 16. I have 2 applications running on the App Store (targeting iOS 15 an...
Pich asked 5/9, 2022 at 8:53

6

Solved

The topic says it all. How should I go about retrieving the item position on the onClick listener using NavigationView? Also, why is there no getHeader method? Lastly I am doing everything programm...
Nigrosine asked 7/8, 2015 at 7:5

6

Solved

I'm trying to use NavigationView to implement NavigationDrawer. I have added the separator by setting group id in menu. However I can't see the separator. I guess it is because the separator color ...

3

Solved

How could I make this title multiline? I have tried setting the title text as multiline or even configuring it with allowsThigtening(flag: Bool) but none of these options work. Current code here: ...
Neurath asked 20/1, 2020 at 15:2

14

Solved

I want to add a custom navigation button that will look somewhat like this: Now, I've written a custom BackButton view for this. When applying that view as leading navigation bar item, by doing:...
Farnesol asked 12/6, 2019 at 22:58

5

Solved

In SwiftUI, I'm trying to find a way to detect that a view is about to be removed only when using the default navigationBackButton. Then perform some action. Using onDisappear(perform:) acts like ...
Otiliaotina asked 15/1, 2020 at 5:40

0

Each toolbar applied to the NavigationView destination is in fact separate toolbar, and one toolbar is changing to another with opacity transition. How to keep one single toolbar or only ToolbarIte...
Wardieu asked 7/4, 2022 at 13:42

© 2022 - 2024 — McMap. All rights reserved.