mirror of
https://github.com/ish-app/ish.git
synced 2026-01-25 14:06:40 +00:00
31 lines
725 B
Objective-C
31 lines
725 B
Objective-C
//
|
|
// AboutNavigationController.m
|
|
// iSH
|
|
//
|
|
// Created by Theodore Dubois on 10/6/19.
|
|
//
|
|
|
|
#import "AboutNavigationController.h"
|
|
#import "UserPreferences.h"
|
|
#import "NSObject+SaneKVO.h"
|
|
|
|
@interface AboutNavigationController ()
|
|
|
|
@end
|
|
|
|
@implementation AboutNavigationController
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
[UserPreferences.shared observe:@[@"colorScheme"] options:NSKeyValueObservingOptionInitial
|
|
owner:self usingBlock:^(typeof(self) self) {
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
if (@available(iOS 13, *)) {
|
|
self.overrideUserInterfaceStyle = UserPreferences.shared.userInterfaceStyle;
|
|
}
|
|
});
|
|
}];
|
|
}
|
|
|
|
@end
|