616 questions
1
vote
2
answers
73
views
in navigationDestination(item:destination), what is the best to way to convert item into a binding
In my app, I have:
.navigationDestination(item: self.$selectedProject) { selectedProject in
ProjectView(project: Binding<Project>(
get: { selectedProject },
set: { self....
1
vote
1
answer
82
views
SwiftUI MapKit breaks the custom navigation bar
When I use non-deprecated Map() functions, it breaks the custom navigation bar and displays the system's default navigation bar instead. I haven’t been able to find a solution to this issue anywhere.
...
0
votes
0
answers
74
views
strange line when putting scrollview inside of NavigationView- SwiftUI MacOS
If i have the following code in a SwiftUI view:
NavigationView {
NavigationLink(destination: ScrollView{}, label: {
Text("Thing")
})
}
It creates this ...
1
vote
0
answers
106
views
How to create a Navigation Bar with a title, "Done" button and Segmented Picker in SwiftUI?
I'm trying to replicate a UI similar to the one in the Safari app on iOS (as shown in the attached image) using SwiftUI. The navigation bar includes:
A dynamic title based on the selected segmented ...
0
votes
0
answers
44
views
Keyboard toolbar doesn't show up on second tab
In my iOS (18.1) application I need fields with non standard behavior and formatting to enter decimal numbers.
To achieve this, I decided to create a custom text field that utilizes the numeric keypad ...
1
vote
1
answer
193
views
SwiftUI .refreshable default progressView not shown if parentView has .navigationBarTitleDisplayMode(.large)
I have a strange problem. I have a view with a list and I add the .refreshable to it to load data. The data was loaded, but the default progressView of the pull-to-refresh was not appearing.
I load ...
3
votes
1
answer
229
views
Difference Between navigationBarTitle and toolbarTitle in SwiftUI
What is the difference between ①navigationBarTitleDisplayMode and ②toolbarTitleDisplayMode when using them with SwiftUI’s navigationTitle?
It appears that .inlineLarge only works with the latter (②), ...
0
votes
2
answers
103
views
SwiftUI change list value with enum associated values and arrays on different view using Navigation link
I have been unable to solve the problem for several days. There is a data type that includes an array with an enum. I want to зфыы the data to another view for editing. But can't understand how to ...
2
votes
1
answer
127
views
Different Nav Bar Appearances for different tabs in TabView in SwiftUI
I've got a TabView which hosts 3 tabs (Liabilities, In/Out, and Assets). Each tab has a NavigationView in it. I want to have a different Nav Bar Appearance for each (red themed for Liabilities, white ...
1
vote
0
answers
65
views
SwiftUI: Close popover sheet return me to unexpected destination
I am developing an ios app using swift.I am on xcode 15.3 now
I have a problem with NavigationView
Let's say my app have 2 pages (page A,page B) and a popover sheet C
I wrapped my whole app with ...
0
votes
0
answers
29
views
Swift NavigationLink fails when more than 2
The below contentview locks after clicking on any button. Each of the funcs are the same format as TextView at the bottom of the code. This makes no sense and I have been unable to find any relation ...
1
vote
1
answer
424
views
how do i render a custom back button when using .fullscreencover to present a full screen modal view
i am learning about swiftUI navigation stack, i am trying to implement a custom back button when presenting a view using .fullscreencover, but i am stuck trying to render the back button.
import ...
1
vote
2
answers
353
views
SwiftUI Loader Not Covering Navigation Bar in UIKit Navigation Setup
I'm encountering an issue when trying to present a loader over my views. The loader fails to cover the navigation, allowing users to interact with the navigation elements, such as tapping the back ...
0
votes
2
answers
658
views
How to hide the divider line below the navigation bar?
I need to remove the Divider below the NavigationView, this is happening when I am set .listStyle(.plain) because I need to provide manual insets for the List. I have also tried with embedding List ...
0
votes
1
answer
64
views
UI alignment: Split views into 4 part and align subviews in it
I am making view not scrollable by splitting it different parts, like 0.1, 0.4, 0.4, 0.1
Here, we are facing the issue while adding the subviews to each part.
The first view starts from the top, but ...
1
vote
0
answers
37
views
NavigationView extra spacing
In the code below you can see the ChestView on my workout app, in which I want to display Chest workouts after selecting the Chest Workouts option on the previous NavigationStack page. My goal is to ...
0
votes
1
answer
107
views
SwiftUI How to change page from different list cell?
I listened by @sonle to using NavigationStack.
I think something is going wrong.
It does navigate but not like my expecting to destination to Travel Detail.
It looks like this.
NavigationLink(...
0
votes
0
answers
300
views
SwiftUI multiple NavigationView
Hello I am new to SwiftUI,
I have two navigationStack one is in parent and one is in childview,
now i have to use parent navigationStack from child but if i is use navigationlink in child view it ...
0
votes
1
answer
1k
views
Navigation in Swift with SwiftUI
I am a newbie in swift development with iOS. Currently I have started a project in Swift with SwiftUI that has different hierarchies of views. There are different switches between the views. I have ...
1
vote
1
answer
625
views
Setting sidebar width constraints in visionOS NavigationView
I'm aware it's possible to manipulate sidebar width for a NavigationSplitView like this.-
NavigationSplitView {
Text("Sidebar")
.navigationSplitViewColumnWidth(min: 100, ideal: ...
2
votes
1
answer
1k
views
accessibilityViewIsModal in swiftUI
I've used accessibilityViewIsModal - true in UIKit where I need to shift accessibility focus from one view to another subview. How to use accessibilityViewIsModal in swiftUI?
I've tried following ...
0
votes
1
answer
199
views
NavigationLink inside TabView stops working
I have a view (NewGameView) with a NavigationLink to a different view (LoadView). In this second one there is a Button that closes the view, going back to the first one. This works wonderfully, until ...
0
votes
1
answer
88
views
Geometry View Embeded inside NavigationView
I have been designing this view according to this YouTube video https://youtu.be/ytRim2TSdyY?list=PLyJ4OqMEvBQwxJGWIdV6y0VbeKVGkDbCT, with some little difference :
This view comes under the ...
2
votes
1
answer
3k
views
SwiftUI popover from navigationView toolbar
I want to create a custom speech bubble like menu in my navigation toolbar, which I’m going to use to toggle between different view options.
The design I’m looking for is pretty much exactly what ...
0
votes
0
answers
50
views
NavigationBarTitle and NavigationItems does not appear in simulator, only in preview
I'm pretty new to swift and xcode, but i'm stuck at this problem.
I have a view that contains a NavItems component, which is a custom "navbar" for the app. The issue is when i'm testing ...