You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the Issue
Calling resizeToFit seems to ignore the viewBox specified in the svg image and use the "actual" size of the SVG contents (while ignoring the offset, leading to rendering potentially outside of the specified rect).
Sample SVG
Faulty rendering with resizeToFit: the green box is displayed outsider of the UIView, which has a grey background, see screenshot
Working as expected:
When the viewBox is filled with content, scaling seems to work as expected; all three boxes are scaled to match the size of the UIView containing the SVGLayer
Description of the Issue
Calling resizeToFit seems to ignore the viewBox specified in the svg image and use the "actual" size of the SVG contents (while ignoring the offset, leading to rendering potentially outside of the specified rect).
Sample SVG
Faulty rendering with resizeToFit: the green box is displayed outsider of the UIView, which has a grey background, see screenshot
Working as expected:
When the viewBox is filled with content, scaling seems to work as expected; all three boxes are scaled to match the size of the UIView containing the SVGLayer
.
The text was updated successfully, but these errors were encountered: