Various improvements

This commit is contained in:
Ilya Laktyushin
2022-06-01 11:09:20 +04:00
parent 6827584cd8
commit f9c0eeba55
46 changed files with 884 additions and 119 deletions

View File

@@ -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)
}
}