Skip to content

Commit f879db1

Browse files
author
Andrew(유금상)
committed
Example support iPhone X
1 parent aa3d007 commit f879db1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Example/Sources/Views/MessageInputBar.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ final class MessageInputBar: UIView {
7272
return
7373
}
7474

75-
var bottomMargin = 0.f
76-
if #available(iOS 11.0, *), !visible, let bottomInset = self.superview?.safeAreaInsets.bottom {
77-
bottomMargin = bottomInset
75+
var bottomInset = 0.f
76+
if #available(iOS 11.0, *), !visible, let bottom = self.superview?.safeAreaInsets.bottom {
77+
bottomInset = bottom
7878
}
7979

8080
self.toolbar.snp.remakeConstraints({ (make) in
8181
make.left.right.top.equalTo(0)
82-
make.bottom.equalTo(bottomMargin)
82+
make.bottom.equalTo(bottomInset)
8383
})
8484
})
8585
.disposed(by: self.disposeBag)

0 commit comments

Comments
 (0)