Open akiroz opened 6 years ago
The built-in init for using named colors from the asset catalog is overwritten by the extension here: https://github.com/mchoe/SwiftSVG/blob/c5a6d75ccd4a1ae7af764bf96eaa6d341d4f2d44/SwiftSVG/SVG/Helpers/UIColor%2BExtensions.swift#L167 ref: https://developer.apple.com/documentation/uikit/uicolor/2877380-init
Same error, This method is too unprofessional
And I think it's the cause of this crash for me, asset is definitely present:
The built-in init for using named colors from the asset catalog is overwritten by the extension here: https://github.com/mchoe/SwiftSVG/blob/c5a6d75ccd4a1ae7af764bf96eaa6d341d4f2d44/SwiftSVG/SVG/Helpers/UIColor%2BExtensions.swift#L167 ref: https://developer.apple.com/documentation/uikit/uicolor/2877380-init