Can you give me a workaround for this? I tried copying icomoon.ttf into various places in the Pod/. but that did not help
func registerFont(){
let bundle = Bundle(for: PhotoEditorViewController.self)
let url = bundle.url(forResource: "icomoon", withExtension: "ttf")
// Fatal error: Unexpectedly found nil while unwrapping an Optional value
guard let fontDataProvider = CGDataProvider(url: url! as CFURL) else {
return
}
Can you give me a workaround for this? I tried copying icomoon.ttf into various places in the Pod/. but that did not help
// Fatal error: Unexpectedly found nil while unwrapping an Optional value guard let fontDataProvider = CGDataProvider(url: url! as CFURL) else { return }