79367149

Date: 2025-01-18 12:43:24
Score: 0.5
Natty:
Report link

A very simple solution that works with dynamic type: overlay your icon over another icon, e.g. a circle.

You can create a helper component to make this easier:

struct Icon: View {
    var name: String

    var body: some View {
        Image(systemName: "circle")
            .opacity(0)
            .overlay {
                Image(systemName: name)
            }
    }
}

preview of Icon component in use

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Alexander Sandberg