I'm trying to display my apps icon within my app and it's not working. It displays a blank space instead and I don't understand why this is happening.
I tried creating a new image (just a normal image, not an 'App Icon' image set) and have this code:
Image("AppIcon")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 48)
.cornerRadius(10)
.overlay(
RoundedRectangle(cornerRadius: 10)
.stroke(Color.black.opacity(0.1), lineWidth: 1)
)
For some strange reason it's not displaying that either. The image name is correct. It's showing a blank white box.