79282432

Date: 2024-12-15 13:42:49
Score: 2
Natty:
Report link

Old thread, but since this thread shows up high in a Google search and since .resizable(resizingMode: .tile) won't work with system symbols, starting with iOS 15 we can do the following:

struct ContentView: View {
    var body: some View {
        Rectangle()
            .foregroundStyle(.image(
                Image(systemName: "questionmark.circle")
            ))
            .font(.system(size: 50))
    }
}

Background of tiled image with system symbol Full credit to this blog post I've found: https://fatbobman.com/en/posts/how-to-tile-images-in-swiftui/

Reasons:
  • Blacklisted phrase (1): this blog
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sebastian