From 86a0ff46ee582395e7ea0ddad9ee30ad71057a18 Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Fri, 17 Oct 2025 16:27:55 +0800 Subject: [PATCH] - dynamic update theme fix for safeAreaPadding on iPhone --- VoidLink/ViewControllers/SWRevealViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VoidLink/ViewControllers/SWRevealViewController.m b/VoidLink/ViewControllers/SWRevealViewController.m index 1d3df7dc..5bef7431 100755 --- a/VoidLink/ViewControllers/SWRevealViewController.m +++ b/VoidLink/ViewControllers/SWRevealViewController.m @@ -61,6 +61,7 @@ static CGFloat statusBarAdjustment( UIView* view ) @property (nonatomic, readonly) UIView *rearView; @property (nonatomic, strong) UIView *rearNavView; +@property (nonatomic, strong) UIView *safeAreaPadding; @property (nonatomic, readonly) UIView *rightView; @property (nonatomic, readonly) UIView *frontView; @property (nonatomic, assign) BOOL disableLayout; @@ -76,7 +77,6 @@ static CGFloat statusBarAdjustment( UIView* view ) @implementation SWRevealView{ - UIView *_safeAreaPadding; UIView* _separatorLine; } @@ -839,6 +839,7 @@ const int FrontViewPositionNone = 0xff; - (void)updateTheme { _contentView.backgroundColor = [ThemeManager appBackgroundColor]; _contentView.rearNavView.backgroundColor = [ThemeManager appBackgroundColor]; + _contentView.safeAreaPadding.backgroundColor = [ThemeManager appBackgroundColor]; _separatorLine.backgroundColor = [ThemeManager separatorColor]; if (@available(iOS 13.0, *)) {