Skip to content

Commit

Permalink
feat: カスタムUIを表示させる実装(一番上の画面を取得するバージョン)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamimi01 committed Dec 11, 2022
1 parent b5a853b commit 6d56a81
Show file tree
Hide file tree
Showing 13 changed files with 630 additions and 0 deletions.
348 changes: 348 additions & 0 deletions ShowingCustomUI/ShowingCustomUI.xcodeproj/project.pbxproj
@@ -0,0 +1,348 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objects = {

/* Begin PBXBuildFile section */
D4B417E92945AD5900CDCB7E /* ShowingCustomUIApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4B417E82945AD5900CDCB7E /* ShowingCustomUIApp.swift */; };
D4B417EB2945AD5900CDCB7E /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4B417EA2945AD5900CDCB7E /* ContentView.swift */; };
D4B417ED2945AD5C00CDCB7E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D4B417EC2945AD5C00CDCB7E /* Assets.xcassets */; };
D4B417F02945AD5C00CDCB7E /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D4B417EF2945AD5C00CDCB7E /* Preview Assets.xcassets */; };
D4B417F72945B02600CDCB7E /* WebView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4B417F62945B02600CDCB7E /* WebView.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
D4B417E52945AD5900CDCB7E /* ShowingCustomUI.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ShowingCustomUI.app; sourceTree = BUILT_PRODUCTS_DIR; };
D4B417E82945AD5900CDCB7E /* ShowingCustomUIApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShowingCustomUIApp.swift; sourceTree = "<group>"; };
D4B417EA2945AD5900CDCB7E /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
D4B417EC2945AD5C00CDCB7E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
D4B417EF2945AD5C00CDCB7E /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
D4B417F62945B02600CDCB7E /* WebView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

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

/* Begin PBXGroup section */
D4B417DC2945AD5900CDCB7E = {
isa = PBXGroup;
children = (
D4B417E72945AD5900CDCB7E /* ShowingCustomUI */,
D4B417E62945AD5900CDCB7E /* Products */,
);
sourceTree = "<group>";
};
D4B417E62945AD5900CDCB7E /* Products */ = {
isa = PBXGroup;
children = (
D4B417E52945AD5900CDCB7E /* ShowingCustomUI.app */,
);
name = Products;
sourceTree = "<group>";
};
D4B417E72945AD5900CDCB7E /* ShowingCustomUI */ = {
isa = PBXGroup;
children = (
D4B417E82945AD5900CDCB7E /* ShowingCustomUIApp.swift */,
D4B417EA2945AD5900CDCB7E /* ContentView.swift */,
D4B417F62945B02600CDCB7E /* WebView.swift */,
D4B417EC2945AD5C00CDCB7E /* Assets.xcassets */,
D4B417EE2945AD5C00CDCB7E /* Preview Content */,
);
path = ShowingCustomUI;
sourceTree = "<group>";
};
D4B417EE2945AD5C00CDCB7E /* Preview Content */ = {
isa = PBXGroup;
children = (
D4B417EF2945AD5C00CDCB7E /* Preview Assets.xcassets */,
);
path = "Preview Content";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
D4B417E42945AD5900CDCB7E /* ShowingCustomUI */ = {
isa = PBXNativeTarget;
buildConfigurationList = D4B417F32945AD5C00CDCB7E /* Build configuration list for PBXNativeTarget "ShowingCustomUI" */;
buildPhases = (
D4B417E12945AD5900CDCB7E /* Sources */,
D4B417E22945AD5900CDCB7E /* Frameworks */,
D4B417E32945AD5900CDCB7E /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = ShowingCustomUI;
productName = ShowingCustomUI;
productReference = D4B417E52945AD5900CDCB7E /* ShowingCustomUI.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
D4B417DD2945AD5900CDCB7E /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1410;
LastUpgradeCheck = 1410;
TargetAttributes = {
D4B417E42945AD5900CDCB7E = {
CreatedOnToolsVersion = 14.1;
};
};
};
buildConfigurationList = D4B417E02945AD5900CDCB7E /* Build configuration list for PBXProject "ShowingCustomUI" */;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = D4B417DC2945AD5900CDCB7E;
productRefGroup = D4B417E62945AD5900CDCB7E /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
D4B417E42945AD5900CDCB7E /* ShowingCustomUI */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
D4B417E32945AD5900CDCB7E /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D4B417F02945AD5C00CDCB7E /* Preview Assets.xcassets in Resources */,
D4B417ED2945AD5C00CDCB7E /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
D4B417E12945AD5900CDCB7E /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D4B417F72945B02600CDCB7E /* WebView.swift in Sources */,
D4B417EB2945AD5900CDCB7E /* ContentView.swift in Sources */,
D4B417E92945AD5900CDCB7E /* ShowingCustomUIApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
D4B417F12945AD5C00CDCB7E /* 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++20";
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 = 16.1;
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;
};
D4B417F22945AD5C00CDCB7E /* 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++20";
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 = 16.1;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
D4B417F42945AD5C00CDCB7E /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"ShowingCustomUI/Preview Content\"";
DEVELOPMENT_TEAM = 95L82PNXV3;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.kamimi.ShowingCustomUI;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
D4B417F52945AD5C00CDCB7E /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"ShowingCustomUI/Preview Content\"";
DEVELOPMENT_TEAM = 95L82PNXV3;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.kamimi.ShowingCustomUI;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
D4B417E02945AD5900CDCB7E /* Build configuration list for PBXProject "ShowingCustomUI" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D4B417F12945AD5C00CDCB7E /* Debug */,
D4B417F22945AD5C00CDCB7E /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
D4B417F32945AD5C00CDCB7E /* Build configuration list for PBXNativeTarget "ShowingCustomUI" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D4B417F42945AD5C00CDCB7E /* Debug */,
D4B417F52945AD5C00CDCB7E /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = D4B417DD2945AD5900CDCB7E /* 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>
Binary file not shown.

0 comments on commit 6d56a81

Please sign in to comment.