79192196

Date: 2024-11-15 11:39:52
Score: 1.5
Natty:
Report link

You can achieve this effect by applying the .inner shadow modifier directly to your foreground style.

Example:

Image(systemName: "heart.fill")
  .font(.system(size: 64, weight: .semibold))
  .foregroundStyle(
    .white
    .shadow(
      .inner(color: .black, radius: 3)
    )
  )

Resulting SwiftUI View

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: VladislavSmolyanoy