mirror of
https://github.com/ish-app/ish.git
synced 2026-01-25 14:06:40 +00:00
34 lines
894 B
Objective-C
34 lines
894 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:@[@"theme"] options:NSKeyValueObservingOptionInitial
|
|
owner:self usingBlock:^(typeof(self) self) {
|
|
if (@available(iOS 13, *)) {
|
|
UIKeyboardAppearance appearance = UserPreferences.shared.theme.keyboardAppearance;
|
|
if (appearance == UIKeyboardAppearanceDark) {
|
|
self.overrideUserInterfaceStyle = UIUserInterfaceStyleDark;
|
|
} else {
|
|
self.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
|
|
}
|
|
}
|
|
}];
|
|
}
|
|
|
|
@end
|