microsoft / FluentDarkModeKit

A library for backporting Dark Mode in iOS
MIT License
1.63k stars 125 forks source link

Use image extension can be crash! #49

Closed richful closed 4 years ago

richful commented 4 years ago

when I try use UImage-dark in the demo, I receive a crash err. next the code

let lightImage = UIImage(named: "light")! let darkImage = UIImage(named: "dark")! let image = UIImage(.dm, light: lightImage, dark: darkImage)

can't find image ,the crash err is:

'+[UIImage dm_namespace:dm_imageWithLightImage:darkImage:]: unrecognized selector sent to class 0x7fff898bd368'

yangwei0401 commented 4 years ago

I have the same issue

li-bei commented 4 years ago

@richful @yangwei0401 Please use new version 0.4.0

anysome commented 4 years ago

Pod repo can't fetch 0.4.0

imWildCat commented 4 years ago

@anysome Thanks for reporting. This has been fixed now.