kasketis / netfox

A lightweight, one line setup, iOS / OSX network debugging library! 🦊
MIT License
3.67k stars 374 forks source link

Can't load image from netfox version 1.15.1 #175

Closed anhhtchy closed 2 years ago

anhhtchy commented 5 years ago

when I create UIImage, If I use netfox version 1.15.0, the image is shown. If I use netfox version > 1.15.0, image don't show. UIImage(named: "bubbleTailLeft", in: Bundle.bundleName, compatibleWith: nil)?.resizableImage(withCapInsets: UIEdgeInsets(top: 17, left: 21, bottom: 17, right: 21), resizingMode: .stretch).withRenderingMode(.alwaysTemplate)

juliensagot commented 4 years ago

We have the same issue in our project. The method swizzling in the swizzleProtocolSetter function in NFXHelper.swift file may be the root cause of this particular issue.

vGubriienko commented 2 years ago

@anhhtchy I've tried with provided code (only replaced Bundle.bundleName with Bundle.main and stored image in assets catalog) and everything is work fine on the latest version.