Open AlexMcX opened 4 years ago
Description of the Issue Fatal error: Unexpectedly found nil while unwrapping an Optional value: file ~Pods/SwiftSVG/SwiftSVG/SVG/Helpers/UIColor+Extensions.swift, line 176
Sample SVG https://static.openfintech.io/payment_methods/piastrix/icon.svg
FIX internal convenience init?(svgString: String) {
internal convenience init?(svgString: String) {
if svgString.hasPrefix("#") {` self.init(hexString: svgString)` return` } if svgString.hasPrefix("rgba") { self.init(rgbaString: svgString) return } if svgString.hasPrefix("rgb") { self.init(rgbString: svgString) return } self.init(cssName: svgString) }
me too
Description of the Issue Fatal error: Unexpectedly found nil while unwrapping an Optional value: file ~Pods/SwiftSVG/SwiftSVG/SVG/Helpers/UIColor+Extensions.swift, line 176
Sample SVG https://static.openfintech.io/payment_methods/piastrix/icon.svg
FIX
internal convenience init?(svgString: String) {