forked from zelo72/mastodon-ios
fix: add animation for footer when keyboard display
This commit is contained in:
parent
69f6c5176e
commit
14f555f82f
|
@ -222,10 +222,16 @@ class ReportViewController: UIViewController, NeedsDependency {
|
||||||
let padding = contentFrame.maxY - endFrame.minY
|
let padding = contentFrame.maxY - endFrame.minY
|
||||||
guard padding > 0 else {
|
guard padding > 0 else {
|
||||||
self.bottomConstraint.constant = 0.0
|
self.bottomConstraint.constant = 0.0
|
||||||
|
UIView.animate(withDuration: 0.33) {
|
||||||
|
self.view.layoutIfNeeded()
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
self.bottomConstraint.constant = padding
|
self.bottomConstraint.constant = padding
|
||||||
|
UIView.animate(withDuration: 0.33) {
|
||||||
|
self.view.layoutIfNeeded()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.store(in: &disposeBag)
|
.store(in: &disposeBag)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue