// // MHMakeUpView.m // TXLiteAVDemo_UGC // // Created by Apple on 2021/5/7. // Copyright © 2021 Tencent. All rights reserved. // #import "MHMakeUpView.h" #import "MHBeautyMenuCell.h" #import "MHBeautyParams.h" #import "MHBeautiesModel.h" #import "WNSegmentControl.h" #import "MHBottomView.h" @interface MHMakeUpView () @property (nonatomic, strong) UICollectionView *collectionView; @property (nonatomic, strong) NSMutableArray *array; @property (nonatomic, assign) NSInteger lastIndex; @property (nonatomic, assign) NSInteger beautyType; @property (nonatomic, strong) WNSegmentControl *segmentControl; @property (nonatomic, strong) UIView *lineView; @property (nonatomic, strong) MHBottomView * bottomView; @end @implementation MHMakeUpView - (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { [self addSubview:self.segmentControl]; [self addSubview:self.lineView]; [self addSubview:self.collectionView]; if (isNeedBottom) { [self addSubview:self.bottomView]; } self.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:MHBlackAlpha]; self.lastIndex = -1; } return self; } - (void)clearAllMakeupEffects { for (int i = 0; i