SVGView icon indicating copy to clipboard operation
SVGView copied to clipboard

Code samples do not work in Xcode 15

Open tgunr opened this issue 1 year ago • 1 comments

Trying to use SVGView to create simple shape according to sample code.

   HStack {
    let circle = SVGCircle(cx: 30, cy: 30, r: 30)
    circle.fill = SVGColor.black  // Type '()' cannot conform to 'View'

tgunr avatar Mar 03 '24 15:03 tgunr

Same issue with view.getNode:

let view = SVGView(contentsOf: Bundle.main.url(forResource: "image", withExtension: "svg")!)
view.getNode(byId: "id-1")?.transform = CGAffineTransform(rotationAngle: 45 * .pi / 180)

sirajulm avatar May 20 '24 14:05 sirajulm