You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem only appears in iOS 13, it works fine in iOS 12.
When an image is created via FontAwesomeKit and then assigned to a UIButton, it creates another call to viewDidLayoutSubviews which results in an infinite loop and finally an app crash.
The following example illustrates the problem:
class ViewController: UIViewController {
@IBOutlet weak var button: UIButton!
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
let fakImage = FAKFontAwesome.addressBookOIcon(withSize: 30)
let image = fakImage?.image(with: CGSize(width: 30, height: 30))
// This works fine
// button.setImage(UIImage.add, for: .normal)
// But this fails
button.setImage(image, for: .normal)
}
}
System images or images loaded from files are working fine.
The text was updated successfully, but these errors were encountered:
The problem only appears in iOS 13, it works fine in iOS 12.
When an image is created via FontAwesomeKit and then assigned to a UIButton, it creates another call to viewDidLayoutSubviews which results in an infinite loop and finally an app crash.
The following example illustrates the problem:
System images or images loaded from files are working fine.
The text was updated successfully, but these errors were encountered: