Closed engsulta closed 4 years ago
How can I reproduce the crash?
Close due to long time no response. Feel free to reopen it again if you still need supports.
--FMWarningView
let rootVC = (UIApplication.shared.delegate?.window??.rootViewController)!
crashed
Thread 1: Swift runtime failure: force unwrapped a nil value
comment this line
// let rootVC = (UIApplication.shared.delegate?.window??.rootViewController)!
// update line number 30 with this below line
self.containerView = UIView(frame: UIScreen.main.bounds)
crash fix replace old init method with this one private init() { if let rootVC = (UIApplication.shared.windows.first?.rootViewController) { self.transparentView = UIView(frame: rootVC.view.frame)