1
0
mirror of https://github.com/Burrit0z/kai synced 2025-07-01 04:26:48 +00:00

fix ios 14.0.1 crash (temp fix)

This commit is contained in:
Burrit0z
2020-09-25 13:25:40 -04:00
parent cee2aa6a0f
commit e7f00664cd

View File

@ -16,7 +16,11 @@
UIView *blurPlatter = [[UIView alloc] init];
if (bannerStyle == 1) {
if (kCFCoreFoundationVersionNumber > 1600) {
@try {
blur = [[[objc_getClass("MTMaterialView") class] alloc] _initWithRecipe:1 configuration:1 initialWeighting:1 scaleAdjustment:nil];
} @catch (NSException *exc) {
blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleRegular]];
}
} else if (kCFCoreFoundationVersionNumber < 1600) {
blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]];
}