Skip to main content

All Questions

0 votes
1 answer
374 views

List row separator not hiding when using another view on top

I am using a package that hides the list view separator for iOS 14. https://github.com/SchmidtyApps/SwiftUIListSeparator Whenever I add another view on top of the List, like a simple Divider(), the ...
dhaval123's user avatar
2 votes
1 answer
1k views

How to add background color to the list view of bottom safe area SwiftUI iOS 14

I'm trying to add background color to the bottom safe area with list view. I know how to add background color to the list cell, but it doesn't apply to the safe area. Is there any possible way? Note: ...
user12208004's user avatar
  • 1,996
5 votes
1 answer
966 views

Strange UI rendering problem on iOS 14 when a button is placed on a section header/footer

In the following sample code, a button is placed on a (form-) section header, which will toggle a sheet whenever it is pressed. The sheet has a list of elements to show. import SwiftUI struct ...
Khashayar's user avatar
  • 478
0 votes
2 answers
550 views

Hide List arrow iOS14 - Xcode 12

I have a list in iOS 14 / Xcode 12 Im using the following/tried the following to hide the little arrows in the corner: .listRowInsets(EdgeInsets()) .background(Color.white) .listStyle(PlainListStyle())...
Gurmukh Singh's user avatar
4 votes
1 answer
2k views

SwiftUI disable list border iOS 14 [duplicate]

I found the list in SwiftUI iOS 14 will have something like border if the view contained navigationView. Is there any solution to disable the border? Coz the border break the design of my application. ...
SAS231's user avatar
  • 185
2 votes
3 answers
5k views

SwiftUI 2 clear background for list section header

SwiftUI 2 broke a part of my app that relied on a clear background for a List section header. Previously I relied on this line to make the list sections clear. Does anyone know how to accomplish this ...
Ebby Amir's user avatar
29 votes
1 answer
7k views

SwiftUI iOS14 - NavigationView + List - Won't fill space

I'm having an issues with a List inside a NavigationView since iOS 14 update. Here is a simple breakdown of the code - I've striped everything that doesn't show the issue struct ContentView: View { ...
swift--help's user avatar
1 vote
0 answers
275 views

How do I move list items between sections in SwiftUI while adding the new section and removing the old

I have a dataset(each piece has a string and an int) that I'm breaking into sections in a SwiftUI list. When the user enters the search field, I want to completely change the sections in the list, but ...
Austin E's user avatar
  • 843
20 votes
2 answers
6k views

iOS 14 Widgets: Widget not rendering when list is used [duplicate]

I'm experimenting with iOS 14 widgets and have a weird issue. My widget is not loading when I'm using a List in the widget view. If I'm using HStack, VStack etc. all works ok. Here is some simple code ...
chnski's user avatar
  • 597
57 votes
4 answers
15k views

SwiftUI Section header - use non uppercase?

Creating a List as follows: struct ContentView: View { var body: some View { List { Section(header: Text("Header")) { Text("Row 1") ...
Ashley Mills's user avatar
  • 53.3k