Linked Questions

16 votes
1 answer
17k views

SwiftUI List Background color [duplicate]

I am trying on setting a view background color to black with the following code struct RuleList: View {[![enter image description here][1]][1] private var presenter: ConfigurationPresenter? @...
trusk's user avatar
  • 1,701
1 vote
1 answer
2k views

Swift UI Overlay a list to a background color

I just want to set a Color as background color to my list. Can't find anything that work, It looks like is not possible, I don't want to change every single color of my row. Any tips how to do it? ...
Damiano Miazzi's user avatar
2 votes
1 answer
2k views

Background image for ContentView (SwiftUI) not subviews but with proper scrolling behavior

How do we get a background image for the ContentView but not its subviews AND retain the behavior of scrollable content disappearing under the NavBar? I found that if I added the background as a ...
Steve Robertson's user avatar
1 vote
1 answer
735 views

SwiftUI: SearchBar moving out of bound when the List is too long

I've implemented a search bar in my app inside a custom header. Beneath the search bar I have added a false List with 100 rows that is intended to show search results. The problem that I'm facing is: ...
Praduyt Sen's user avatar
-3 votes
1 answer
707 views

List in SwiftUI not applying background color

I have a list in a sheet I'm presenting and I can't seem to set the background color on it. I can verify it's the list itself (rather than something to do with the background color of the sheet). If I ...
csm232s's user avatar
  • 1,660
1 vote
1 answer
529 views

How to change Background Color of a View containing a List back to White in SwiftUI

I am currently working with Lists in SwiftUI. Problem: A default View in SwiftUI has a white background Color. However, when adding a List to it, the Background Color changes to systemGray6 while the ...
christophriepe's user avatar
2 votes
2 answers
567 views

Why background color of List is different while presenting view in SwiftUI?

I am implementing List in Presented view (AddItemView). I want background color same as List in any view. struct HomeView: View { @State private var showAddItemView: Bool = false var body: ...
Jay Patel's user avatar
  • 2,740
0 votes
0 answers
696 views

SwifUI - How to remove list row background color for card style

I made a card style List row which work fine. The issue is that the list row background color remains. I can make it disappear by setting it to systemGray6 but it's not very adaptive for dark mode and ...
AvsBest's user avatar
  • 635
0 votes
3 answers
350 views

How can I change the background color in SwiftUI when I am using NavigationView and List?

I would like to change my background color, but I am using NavigationView and List. That's why the ZStack method doesn't work for me. This is my Code: NavigationView { List { Text("Some ...
Mattis Schulte's user avatar
0 votes
0 answers
110 views

I applied .onAppear () {UITableView.appearance (). BackgroundColor = UIColor.clear}, but it doesn't make the screen transparent

** Hello everybody. i applied the above indicator, but the image but i still see only about half screen. the bottom remains gray. I applied ".onAppear () { UITableView.appearance (). ...
Francesco5177's user avatar