Skip to content

Commit

Permalink
点击群组名可折叠群组
Browse files Browse the repository at this point in the history
  • Loading branch information
Finb committed Dec 31, 2024
1 parent ca6dcd2 commit 5766706
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions View/MessageList/MessageGroupHeaderView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,16 @@ class MessageGroupHeaderView: UIView {
make.right.equalToSuperview()
make.centerY.equalTo(groupNameLabel)
}

self.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(tap)))
}

@available(*, unavailable)
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

@objc func tap() {
showLessAction?()
}
}

0 comments on commit 5766706

Please sign in to comment.