Questions tagged [swiftui-navigationview]

For questions about NavigationView - a view in Apple's SwiftUI framework that presents a stack of views representing a visible path in a navigation hierarchy. When using this tag also include the more generic [swiftui] tag where possible.

Links:

583 questions
-1
votes
1 answer

Swift UI Navigation Link not working with tap gesture

I am having an issue with a navigation link with a tap gesture in Swift UI. What happens is that once I tap the navigation link, the code works fine, my function on the tap gesture adds the item to the cart and I get redirected to the NavLink…
-1
votes
1 answer

How can I remove duplicate elements from a list in SwiftUI

I can't put the categories variable anywhere in ConsoleList as I always get an error. I get: "Value of type '[AnyHashable : Any]' has no member 'category'" import Foundation let imgName: String = "" let consoleName: String = "" let description:…
-1
votes
1 answer

Declare View Name for NavigationView but don't show it swift

I have a view that uses a NavigationLink to navigate to another view. Normally, if the first view has a NavigationTitle, then the back button for the second will show the name. However, I don't want to show a NavigationTitle in the first view. Is…
user18457910
-1
votes
1 answer

How to change the display every hour in Swift UI like the Starbucks Coffee app

enter image description here I want the Swift UI to display in the Navigation View at specified times like the Starbucks app ("good morning" at 5:00, "good afternoon" at 12:00, "good night" at 17:00). please tell me.
T-BM
  • 3
  • 3
-1
votes
1 answer

How to set up SwiftUI toolbar to display in the center of the view

I am experimenting with SwiftUI ToolbarItem in various positions in my view, such as in bottomBar and navigation. I am wondering if it is possible to center the ToolBarItem vertically in the view, as opposed to the top or bottom. When setting up the…
-1
votes
1 answer

Keyboard not overlaying the view in SwiftUI

So i want my keyboard to overlay the view so that the view stays and not going upwards. i did several variations such as adding it in my loginstuff, or adding in it navigationView. it doesn't work at all Here's my code struct LoginView: View { …
Farhandika
  • 437
  • 1
  • 3
  • 16
-2
votes
0 answers

A new orientation transaction token is being requested while a valid one already exists

I'm encountering an error when clicking TextField and dismissing the view. 2023-08-03 20:00:52.380626+0300 KFCApp[1987:23563] [Assert] A new orientation transaction token is being requested while a valid one already exists. reason=Fullscreen…
-2
votes
1 answer

Too many Back buttons swiftUI

I am making a app and there are too many back buttons in my navigation view Arabic is at the bottom They are all in the same navigation view Please help NavigationView { List { NavigationLink("Arabic"){ Arabic() } …
-2
votes
2 answers

Navigation View Formatting Trouble

I'm a newbie, using XCode 13.0 to create a very basic app that needs to have a Settings view. I'd like to navigate to the Settings view on tapping a label. To do that, it seemed sensible to use a NavigationView with a NavigationLink. Unfortunately,…
RudyF
  • 805
  • 1
  • 10
  • 16
-2
votes
1 answer

Getting "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions"

Currently I'm learning SwiftUI and there's a problem which I am facing. Compiler is unable to type check the expression. It all started when I added Text(update.date). Also, Update is the structure which I have created where one of the data members…
-3
votes
1 answer

Does anyone know what this stack is called SwfitUI?

I'll keep it quick: Does anyone know if SwiftUI have a built in method that renders something like this image: where the view just changes based on what label you tap? I wonder if it's possible to achieve this using some sort of navigation view or…
alex
  • 118
  • 1
  • 6
-3
votes
1 answer

How did Apple create the navigation view in this modal?

In iOS Settings > Music > Apple Music and Privacy, there is a modal that I've mostly successfully duplicated except in two ways (a brief demo of Apple's modal is here). First, I don't know how to duplicate the bullet points seen in the beginning of…
Alex
  • 11
  • 1
1 2 3
38
39