With something like Text("Hello, World!")
, how can I apply a soft dark text-shadow to it?
Something like this?
Text("Hello, World!")
.font(.system(size: 30))
.shadow(
color: Color.primary.opacity(0.3), /// shadow color
radius: 3, /// shadow radius
x: 0, /// x offset
y: 2 /// y offset
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With