调整完成按钮与键盘的间距

This commit is contained in:
2026-07-16 21:35:40 +08:00
parent 4088db8ec0
commit c934dbad84
+1 -1
View File
@@ -54,7 +54,7 @@ class ClipEditViewController: UIViewController {
UIView.animate(withDuration: duration, delay: 0, options: .beginFromCurrentState) { UIView.animate(withDuration: duration, delay: 0, options: .beginFromCurrentState) {
self.textView.contentInset.bottom = keyboardHeight self.textView.contentInset.bottom = keyboardHeight
self.textView.verticalScrollIndicatorInsets.bottom = keyboardHeight self.textView.verticalScrollIndicatorInsets.bottom = keyboardHeight
self.floatingDoneButtonBottomConstraint.constant = -(keyboardHeight + 16) self.floatingDoneButtonBottomConstraint.constant = -(keyboardHeight + 8)
self.floatingDoneButton.alpha = 1 self.floatingDoneButton.alpha = 1
self.view.layoutIfNeeded() self.view.layoutIfNeeded()
} }