Closed Rspoon3 closed 2 years ago
Running the basic example from the README causes a crash.
System Info:
Reproduction steps:
import UIKit import FontAwesome class ViewController: UIViewController { let imageView = UIImageView() override func viewDidLoad() { super.viewDidLoad() imageView.translatesAutoresizingMaskIntoConstraints = false imageView.image = UIImage.fontAwesomeIcon(name: .github, style: .regular, textColor: .systemPurple, size: .init(width: 300, height: 300)) view.addSubview(imageView) NSLayoutConstraint.activate([ imageView.centerXAnchor.constraint(equalTo: view.centerXAnchor), imageView.centerYAnchor.constraint(equalTo: view.centerYAnchor), imageView.widthAnchor.constraint(equalToConstant: 400), imageView.heightAnchor.constraint(equalToConstant: 400), ]) } }
Actual Results: A crash occurs due to the fontName being nil
Expected Results: An image should render
Duplicate of https://github.com/thii/FontAwesome.swift/issues/236
Running the basic example from the README causes a crash.
System Info:
Reproduction steps:
Actual Results: A crash occurs due to the fontName being nil
Expected Results: An image should render