添加HWPanModal和FLAnimatedImage

This commit is contained in:
2025-11-05 22:04:56 +08:00
parent efdcf60ed1
commit abf32e8457
97 changed files with 10853 additions and 2067 deletions

View File

@@ -0,0 +1,57 @@
//
// HWBackgroundConfig.m
// Pods
//
// Created by heath wang on 2020/4/17.
//
#import "HWBackgroundConfig.h"
@implementation HWBackgroundConfig
- (instancetype)init {
self = [super init];
if (self) {
self.backgroundBehavior = HWBackgroundBehaviorDefault;
}
return self;
}
- (instancetype)initWithBehavior:(HWBackgroundBehavior)backgroundBehavior {
self = [super init];
if (self) {
self.backgroundBehavior = backgroundBehavior;
}
return self;
}
+ (instancetype)configWithBehavior:(HWBackgroundBehavior)backgroundBehavior {
return [[self alloc] initWithBehavior:backgroundBehavior];
}
#pragma mark - Setter
- (void)setBackgroundBehavior:(HWBackgroundBehavior)backgroundBehavior {
_backgroundBehavior = backgroundBehavior;
switch (backgroundBehavior) {
case HWBackgroundBehaviorSystemVisualEffect: {
self.visualEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
}
break;
case HWBackgroundBehaviorCustomBlurEffect: {
self.backgroundBlurRadius = 10;
self.blurTintColor = [UIColor whiteColor];
}
break;
default: {
self.backgroundAlpha = 0.7;
}
break;
}
}
@end