Skip to content

Commit 52561d3

Browse files
committed
Wrap another dark mode support method around a [at]available block
1 parent f925eb4 commit 52561d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Classes/NSAppearance+PBDarkMode.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ @implementation NSApplication (PBDarkMode)
2626

2727
- (BOOL)isDarkMode
2828
{
29-
return self.effectiveAppearance.isDarkMode;
29+
if (@available(macOS 10.14, *)) {
30+
return self.effectiveAppearance.isDarkMode;
31+
} else {
32+
return NO;
33+
}
3034
}
3135

3236
@end

0 commit comments

Comments
 (0)