Fix build

This commit is contained in:
Ilya Laktyushin
2023-03-08 13:57:22 +04:00
parent 4c5f4c9590
commit 685b0a765c
7 changed files with 56 additions and 15 deletions

View File

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