Questions tagged [ios-navigationview]

66 questions
0
votes
1 answer

SwiftUI: Hide Navigation Bar on Specific Screens

It seems as though I'm unable to choose which pages I want to hide the Navigation Bar on in swift UI. I have the following screens: Main struct Main: View { var body: some View { NavigationView { Home() } …
foxtrotuniform6969
  • 3,527
  • 7
  • 28
  • 54
0
votes
1 answer

Changing background of NavigationView's bar when presented modally

I can't figure out a way to set the navigation bar to be opaque black... All the related hacks don't seem to work if the navigation view is presented modally... This is how I present my webView: Button(action: { self.showFAQ.toggle()…
Mycroft Canner
  • 1,828
  • 1
  • 11
  • 24
0
votes
2 answers

Actionsheet in NavigationView seems have bug

I do some tests. If I just make a button like this: Button(action: { self.showActionSheet = true }) { Text("Click") }.actionSheet(isPresented: $showActionSheet) { ActionSheet(title: Text("This is a test")) } It works! But if I put it in…
0
votes
1 answer

How do I use a TabView with a NavigationView in SwiftUI?

I'm having the exact same issue like the person who posted this question: NavigationView doesn't display correctly when using TabView in SwiftUI Am I doing anything wrong or is it just a SwiftUI bug that'll be fixed?
SmushyTaco
  • 1,421
  • 2
  • 16
  • 32
0
votes
1 answer

Toggle a button on Navigation Bar in SwiftUI & have it change appearance

Using SwiftUI, I would like to have the ability to change the button on my NavigationView based upon some Bool value indicating if it should be On or Off. This would behave similar to how with UIKit you can replace a bar button item on either side…
CodeBender
  • 35,668
  • 12
  • 125
  • 132
0
votes
2 answers

How to have a List in SwiftUI able to point to multiple views based upon the row

A simple way to express this would be to go back to UITableView and have a didSelectRowAt(indexPath) function that behaved like this: if (indexPath.row == 0) { ... } else { ... } Where based upon the indexPath.row value, I can call a unique view…
CodeBender
  • 35,668
  • 12
  • 125
  • 132
1 2 3 4
5