FluentDarkModeKit icon indicating copy to clipboard operation
FluentDarkModeKit copied to clipboard

DMDynamicImageProxy may crash when proxying resizable Image

Open linlinyao1 opened this issue 5 years ago • 2 comments

(UIImage *)resizableImageWithCapInsets:(UIEdgeInsets)capInsets resizingMode:(UIImageResizingMode)resizingMode returns _UIResizableImage, and when using DMDynamicImageProxy as _UIResizableImage in a UIButton, it tries to access to image's ivar which is not aligned with DMDynamicImageProxy class

linlinyao1 avatar Mar 04 '20 12:03 linlinyao1

change DMDynamicImageProxy from NSProxy to NSObject solve this problem

linlinyao1 avatar Mar 04 '20 13:03 linlinyao1

@imWildCat @linlinyao1 do you still have sample codes that can reproduce it?

levinli303 avatar Aug 31 '20 06:08 levinli303

Closing as there is no sample code provided.

levinli303 avatar Oct 19 '22 02:10 levinli303