Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Replied In
How to set background color?
Here's how I'm doing it. You call .background and add a shape with a foreground color.Gray background:.background(Rectangle()
.foregroundColor(.gray))Rounded rect with drop shadow (Shadow color is in my xcassets and is just black at 15% opacity):.background(RoundedRectangle(cornerRadius: 8)
.foregroundColor(.white)
.shadow(color: Color("Shadow"), radius: 8, x: 0, y: 4))