forked from organicmaps/organicmaps
[iOS] Old-school unboxing for XCode 13.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
parent
3c798700da
commit
55924f311e
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue