DEV Community

Discussion on: Empty List placeholder. SwiftUI

Collapse
 
kassi profile image
Karsten Silkenbäumer

I made the same mistake at first: Placing if/else and either show placeholder or List won't work anymore as soon as you make the list "searchable". If you start typing and nothing is found, no way of correcting your input because: no list, no search text field. So better not hide the list.
I came here on my search to find a way to set the background of the area the empty list occupies (sounds silly, but it's like that).