fix: add animation for footer when keyboard display

This commit is contained in:
CMK 2021-06-22 17:10:21 +08:00
parent 69f6c5176e
commit 14f555f82f
1 changed files with 6 additions and 0 deletions

View File

@ -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)
}