Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add FB8984997 - SwiftUI keyboardShortcut does not work when displayed…
… via UIHostingController
  • Loading branch information
steipete committed Jan 31, 2021
1 parent 2d957f2 commit 8768d5c
Show file tree
Hide file tree
Showing 16 changed files with 793 additions and 0 deletions.
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "68493FFA-C72F-4068-A253-F9F1D02FCB5A"
type = "4"
version = "2.0">
</Bucket>
@@ -0,0 +1,356 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
7878067525C5B6AC00ED7460 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7878067425C5B6AC00ED7460 /* AppDelegate.swift */; };
7878067725C5B6AC00ED7460 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7878067625C5B6AC00ED7460 /* SceneDelegate.swift */; };
7878067925C5B6AC00ED7460 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7878067825C5B6AC00ED7460 /* ViewController.swift */; };
7878067C25C5B6AC00ED7460 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7878067A25C5B6AC00ED7460 /* Main.storyboard */; };
7878067E25C5B6AE00ED7460 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7878067D25C5B6AE00ED7460 /* Assets.xcassets */; };
7878068125C5B6AE00ED7460 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7878067F25C5B6AE00ED7460 /* LaunchScreen.storyboard */; };
7878068A25C5B6BA00ED7460 /* SwiftUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7878068925C5B6BA00ED7460 /* SwiftUIView.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
7878067125C5B6AC00ED7460 /* SwiftUIKeyboard.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftUIKeyboard.app; sourceTree = BUILT_PRODUCTS_DIR; };
7878067425C5B6AC00ED7460 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
7878067625C5B6AC00ED7460 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
7878067825C5B6AC00ED7460 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
7878067B25C5B6AC00ED7460 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
7878067D25C5B6AE00ED7460 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
7878068025C5B6AE00ED7460 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
7878068225C5B6AE00ED7460 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
7878068925C5B6BA00ED7460 /* SwiftUIView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftUIView.swift; sourceTree = "<group>"; };
7878068C25C5BA5000ED7460 /* SwiftUIKeyboard.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SwiftUIKeyboard.entitlements; sourceTree = "<group>"; };
/* End PBXFileReference section */

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

/* Begin PBXGroup section */
7878066825C5B6AC00ED7460 = {
isa = PBXGroup;
children = (
7878067325C5B6AC00ED7460 /* SwiftUIKeyboard */,
7878067225C5B6AC00ED7460 /* Products */,
);
sourceTree = "<group>";
};
7878067225C5B6AC00ED7460 /* Products */ = {
isa = PBXGroup;
children = (
7878067125C5B6AC00ED7460 /* SwiftUIKeyboard.app */,
);
name = Products;
sourceTree = "<group>";
};
7878067325C5B6AC00ED7460 /* SwiftUIKeyboard */ = {
isa = PBXGroup;
children = (
7878068C25C5BA5000ED7460 /* SwiftUIKeyboard.entitlements */,
7878067425C5B6AC00ED7460 /* AppDelegate.swift */,
7878067625C5B6AC00ED7460 /* SceneDelegate.swift */,
7878067825C5B6AC00ED7460 /* ViewController.swift */,
7878067A25C5B6AC00ED7460 /* Main.storyboard */,
7878067D25C5B6AE00ED7460 /* Assets.xcassets */,
7878067F25C5B6AE00ED7460 /* LaunchScreen.storyboard */,
7878068225C5B6AE00ED7460 /* Info.plist */,
7878068925C5B6BA00ED7460 /* SwiftUIView.swift */,
);
path = SwiftUIKeyboard;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
7878067025C5B6AC00ED7460 /* SwiftUIKeyboard */ = {
isa = PBXNativeTarget;
buildConfigurationList = 7878068525C5B6AE00ED7460 /* Build configuration list for PBXNativeTarget "SwiftUIKeyboard" */;
buildPhases = (
7878066D25C5B6AC00ED7460 /* Sources */,
7878066E25C5B6AC00ED7460 /* Frameworks */,
7878066F25C5B6AC00ED7460 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = SwiftUIKeyboard;
productName = SwiftUIKeyboard;
productReference = 7878067125C5B6AC00ED7460 /* SwiftUIKeyboard.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
7878066925C5B6AC00ED7460 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1240;
LastUpgradeCheck = 1240;
TargetAttributes = {
7878067025C5B6AC00ED7460 = {
CreatedOnToolsVersion = 12.4;
};
};
};
buildConfigurationList = 7878066C25C5B6AC00ED7460 /* Build configuration list for PBXProject "SwiftUIKeyboard" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 7878066825C5B6AC00ED7460;
productRefGroup = 7878067225C5B6AC00ED7460 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
7878067025C5B6AC00ED7460 /* SwiftUIKeyboard */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
7878066F25C5B6AC00ED7460 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
7878068125C5B6AE00ED7460 /* LaunchScreen.storyboard in Resources */,
7878067E25C5B6AE00ED7460 /* Assets.xcassets in Resources */,
7878067C25C5B6AC00ED7460 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
7878066D25C5B6AC00ED7460 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
7878067925C5B6AC00ED7460 /* ViewController.swift in Sources */,
7878067525C5B6AC00ED7460 /* AppDelegate.swift in Sources */,
7878068A25C5B6BA00ED7460 /* SwiftUIView.swift in Sources */,
7878067725C5B6AC00ED7460 /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
7878067A25C5B6AC00ED7460 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
7878067B25C5B6AC00ED7460 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
7878067F25C5B6AE00ED7460 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
7878068025C5B6AE00ED7460 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
7878068325C5B6AE00ED7460 /* 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;
};
7878068425C5B6AE00ED7460 /* 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;
};
7878068625C5B6AE00ED7460 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = SwiftUIKeyboard/SwiftUIKeyboard.entitlements;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 4YCRL5LW7Q;
INFOPLIST_FILE = SwiftUIKeyboard/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.pspdfkit.SwiftUIKeyboard;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
7878068725C5B6AE00ED7460 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = SwiftUIKeyboard/SwiftUIKeyboard.entitlements;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 4YCRL5LW7Q;
INFOPLIST_FILE = SwiftUIKeyboard/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.pspdfkit.SwiftUIKeyboard;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
7878066C25C5B6AC00ED7460 /* Build configuration list for PBXProject "SwiftUIKeyboard" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7878068325C5B6AE00ED7460 /* Debug */,
7878068425C5B6AE00ED7460 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
7878068525C5B6AE00ED7460 /* Build configuration list for PBXNativeTarget "SwiftUIKeyboard" */ = {
isa = XCConfigurationList;
buildConfigurations = (
7878068625C5B6AE00ED7460 /* Debug */,
7878068725C5B6AE00ED7460 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 7878066925C5B6AC00ED7460 /* Project object */;
}

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

@@ -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 8768d5c

Please sign in to comment.