From f0a33da460fb43c500a770355069f168e33552f7 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Thu, 27 Oct 2022 14:56:15 +0300 Subject: [PATCH] Various fixes --- .../LegacyComponents/Sources/TGPhotoEntitiesContainerView.m | 3 ++- submodules/PremiumUI/Sources/PhoneDemoComponent.swift | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/submodules/LegacyComponents/Sources/TGPhotoEntitiesContainerView.m b/submodules/LegacyComponents/Sources/TGPhotoEntitiesContainerView.m index 5dda688790..b0c3d3d654 100644 --- a/submodules/LegacyComponents/Sources/TGPhotoEntitiesContainerView.m +++ b/submodules/LegacyComponents/Sources/TGPhotoEntitiesContainerView.m @@ -174,7 +174,8 @@ - (void)setupWithPaintingData:(TGPaintingData *)paintingData { [self removeAll]; for (TGPhotoPaintEntity *entity in paintingData.entities) { - [self createEntityViewWithEntity:entity]; + UIView * entityView = [self createEntityViewWithEntity:entity]; + [self addSubview:entityView]; } } diff --git a/submodules/PremiumUI/Sources/PhoneDemoComponent.swift b/submodules/PremiumUI/Sources/PhoneDemoComponent.swift index a55181c69a..a26da3191d 100644 --- a/submodules/PremiumUI/Sources/PhoneDemoComponent.swift +++ b/submodules/PremiumUI/Sources/PhoneDemoComponent.swift @@ -132,8 +132,8 @@ private final class PhoneView: UIView { self.addSubview(self.borderView) self.addSubview(self.frontShimmerView) - self.backShimmerView.addSubview(self.backShimmerEffectView) self.backShimmerView.addSubview(self.backShimmerFadeView) + self.backShimmerView.addSubview(self.backShimmerEffectView) self.shimmerMaskView.addSubview(self.shimmerBorderView) self.shimmerMaskView.addSubview(self.shimmerStarView)