|
This used to work, but as of iOS14 beta 5, there is a white space behind the "cells". Any idea how to get rid of the white space?
|
|
Interesting. If you change "List" to "Scrollview", it looks like it should (and you can get rid of the UITableView items. But is that the best way to do it? |
|
...
... |
GO FURTHER, FASTER Unleash your full potential as a Swift developer with the all-new Swift Career Accelerator: the most comprehensive, career-transforming learning resource ever created for iOS development. Whether you’re just starting out, looking to land your first job, or aiming to become a lead developer, this program offers everything you need to level up – from mastering Swift’s latest features to conquering interview questions and building robust portfolios. Sponsor Hacking with Swift and reach the world's largest Swift community! |
|
|
|
|
|
Then in my View body I have this inside a ZStack (for a background image) inside GeometryReader and it works.
I do seem to need to interfere with both TV and TVCell appearances for success. However, change the list to dynamic from an array - .... struct AnItem with id: UUID and descr: String and it all goes white again. :-(
I hope it helps. I'm still digging but it does feel like List is a tad iffy, in this respect, in XCode 12.0.1 and iOS 14.0.1 |
|
FWIW: I'm working on converting my UIKit app to SwiftUI and have been banging my head against this problem for days. The Regardless of what combinations of different solutions I attempt, it seems like there's no way to make the |
|
I've gotten this to work (for now). I'll update as I make progress on my
(And, no, my app isn't really using a red background!) |
|
How to do in SwiftUI 2.0?:
Background is still white. |
|
Got it working, even though people say in iOS 14 List doesn't use UITableView this was the missing piece:
Anyone knows how to hide or make separator full width (now it appears with left padding)? |
|
Looks like the problem of a
And there is no way to not use the color scheme or provide a custom implementation. Correct me about the last statement if I'm wrong. |
TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and more!
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.