2

I have added custom target as a framework to use in my codebase. I can't see image in preview canvas. When I run in simulator, image is there.

enter image description here enter image description here

VStack(alignment: .leading) {
        Text("Hello World")
        Image("icon_star")
        .resizable()
        .renderingMode(.original)
        .frame(width: 14, height: 14)

    }.background(Color.white)

Any suggestion

Thanks

selcuk
  • 73
  • 1
  • 10
  • What file type is the image? I ran this in xcode 11.5 with a sample png file and it worked. – Ben O Jun 04 '20 at 06:15
  • I tried png, pdf. I created a custom framework and added to project. then started failing. – selcuk Jun 04 '20 at 06:19
  • Possibly try updating Xcode to the newest version because maybe that’s the problem? Updating fixed a different bug for me. – Ben O Jun 04 '20 at 13:33

0 Answers0