Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Commit

Permalink
UIKeyCommand Split View Commands.
Browse files Browse the repository at this point in the history
A simple app, with multiple keyboard shortcuts in multiple view controllers.
  • Loading branch information
Ryan Grier committed Apr 19, 2021
1 parent 2000aa2 commit c52ca3c
Show file tree
Hide file tree
Showing 15 changed files with 980 additions and 0 deletions.
372 changes: 372 additions & 0 deletions KeyboardShortcuts/KeyboardShortcuts.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,372 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
8F039ED22620899E006C1CD4 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F039ED12620899E006C1CD4 /* AppDelegate.swift */; };
8F039ED42620899E006C1CD4 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F039ED32620899E006C1CD4 /* SceneDelegate.swift */; };
8F039ED92620899E006C1CD4 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8F039ED72620899E006C1CD4 /* Main.storyboard */; };
8F039EDB262089A0006C1CD4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8F039EDA262089A0006C1CD4 /* Assets.xcassets */; };
8F039EDE262089A0006C1CD4 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8F039EDC262089A0006C1CD4 /* LaunchScreen.storyboard */; };
8F039EE826208D4F006C1CD4 /* TableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F039EE726208D4F006C1CD4 /* TableViewController.swift */; };
8F039EEC26208D62006C1CD4 /* DetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F039EEB26208D62006C1CD4 /* DetailViewController.swift */; };
8F179F0C2624CC2700D6FAE7 /* UIResponder+KeyboardShortcuts.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8F179F0B2624CC2700D6FAE7 /* UIResponder+KeyboardShortcuts.swift */; };
8FD588412620DA59006024B9 /* AlertBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FD588402620DA59006024B9 /* AlertBuilder.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
8F039ECE2620899E006C1CD4 /* KeyboardShortcuts.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = KeyboardShortcuts.app; sourceTree = BUILT_PRODUCTS_DIR; };
8F039ED12620899E006C1CD4 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
8F039ED32620899E006C1CD4 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
8F039ED82620899E006C1CD4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
8F039EDA262089A0006C1CD4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
8F039EDD262089A0006C1CD4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
8F039EDF262089A0006C1CD4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
8F039EE726208D4F006C1CD4 /* TableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TableViewController.swift; sourceTree = "<group>"; };
8F039EEB26208D62006C1CD4 /* DetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailViewController.swift; sourceTree = "<group>"; };
8F179F0B2624CC2700D6FAE7 /* UIResponder+KeyboardShortcuts.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIResponder+KeyboardShortcuts.swift"; sourceTree = "<group>"; };
8FD588402620DA59006024B9 /* AlertBuilder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertBuilder.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
8F039ECB2620899E006C1CD4 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
8F039EC52620899E006C1CD4 = {
isa = PBXGroup;
children = (
8F039ED02620899E006C1CD4 /* KeyboardShortcuts */,
8F039ECF2620899E006C1CD4 /* Products */,
);
sourceTree = "<group>";
};
8F039ECF2620899E006C1CD4 /* Products */ = {
isa = PBXGroup;
children = (
8F039ECE2620899E006C1CD4 /* KeyboardShortcuts.app */,
);
name = Products;
sourceTree = "<group>";
};
8F039ED02620899E006C1CD4 /* KeyboardShortcuts */ = {
isa = PBXGroup;
children = (
8FD588432620DA5F006024B9 /* Support */,
8F039EE626208D39006C1CD4 /* View Controllers */,
8F039ED12620899E006C1CD4 /* AppDelegate.swift */,
8F039ED32620899E006C1CD4 /* SceneDelegate.swift */,
8F039ED72620899E006C1CD4 /* Main.storyboard */,
8F039EDA262089A0006C1CD4 /* Assets.xcassets */,
8F039EDC262089A0006C1CD4 /* LaunchScreen.storyboard */,
8F039EDF262089A0006C1CD4 /* Info.plist */,
);
path = KeyboardShortcuts;
sourceTree = "<group>";
};
8F039EE626208D39006C1CD4 /* View Controllers */ = {
isa = PBXGroup;
children = (
8F039EE726208D4F006C1CD4 /* TableViewController.swift */,
8F039EEB26208D62006C1CD4 /* DetailViewController.swift */,
);
path = "View Controllers";
sourceTree = "<group>";
};
8FD588432620DA5F006024B9 /* Support */ = {
isa = PBXGroup;
children = (
8FD588402620DA59006024B9 /* AlertBuilder.swift */,
8F179F0B2624CC2700D6FAE7 /* UIResponder+KeyboardShortcuts.swift */,
);
path = Support;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
8F039ECD2620899E006C1CD4 /* KeyboardShortcuts */ = {
isa = PBXNativeTarget;
buildConfigurationList = 8F039EE2262089A0006C1CD4 /* Build configuration list for PBXNativeTarget "KeyboardShortcuts" */;
buildPhases = (
8F039ECA2620899E006C1CD4 /* Sources */,
8F039ECB2620899E006C1CD4 /* Frameworks */,
8F039ECC2620899E006C1CD4 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = KeyboardShortcuts;
productName = KeyboardShortcuts;
productReference = 8F039ECE2620899E006C1CD4 /* KeyboardShortcuts.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
8F039EC62620899E006C1CD4 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1240;
LastUpgradeCheck = 1240;
TargetAttributes = {
8F039ECD2620899E006C1CD4 = {
CreatedOnToolsVersion = 12.4;
};
};
};
buildConfigurationList = 8F039EC92620899E006C1CD4 /* Build configuration list for PBXProject "KeyboardShortcuts" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 8F039EC52620899E006C1CD4;
productRefGroup = 8F039ECF2620899E006C1CD4 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
8F039ECD2620899E006C1CD4 /* KeyboardShortcuts */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
8F039ECC2620899E006C1CD4 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
8F039EDE262089A0006C1CD4 /* LaunchScreen.storyboard in Resources */,
8F039EDB262089A0006C1CD4 /* Assets.xcassets in Resources */,
8F039ED92620899E006C1CD4 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
8F039ECA2620899E006C1CD4 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
8FD588412620DA59006024B9 /* AlertBuilder.swift in Sources */,
8F179F0C2624CC2700D6FAE7 /* UIResponder+KeyboardShortcuts.swift in Sources */,
8F039ED22620899E006C1CD4 /* AppDelegate.swift in Sources */,
8F039EEC26208D62006C1CD4 /* DetailViewController.swift in Sources */,
8F039ED42620899E006C1CD4 /* SceneDelegate.swift in Sources */,
8F039EE826208D4F006C1CD4 /* TableViewController.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
8F039ED72620899E006C1CD4 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
8F039ED82620899E006C1CD4 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
8F039EDC262089A0006C1CD4 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
8F039EDD262089A0006C1CD4 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
8F039EE0262089A0006C1CD4 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.4;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
8F039EE1262089A0006C1CD4 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.4;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
8F039EE3262089A0006C1CD4 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = KeyboardShortcuts/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.ryangrier.KeyboardShortcuts;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
8F039EE4262089A0006C1CD4 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = KeyboardShortcuts/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.ryangrier.KeyboardShortcuts;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
8F039EC92620899E006C1CD4 /* Build configuration list for PBXProject "KeyboardShortcuts" */ = {
isa = XCConfigurationList;
buildConfigurations = (
8F039EE0262089A0006C1CD4 /* Debug */,
8F039EE1262089A0006C1CD4 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
8F039EE2262089A0006C1CD4 /* Build configuration list for PBXNativeTarget "KeyboardShortcuts" */ = {
isa = XCConfigurationList;
buildConfigurations = (
8F039EE3262089A0006C1CD4 /* Debug */,
8F039EE4262089A0006C1CD4 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 8F039EC62620899E006C1CD4 /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

0 comments on commit c52ca3c

Please sign in to comment.