Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

Questions tagged [swiftui-list]

For questions about List - a component in Apple's SwiftUI framework that presents rows of data arranged in a single column. When using this tag also include the more generic [swiftui] tag where possible.

swiftui-list
1 vote
0 answers
24 views

RTL language issue in SwiftUI

I have issue in SwiftUI with Right to Left Languages (Arabic) The navigation bar is correct, but check the list row and text editor, its flipped to the left edge, which it must be in the right edge in ...
user13474651's user avatar
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 ...
user1591668's user avatar
  • 2,811
0 votes
0 answers
89 views

RTL flow in SwiftUI [closed]

I have issue in SwiftUI with Right to Left Languages (Arabic) The navigation bar is correct, but check the list row and text editor, its flipped to the left edge, which it must be in the right edge in ...
user13474651's user avatar
1 vote
1 answer
32 views

SwiftUI enable scrolling of List inside a disabled ScrollView

I have a List inside a ScrollView that is scroll disabled. The List also disables and cannot be enabled. I need the ScrollView to not scroll by drag gesture. Is there a way to allow the List to scroll ...
Cyklist's user avatar
  • 59
-1 votes
0 answers
22 views

UI Freeze in SwiftUI Home View with Conditional Icon Display in LazyVGrid

I created a simple Home view that uses a LazyVGrid to display all my playlists. The UI freezes when I use an if-else statement or a switch to display different icons for the “delete mode,” “normal ...
Damiano Miazzi's user avatar
1 vote
1 answer
118 views

Place elements leading and trailing of list rows

I want to achieve the following behavior. I need a list, but each row can have a leading and a trailing element. I tried to do it using overlay, but the List Row cuts off the overlay. Here is an ...
Andre's user avatar
  • 11
1 vote
0 answers
19 views

Rounded borders on selection of PlainListStyle() in SwiftUI macOS

I try to get rid of the paddings in a List on SwiftUI. I tried some different ways like using negative paddings or negative EdgeInsets: struct ListView: View { @State var selection = 0 ...
Lupurus's user avatar
  • 4,049
0 votes
0 answers
40 views

How can I get the listRowInsets to create seamless edges in keeping with the rest of a form?

I am trying to make create a view which incorporates a button and a picker in a HStack to eventually be placed inside a form. I would like the button to seamlessly blend with the edges of the list row ...
miothethis's user avatar
0 votes
2 answers
50 views

SwiftUI List selection behaviour Preview vs Simulator

I am having trouble understanding why SwiftUI list selection behaviour is different between the Previews and the actual app running when pushing a detail view. Here is the app view import SwiftUI @...
crashoverride777's user avatar
0 votes
1 answer
37 views

How can I detect the bottom of SwiftUI List?

I am trying to detect when user scrolls to bottom of the List. I have adapted this excellent solution answered here but this works only when there is a VStack inside a List. In my case, I have simple ...
Master AgentX's user avatar
0 votes
2 answers
118 views

SwiftUI - Allow List to Show All Rows in ScrollView

In the app I'm working on I have a details view that uses ScrollView to display a bunch of information. I want to use a List inside that ScrollView to display some specific data. However, you can't ...
Jordan Herget's user avatar
-2 votes
1 answer
135 views

How do I implement infinite up scrolling in SwiftUI?

I am try to implement a chat feature, I am implementing it with a lazyVStack inside a scrollView where the most current message is at the bottom and the user scrolls up to get older messages (standard ...
Travis's user avatar
  • 1
0 votes
1 answer
59 views

SwiftUI NavigationSplitView title appearing as inline instead of large title unless scrolled

I discovered a really weird issue with the title on the sidebar on iPads. I've set the navigationBarTitleDisplayMode to .large, but on first load (right after I run the app on the simulator), the ...
Cris Denopol's user avatar
0 votes
0 answers
54 views

How to change size of scroll content background of List in Swiftui? [duplicate]

I am newbie in Swift and I have a problem. My app has 2 Lists, problem is the scroll content background creates too much space (red part in image attached), so the distance of 2 lists is so far. How ...
Jacky's user avatar
  • 132
1 vote
1 answer
53 views

SwiftUI List View not updating when (updating before) published property data is retrieved from Firestore

I've seen many similar questions posted, but none yet seemed to provide a solution to my version of the problem. Simply put, a ForEach List view is not updating (or more accurately I suspect is ...
Phil's user avatar
  • 69

15 30 50 per page
1
2 3 4 5
87