feat: make the whole conversation title view scrollable

pull/941/head
ryanzhao 2 years ago
parent a198145fb2
commit d3dccae0f1

@ -239,4 +239,10 @@ final class ConversationTitleView: UIView {
)
self.stackViewTrailingConstraint.constant = 0
}
// MARK: - Interaction
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
return self.labelCarouselView.scrollView
}
}

@ -37,7 +37,7 @@ final class SessionLabelCarouselView: UIView, UIScrollViewDelegate {
// MARK: - UI Components
private lazy var scrollView: UIScrollView = {
public lazy var scrollView: UIScrollView = {
let result = UIScrollView(frame: .zero)
result.isPagingEnabled = true
result.showsVerticalScrollIndicator = false
@ -164,6 +164,8 @@ final class SessionLabelCarouselView: UIView, UIScrollViewDelegate {
scrollView.addSubview(stackView)
}
// MARK: - Interaction
private func startScrolling() {
timer?.invalidate()
timer = Timer.scheduledTimerOnMainThread(withTimeInterval: Self.autoScrollingTimeInterval, repeats: true) { _ in

Loading…
Cancel
Save