I am trying to display an image bundle inside a Swift Package.
This code let image = UIImage(named: "image", in: Bundle.module, compatibleWith: nil)
works when I use png
image. But when I use a svg
with the same name (image.svg), the image is nil
.
This is how I define the resource folder where I save the image in Package.swift
resources: [
.process("Resources"),
]