[iOS] Old-school unboxing for XCode 13.

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
Viktor Govako 2023-12-02 15:27:16 -03:00
parent 3c798700da
commit 55924f311e

View file

@ -44,10 +44,10 @@ final class Toast: NSObject {
}
@objc func show(in view: UIView?, alignment: Alignment) {
guard let view else { return }
guard let view = view else { return }
blurView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(blurView)
let leadingConstraint = blurView.leadingAnchor.constraint(greaterThanOrEqualTo: view.leadingAnchor, constant: 16)
let trailingConstraint = blurView.trailingAnchor.constraint(lessThanOrEqualTo: view.trailingAnchor, constant: -16)