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
|
||||
guard padding > 0 else {
|
||||
self.bottomConstraint.constant = 0.0
|
||||
UIView.animate(withDuration: 0.33) {
|
||||
self.view.layoutIfNeeded()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
self.bottomConstraint.constant = padding
|
||||
UIView.animate(withDuration: 0.33) {
|
||||
self.view.layoutIfNeeded()
|
||||
}
|
||||
})
|
||||
.store(in: &disposeBag)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue