Posts

Post not yet marked as solved
4 Replies
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))