1 // Copyright 2019 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 #import <Foundation/Foundation.h>
6 #import <AppKit/NSAppearance.h>
7
8 BOOL function(void) {
9 #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && (MAC_OS_X_VERSION_MIN_REQUIRED > 101300)
10 NSAppearance *darkAppearance;
11 if (@available(macOS 10.14, *)) {
12 darkAppearance = [NSAppearance appearanceNamed:NSAppearanceNameDarkAqua];
13 }
14 #endif
15 return NO;
16 }
17
View as plain text