All Questions
144 questions
1
vote
0
answers
91
views
toolbar(.hidden) not working when navigate while searching is active
Well Im just creating a personal project and then I face this bug. My navigation looks like this, if you compile the code and then try to navigate while you are not searching the .toolbar(.hidden) is ...
2
votes
2
answers
44
views
Using a single member of an array in both a bound and unbound way in ForEach in SwiftUI without using indices
Apologies because I'm new to SwiftUI -
I have a class (Meal) that contains an array of objects of another class (Food). What I'm trying to achieve here is to be able to add foods and have that update ...
1
vote
1
answer
37
views
How to make a custom cell/row menu clickable (3 dots at top right) in a List with NavigationLink
I am trying to show popover when user click on custom cell/row menu in List. But every time the cell get the action and navigating to inside the details screen. Here is my code snippet. Also attached ...
0
votes
0
answers
35
views
Pass data to next view using Binding<T?>
I need some help from my colleagues because I can't handle it on my own. I am stuck.
I have a database on Firebase with training programs in it. ProgramsID loads the list of trainings. Here's how the ...
0
votes
0
answers
89
views
SwiftUI NavigationTitle jumps down in detail view when using searchable list in NavigationView
I am working on a Swift project for iOS 17.0 or newer using SwiftUI in Xcode Version 15.4
I have three views:
View 1: Contains a NavigationView that navigates to View 2.
NavigationView{
...
0
votes
0
answers
21
views
swiftui How can I get the NavigationLink to fire once if there are 2 navigation links in a cell [duplicate]
I am recently learning the new navigation workflow and am encountering an issue . I have a cell that sometimes contains a fullname and a place/location name . If I click on the fullname then I want to ...
1
vote
1
answer
981
views
Remove SwiftUI NavigationLink arrow when in a List
I currently have a view like this:
The blue icon is currently a Button which is set to show a sheet. I want to change this sheet to a completely separate view, so I understand I will need to change ...
-2
votes
1
answer
255
views
Passing data through Navigationlink with custom views - SwiftUI
Im trying to pass two kinds of different JSON data in an app with two different views in two navigationlinks, what works
One custom view which with the name LaundryList that gets passed in the ...
1
vote
1
answer
384
views
Dismissing multiple views within navigation stack
I have stacked multiple view via NavigationLink within a list. My app code is complex, so I have tried to simplify it as much as I could.
Let's say I have a button "Click Me" in one of the ...
1
vote
0
answers
373
views
How to add a searchable textfield at the middle of the screen in SwiftUI? ( not at the top )
I would like to make the textfield below "Add Party Members" to be searchable. Upon googling and reading through the documentation , learned that a .searchable modifier exists but the ...
2
votes
0
answers
266
views
NavigationLink selection issue inside a NavigationSplitView sidebar list
I have a macOS/iOS application consisting of a three column NavigationSplitView. In the sidebar I have a list of 50-60 rows each one being a NavigationLink.
Selecting a row, scrolling until the ...
7
votes
1
answer
3k
views
swiftui how to remove chevron on navigation link list in 2023?
Is there a cleaner solution different by this answer and this answerto remove those chevrons on lists? Maybe today apple improved it (even not using navigationStack) the kind of issue.
I know there ...
0
votes
0
answers
231
views
SwiftUI - Conflicting arguments to generic parameter in List and ForEach
I'm encountering conflicting arguments to generic parameter errors in SwiftUI, specifically in the List and ForEach components. Below is a simplified version of my code:
// SeasonDetailsView.swift
...
0
votes
1
answer
103
views
Swift UI : Create different links in a list
I'm a beginner developper, I created a list and I'm looking for to create different links according to items on my list.
Here is an example of my list :
import SwiftUI
struct Categorykata: View {
...
2
votes
1
answer
2k
views
SwiftUI NaviagtionLink Arrows
I have the problem that the arrows are always shown with. i have tried things like .buttonsytel(PlainButtonStyle()) or similar. Also with .frame(0).opacity(0), or .hidden, but nothing was displayed. ...