// // QXDrawGiftCenterView.h // QXLive // // Created by 启星 on 2025/8/27. // #import #import "QXGiftActivityModel.h" typedef NS_ENUM(NSInteger) { /// 等待开始 QXDrawGiftCenterTypeWait = 0, /// 即将开始 QXDrawGiftCenterTypeWill = 2, /// 正式开始 QXDrawGiftCenterTypeStart = 1 , }QXDrawGiftCenterType; typedef NS_ENUM(NSInteger) { /// 天空之境 QXActivityTypeSky = 10, /// 岁月之城 QXActivityTypeAge , /// 时空之巅 QXActivityTypeTime , }QXActivityType; NS_ASSUME_NONNULL_BEGIN @interface QXDrawGiftCenterProgressView : UIView @property (nonatomic, strong) UIColor *progressColor; // 进度条颜色 @property (nonatomic, assign) double progress; // 进度 0.0 - 1.0 @property (nonatomic,strong) UILabel *cycleLabel; @end @interface QXDrawGiftCenterView : UIView @property (nonatomic, strong)QXDrawGiftCenterProgressView *progressView; @property (nonatomic, assign) double progress; // 进度 0.0 - 1.0 @property (nonatomic,strong) UIImageView *bgImageView; @property (nonatomic,strong) UIButton *startBtn; @property (nonatomic,strong) UIView *cycleBgView; @property (nonatomic,assign)QXDrawGiftCenterType type; @property (nonatomic,assign)QXActivityType activityType; @property (nonatomic,strong)QXGiftActivityModel *model; @property (nonatomic,copy)void(^startBlock)(void); @end NS_ASSUME_NONNULL_END