调整完成按钮与键盘的间距
This commit is contained in:
@@ -54,7 +54,7 @@ class ClipEditViewController: UIViewController {
|
||||
UIView.animate(withDuration: duration, delay: 0, options: .beginFromCurrentState) {
|
||||
self.textView.contentInset.bottom = keyboardHeight
|
||||
self.textView.verticalScrollIndicatorInsets.bottom = keyboardHeight
|
||||
self.floatingDoneButtonBottomConstraint.constant = -(keyboardHeight + 16)
|
||||
self.floatingDoneButtonBottomConstraint.constant = -(keyboardHeight + 8)
|
||||
self.floatingDoneButton.alpha = 1
|
||||
self.view.layoutIfNeeded()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user