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

SVG gradients #644

Closed
pballada opened this issue Nov 28, 2019 · 3 comments
Closed

SVG gradients #644

pballada opened this issue Nov 28, 2019 · 3 comments
Assignees
Labels
Milestone

Comments

@pballada
Copy link

As I understand there's still no support for parsing SVG gradients, right? I get a white circle instead.
This would be the expected result.

Screenshot 2019-11-28 at 15 06 26

<svg width="109" height="109" viewBox="0 0 109 109" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="54.5" cy="54.5" r="54.5" fill="url(#paint0_linear)"/> <defs> <linearGradient id="paint0_linear" x1="54.5" y1="0" x2="54.5" y2="109" gradientUnits="userSpaceOnUse"> <stop stop-color="#F01A1A"/> <stop offset="1" stop-color="#C4C4C4" stop-opacity="0"/> </linearGradient> </defs> </svg>

@amarunko
Copy link
Contributor

@mixmastertube can you try to use the master branch? Fix for gradients not in release yet.

@ystrot ystrot self-assigned this Nov 29, 2019
@ystrot ystrot added this to the 0.9.6 milestone Nov 29, 2019
@ystrot ystrot added the bug label Nov 29, 2019
@ystrot
Copy link
Member

ystrot commented Nov 29, 2019

This sample works fine in the master branch, closing this issue.

@ystrot ystrot closed this as completed Nov 29, 2019
@pballada
Copy link
Author

pballada commented Dec 2, 2019

How did you do it?
I did try and still not working, I still don't get any gradient.

My steps:

Step 1
Cloning the project to local (master branch selected)

Step 2
Editing the Podfile inside the Example folder to
pod 'Macaw', :git => 'https://github.com/exyte/Macaw.git', :branch => 'master'
just to be sure it's pointing to master branch.

Step 3
I change the svg inside the Assets folder tiger.svg to my svg, just to do a quick test.

I run the app and get a black circle instead of the expected gradient.

@ystrot ystrot modified the milestones: 0.9.6, 0.9.7 Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants