1
1
mirror of https://github.com/exyte/Macaw.git synced 2024-09-11 13:15:35 +03:00

Add 'transparent' value handling to SVG parser

This commit is contained in:
Yuriy Kashnikov 2017-09-07 16:46:25 +03:00
parent 87e199ecfa
commit d140291208

View File

@ -372,7 +372,7 @@ open class SVGParser {
guard let fillColor = styleParts["fill"] else {
return Color.black
}
if fillColor == "none" {
if fillColor == "none" || fillColor == "transparent" {
return .none
}
var opacity: Double = 1