Post #827311
2026-03-27 10:22 UTC
There's no system BackgroundStyle that abstracts the typical use case of a white box on systemGroupedBackground and a light gray box on a black background in dark mode, right (the way List does it for its rows)? My current solution is a custom ShapeStyle. #SwiftUI
Replies (1)
-
@alpennec@iosdev.space 2026-03-27 16:35
@nicoreese@mastodon.social I think I use UIKit colors for this use case, this way: Color(uiColor: .secondarySystemGroupedBackground) I wish it was possible without having to use the UIKit colors but so far I haven’t found a way… Let me know if you find one please! Documentation: https://developer.apple.com/documentation/uikit/uicolor/secondarysystemgroupedbackground