mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Attachment menu improvements
This commit is contained in:
@@ -753,6 +753,8 @@ final class SparseItemGridScrollingIndicatorComponent: CombinedComponent {
|
||||
let textYear = Child(RollingText.self)
|
||||
|
||||
return { context in
|
||||
context.view.clipsToBounds = true
|
||||
|
||||
let date = context.component.date
|
||||
|
||||
let components = date.0.components(separatedBy: " ")
|
||||
@@ -828,7 +830,7 @@ final class SparseItemGridScrollingIndicatorComponent: CombinedComponent {
|
||||
context.add(textYear
|
||||
.position(CGPoint(x: yearTextFrame.midX, y: yearTextFrame.midY))
|
||||
)
|
||||
|
||||
|
||||
return rect.size
|
||||
}
|
||||
}
|
||||
@@ -1099,7 +1101,7 @@ public final class SparseItemGridScrollingArea: ASDisplayNode {
|
||||
self.updateLineIndicator(transition: transition)
|
||||
}
|
||||
|
||||
func feedbackTap() {
|
||||
public func feedbackTap() {
|
||||
self.hapticFeedback.tap()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user