Skip to content

Commit

Permalink
fix ios
Browse files Browse the repository at this point in the history
  • Loading branch information
susonthapa committed Sep 12, 2023
1 parent a1e0bd1 commit 8418fb5
Show file tree
Hide file tree
Showing 2 changed files with 5,789 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ios/SvgRenderer.swift
Expand Up @@ -26,7 +26,7 @@ class SvgRenderer: UIView {
}

func getRenderedUIImage(_ child: RNSVGSvgView) -> UIImage? {
return child.render(asUIImage: .init(x: 0, y: 0, width: .init(integerLiteral: props!.width), height: .init(integerLiteral: props!.height)))
return child.render(toUIImage: .init(x: 0, y: 0, width: .init(integerLiteral: props!.width), height: .init(integerLiteral: props!.height)))
}

override func addSubview(_ view: UIView) {
Expand Down

0 comments on commit 8418fb5

Please sign in to comment.