SVGView
SVGView copied to clipboard
Text is not displayed on the SVGView
My Code here:
import SwiftUI
import SVGView
struct ContentView: View {
@State private var data: Data?
var body: some View {
if let data {
SVGView(data: data)
} else {
Color.black.opacity(0.001)
.task {
if let (data, _) = try? await URLSession.shared.data(from: URL(string: "https://img.shields.io/cocoapods/l/SVGView.svg?style=flat")!) {
self.data = data
}
}
}
}
}
I use the one in your README.md file, and this is( I guess ) a SVG, but SVGView can only show the background but no text on it.