mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix build
This commit is contained in:
@@ -417,7 +417,7 @@ private final class BlurredGradientComponent: Component {
|
||||
self.gradientMask.image = generateGradientImage(
|
||||
size: CGSize(width: 1.0, height: availableSize.height),
|
||||
colors: [UIColor(rgb: 0xffffff, alpha: 1.0), UIColor(rgb: 0xffffff, alpha: 1.0), UIColor(rgb: 0xffffff, alpha: 0.0)],
|
||||
locations: component.position == .top ? [0.0, 0.5, 1.0] : [1.0, 0.5, 0.0],
|
||||
locations: component.position == .top ? [0.0, 0.8, 1.0] : [1.0, 0.5, 0.0],
|
||||
direction: .vertical
|
||||
)
|
||||
|
||||
@@ -1063,7 +1063,7 @@ private final class DrawingScreenComponent: CombinedComponent {
|
||||
position: .top,
|
||||
tag: topGradientTag
|
||||
),
|
||||
availableSize: CGSize(width: context.availableSize.width, height: topInset + 10.0),
|
||||
availableSize: CGSize(width: context.availableSize.width, height: topInset + 15.0),
|
||||
transition: .immediate
|
||||
)
|
||||
context.add(topGradient
|
||||
|
||||
Reference in New Issue
Block a user