This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(BOOL)canBecomeFirstResponder | |
{ | |
return YES; | |
} | |
-(UIKeyCommand *)_keyCommandForEvent:(UIEvent *)event // UIPhysicalKeyboardEvent | |
{ | |
NSLog(@"keyCommandForEvent: %@\n\ | |
type = %i\n\ | |
keycode = %@\n\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddressBookUI.framework | |
( | |
"com.apple.people-picker" | |
) | |
AudioToolbox.framework | |
( | |
"com.apple.AudioUnit", | |
"com.apple.AudioUnit-UI" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation UIColor (AppleAccentColor) | |
+(UIColor *)CATALYSTAccentColor | |
{ | |
BOOL hasAccentSet = ([[NSUserDefaults standardUserDefaults] objectForKey:@"AppleAccentColor"] != nil); | |
NSInteger systemAccentColor = [[NSUserDefaults standardUserDefaults] integerForKey:@"AppleAccentColor"]; | |
UIColor *returnColor = [UIColor systemBlueColor]; | |
if (hasAccentSet) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// HWKViewController.m | |
// HardwareKeyboardUI | |
// | |
// Created by Steven Troughton-Smith on 13/11/2013. | |
// Copyright (c) 2013 High Caffeine Content. All rights reserved. | |
// | |
#import "HWKViewController.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from Foundation import * | |
from QuartzCore import * | |
from UIKit import * | |
import console | |
WKWebView = ObjCClass('WKWebView') | |
@on_main_thread |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from UIKit import * | |
from Foundation import * | |
from ctypes import * | |
libobjc = CDLL('/usr/lib/libobjc.dylib') | |
QLPreviewController = ObjCClass('QLPreviewController') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// PSTLDraggableColorSwatchView.h | |
// Pastel | |
// | |
// Created by Steven Troughton-Smith on 06/03/2020. | |
// Copyright © 2020 Steven Troughton-Smith. All rights reserved. | |
// | |
@import UIKit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TARGET="$( cd "$(dirname "$1")" ; pwd -P )/$1" | |
SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk" | |
TARGET_ARCH=x86_64 | |
export IPHONEOS_DEPLOYMENT_TARGET=12.2 | |
rm -r /tmp/bitcode2intel | |
mkdir -p /tmp/bitcode2intel | |
pushd /tmp/bitcode2intel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Autumn Approaches" => { | |
"colors" => [ | |
0 => "#220204" | |
1 => "#9f311b" | |
2 => "#e17817" | |
3 => "#6a1d18" | |
4 => "#d64019" | |
] | |
} |