Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code samples do not work in Xcode 15 #60

Open
tgunr opened this issue Mar 3, 2024 · 1 comment
Open

Code samples do not work in Xcode 15 #60

tgunr opened this issue Mar 3, 2024 · 1 comment

Comments

@tgunr
Copy link

tgunr commented Mar 3, 2024

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'
@sirajulm
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants