• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: iOS 16 SwiftUI List Background

Resolved: iOS 16 SwiftUI List Background

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

With the new SwiftUI update in iOS 16 List no longer depends on UITableView. So the following snippet we used to set the List background color to .clear is now useless:
I saw that someone used introspect to solve the problem, but does anyone know of another maybe cleaner way to achieve the same behavior?
Also note that on macOS, the following works fine (Tested using Xcode 14 beta & macOS Ventura):

Answer:

iOS 16


Now they use UICollectionView for backend, so an updated workaround is to change corresponding background colors:
demo
Main part:
Test module on GitHub

If you have better answer, please add a comment about this, thank you!

ios16 swift swiftui
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How to make statement case insensitive when uploading a dta file with specified columns?

27/03/2023

Resolved: Sort dataframe columns value by close it to another column

27/03/2023

Resolved: PostgreSQL resample 1 minute OHLCV candle data into 5 minute OHLCV candle data

27/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.