SwiftSVG icon indicating copy to clipboard operation
SwiftSVG copied to clipboard

UIColor built-in init(named:) overwritten by extension

Open akiroz opened this issue 5 years ago • 2 comments

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

akiroz avatar Jul 11 '18 03:07 akiroz

Same error, This method is too unprofessional

Paladinfeng avatar Jan 18 '19 10:01 Paladinfeng

And I think it's the cause of this crash for me, asset is definitely present: Screenshot 2019-07-11 at 11 39 42

Fallen-Zen avatar Jul 11 '19 09:07 Fallen-Zen