Improve NFC history readers and prepare production build
This commit is contained in:
@ -23,8 +23,10 @@ class ToastHelper {
|
||||
toastView.alpha = 0
|
||||
toastView.translatesAutoresizingMaskIntoConstraints = false
|
||||
|
||||
let window = UIApplication.shared.delegate?.window!
|
||||
window?.addSubview(toastView)
|
||||
guard let window = UIApplication.shared.delegate?.window ?? nil else {
|
||||
return
|
||||
}
|
||||
window.addSubview(toastView)
|
||||
|
||||
let horizontalCenterContraint: NSLayoutConstraint = NSLayoutConstraint(item: toastView, attribute: .centerX, relatedBy: .equal, toItem: window, attribute: .centerX, multiplier: 1, constant: 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user