|
@@ -167,6 +167,29 @@ class CommunityAllCommentView: FWPopupView {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// 自定义评论View
|
|
|
+ class func communityAllCommentView(view:UIView? = nil,postId:Int, videoItemMdl: CommunityVideoItemModel) -> CommunityAllCommentView {
|
|
|
+ let commentView = CommunityAllCommentView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: kSafeTabBarHeight + 500))
|
|
|
+ commentView.attachedView = view
|
|
|
+
|
|
|
+ commentView.configRectCorner(corner: [.topLeft,.topRight], radii: CGSize(width: 8, height: 8))
|
|
|
+ commentView.postId = postId
|
|
|
+ commentView.videoItemModel = videoItemMdl
|
|
|
+ let vProperty = FWPopupViewProperty()
|
|
|
+ vProperty.popupCustomAlignment = .bottomCenter
|
|
|
+ vProperty.popupAnimationType = .frame
|
|
|
+ vProperty.maskViewColor = UIColor(white: 0, alpha: 0.5)
|
|
|
+ vProperty.touchWildToHide = "0"
|
|
|
+ vProperty.popupViewEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
|
|
|
+ vProperty.animationDuration = 0.3
|
|
|
+ commentView.vProperty = vProperty
|
|
|
+ commentView.show()
|
|
|
+ commentView.disTransBlock = {
|
|
|
+ commentView.hide()
|
|
|
+ }
|
|
|
+ return commentView
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
extension CommunityAllCommentView : UITableViewDelegate, UITableViewDataSource {
|