Skip to content

Commit c46adcb

Browse files
committed
修复 ios26 模态透明效果
1 parent c7df0df commit c46adcb

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

DYYY.xm

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7697,6 +7697,40 @@ static NSString *const kHideRecentUsersKey = @"DYYYHideSidebarRecentUsers";
76977697

76987698
%end
76997699

7700+
@interface UIDropShadowView : UIView
7701+
@end
7702+
7703+
// 修复 ios26 模态透明效果
7704+
%hook UIDropShadowView
7705+
7706+
- (void)didMoveToSuperview {
7707+
%orig;
7708+
7709+
if (@available(iOS 26.0, *)) {
7710+
self.backgroundColor = UIColor.clearColor;
7711+
self.opaque = NO;
7712+
}
7713+
}
7714+
7715+
- (void)layoutSubviews {
7716+
%orig;
7717+
7718+
if (@available(iOS 26.0, *)) {
7719+
self.backgroundColor = UIColor.clearColor;
7720+
self.opaque = NO;
7721+
}
7722+
}
7723+
7724+
- (void)setBackgroundColor:(UIColor *)color {
7725+
if (@available(iOS 26.0, *)) {
7726+
%orig(UIColor.clearColor);
7727+
return;
7728+
}
7729+
%orig;
7730+
}
7731+
7732+
%end
7733+
77007734
%hook AFDViewedBottomView
77017735
- (void)layoutSubviews {
77027736
%orig;

DYYYLongPressPanel.xm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
NSString *descString = viewModel.describeString;
7575
// 根据描述字符串判断按钮类型并决定是否保留
7676
BOOL shouldHide = NO;
77-
if (([descString isEqualToString:@"转发到日常"] || [descString isEqualToString:@"或者分享到日常"]) && hideDaily) {
77+
if (([descString isEqualToString:@"转发到日常"] || [descString isEqualToString:@"分享到日常"]) && hideDaily) {
7878
shouldHide = YES;
7979
} else if (([descString isEqualToString:@"推荐"] || [descString isEqualToString:@"取消推荐"]) && hideRecommend) {
8080
shouldHide = YES;

DYYYSettingViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ - (void)setupSectionTitles {
399399

400400
- (void)setupFooterLabel {
401401
self.footerLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 50)];
402-
self.footerLabel.text = [NSString stringWithFormat:@"Developer By @huamidev\nVersion: %@ (%@)", DYYY_VERSION, @"2503End"];
402+
self.footerLabel.text = [NSString stringWithFormat:@"Developer By @huamidev\nVersion: %@ (%@)", DYYY_VERSION, @"260104"];
403403
self.footerLabel.textAlignment = NSTextAlignmentCenter;
404404
self.footerLabel.font = [UIFont systemFontOfSize:14 weight:UIFontWeightRegular];
405405
self.footerLabel.textColor = [UIColor colorWithRed:173 / 255.0 green:216 / 255.0 blue:230 / 255.0 alpha:1.0];

0 commit comments

Comments
 (0)