mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various improvements
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import Foundation
|
||||
import UIKit
|
||||
import Display
|
||||
import ComponentFlow
|
||||
|
||||
public final class PageIndicatorComponent: Component {
|
||||
@@ -336,7 +337,8 @@ private class ItemView: UIView {
|
||||
|
||||
var dotColor = UIColor.lightGray {
|
||||
didSet {
|
||||
self.dotView.backgroundColor = dotColor
|
||||
let transition = ContainedViewLayoutTransition.animated(duration: 0.2, curve: .linear)
|
||||
transition.updateBackgroundColor(layer: self.dotView.layer, color: dotColor)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user