I have tried using this library - runs great on the emulator.
Tried pushing it to the phone and I get this:
Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value
This is inside the ModernSearchBarIcon.swift
private func getImageFromBundle(name: String) -> UIImage { let podBundle = Bundle(for: ModernSearchBarIcon.self) if let url = podBundle.url(forResource: "ModernSearchBar", withExtension: "bundle") { let bundle = Bundle(url: url) return UIImage(named: name, in: bundle, compatibleWith: nil)! } return UIImage() }
Gives out the error at "return UIImage(named: name, in: bundle, compatibleWith: nil)!
"
Any resolution??