|
@@ -9,8 +9,8 @@
|
|
|
import UIKit
|
|
|
import IQKeyboardManagerSwift
|
|
|
import RxSwift
|
|
|
-
|
|
|
-class CommentInputView: UIView {
|
|
|
+import FWPopupView
|
|
|
+class CommentInputView: FWPopupView {
|
|
|
|
|
|
let disposeBag = DisposeBag()
|
|
|
/// 上下间距
|
|
@@ -159,6 +159,21 @@ class CommentInputView: UIView {
|
|
|
|
|
|
typealias KeyboardWillHideNotificationClosure = () -> Void
|
|
|
var keyboardWillHideNotificationClosure : KeyboardWillHideNotificationClosure?
|
|
|
+
|
|
|
+ /// 初始化
|
|
|
+ class func commentInputView() -> CommentInputView {
|
|
|
+ let view = CommentInputView(isHidden: true)
|
|
|
+ let vProperty = FWPopupViewProperty()
|
|
|
+ vProperty.popupCustomAlignment = .bottomCenter
|
|
|
+ vProperty.popupViewEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
|
|
|
+ vProperty.popupAnimationType = .frame
|
|
|
+ vProperty.maskViewColor = UIColor(white: 0, alpha: 0.5)
|
|
|
+ vProperty.touchWildToHide = "1"
|
|
|
+ view.vProperty = vProperty
|
|
|
+ view.show()
|
|
|
+ return view
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
extension CommentInputView : UITextViewDelegate {
|