How to turn off NavigationLink overlay color in SwiftUI?

后端 未结 2 1186
花落未央
花落未央 2021-02-19 01:22

I\'ve designed a \"CardView\" using ZStack in which the background layer is a gradient and the foreground layer is a PNG(or PDF) image(the image is a yellow path(like a circle)

2条回答
  •  时光取名叫无心
    2021-02-19 02:10

    Try:

    Image("someColoredPathPNGimage").renderingMode(.original)
    

    If your problems continue, consider uploading a screenshot so we get an idea of what you mean. If you can include the image you are using, even better, so we can replicate.

提交回复
热议问题