From 9b73043bc1b8e8231e21103d755935b85835d08c Mon Sep 17 00:00:00 2001 From: tichise <43707+tichise@users.noreply.github.com> Date: Sat, 27 Feb 2021 12:57:41 +0900 Subject: [PATCH 1/3] add SampleSPM --- SampleSPM/SampleSPM.xcodeproj/project.pbxproj | 612 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcshareddata/swiftpm/Package.resolved | 16 + .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 98 +++ .../SampleSPM/Assets.xcassets/Contents.json | 6 + SampleSPM/SampleSPM/ContentView.swift | 27 + SampleSPM/SampleSPM/Info.plist | 50 ++ .../Preview Assets.xcassets/Contents.json | 6 + SampleSPM/SampleSPM/SampleSPMApp.swift | 17 + SampleSPM/SampleSPMTests/Info.plist | 22 + SampleSPM/SampleSPMTests/SampleSPMTests.swift | 33 + SampleSPM/SampleSPMUITests/Info.plist | 22 + .../SampleSPMUITests/SampleSPMUITests.swift | 42 ++ 15 files changed, 977 insertions(+) create mode 100644 SampleSPM/SampleSPM.xcodeproj/project.pbxproj create mode 100644 SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved create mode 100644 SampleSPM/SampleSPM/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 SampleSPM/SampleSPM/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 SampleSPM/SampleSPM/Assets.xcassets/Contents.json create mode 100644 SampleSPM/SampleSPM/ContentView.swift create mode 100644 SampleSPM/SampleSPM/Info.plist create mode 100644 SampleSPM/SampleSPM/Preview Content/Preview Assets.xcassets/Contents.json create mode 100644 SampleSPM/SampleSPM/SampleSPMApp.swift create mode 100644 SampleSPM/SampleSPMTests/Info.plist create mode 100644 SampleSPM/SampleSPMTests/SampleSPMTests.swift create mode 100644 SampleSPM/SampleSPMUITests/Info.plist create mode 100644 SampleSPM/SampleSPMUITests/SampleSPMUITests.swift diff --git a/SampleSPM/SampleSPM.xcodeproj/project.pbxproj b/SampleSPM/SampleSPM.xcodeproj/project.pbxproj new file mode 100644 index 0000000..2c32079 --- /dev/null +++ b/SampleSPM/SampleSPM.xcodeproj/project.pbxproj @@ -0,0 +1,612 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 52; + objects = { + +/* Begin PBXBuildFile section */ + B08CE78E25E9FA3100B5A4F1 /* SampleSPMApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = B08CE78D25E9FA3100B5A4F1 /* SampleSPMApp.swift */; }; + B08CE79025E9FA3100B5A4F1 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B08CE78F25E9FA3100B5A4F1 /* ContentView.swift */; }; + B08CE79225E9FA3300B5A4F1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B08CE79125E9FA3300B5A4F1 /* Assets.xcassets */; }; + B08CE79525E9FA3300B5A4F1 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B08CE79425E9FA3300B5A4F1 /* Preview Assets.xcassets */; }; + B08CE7A025E9FA3400B5A4F1 /* SampleSPMTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B08CE79F25E9FA3400B5A4F1 /* SampleSPMTests.swift */; }; + B08CE7AB25E9FA3400B5A4F1 /* SampleSPMUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B08CE7AA25E9FA3400B5A4F1 /* SampleSPMUITests.swift */; }; + B08CE7BD25E9FA6A00B5A4F1 /* MaterialDesignSymbol in Frameworks */ = {isa = PBXBuildFile; productRef = B08CE7BC25E9FA6A00B5A4F1 /* MaterialDesignSymbol */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + B08CE79C25E9FA3400B5A4F1 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = B08CE78225E9FA3100B5A4F1 /* Project object */; + proxyType = 1; + remoteGlobalIDString = B08CE78925E9FA3100B5A4F1; + remoteInfo = SampleSPM; + }; + B08CE7A725E9FA3400B5A4F1 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = B08CE78225E9FA3100B5A4F1 /* Project object */; + proxyType = 1; + remoteGlobalIDString = B08CE78925E9FA3100B5A4F1; + remoteInfo = SampleSPM; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + B08CE78A25E9FA3100B5A4F1 /* SampleSPM.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SampleSPM.app; sourceTree = BUILT_PRODUCTS_DIR; }; + B08CE78D25E9FA3100B5A4F1 /* SampleSPMApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SampleSPMApp.swift; sourceTree = ""; }; + B08CE78F25E9FA3100B5A4F1 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + B08CE79125E9FA3300B5A4F1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + B08CE79425E9FA3300B5A4F1 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + B08CE79625E9FA3300B5A4F1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + B08CE79B25E9FA3400B5A4F1 /* SampleSPMTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SampleSPMTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + B08CE79F25E9FA3400B5A4F1 /* SampleSPMTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SampleSPMTests.swift; sourceTree = ""; }; + B08CE7A125E9FA3400B5A4F1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + B08CE7A625E9FA3400B5A4F1 /* SampleSPMUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SampleSPMUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + B08CE7AA25E9FA3400B5A4F1 /* SampleSPMUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SampleSPMUITests.swift; sourceTree = ""; }; + B08CE7AC25E9FA3400B5A4F1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + B08CE78725E9FA3100B5A4F1 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + B08CE7BD25E9FA6A00B5A4F1 /* MaterialDesignSymbol in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B08CE79825E9FA3400B5A4F1 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B08CE7A325E9FA3400B5A4F1 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + B08CE78125E9FA3100B5A4F1 = { + isa = PBXGroup; + children = ( + B08CE78C25E9FA3100B5A4F1 /* SampleSPM */, + B08CE79E25E9FA3400B5A4F1 /* SampleSPMTests */, + B08CE7A925E9FA3400B5A4F1 /* SampleSPMUITests */, + B08CE78B25E9FA3100B5A4F1 /* Products */, + ); + sourceTree = ""; + }; + B08CE78B25E9FA3100B5A4F1 /* Products */ = { + isa = PBXGroup; + children = ( + B08CE78A25E9FA3100B5A4F1 /* SampleSPM.app */, + B08CE79B25E9FA3400B5A4F1 /* SampleSPMTests.xctest */, + B08CE7A625E9FA3400B5A4F1 /* SampleSPMUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + B08CE78C25E9FA3100B5A4F1 /* SampleSPM */ = { + isa = PBXGroup; + children = ( + B08CE78D25E9FA3100B5A4F1 /* SampleSPMApp.swift */, + B08CE78F25E9FA3100B5A4F1 /* ContentView.swift */, + B08CE79125E9FA3300B5A4F1 /* Assets.xcassets */, + B08CE79625E9FA3300B5A4F1 /* Info.plist */, + B08CE79325E9FA3300B5A4F1 /* Preview Content */, + ); + path = SampleSPM; + sourceTree = ""; + }; + B08CE79325E9FA3300B5A4F1 /* Preview Content */ = { + isa = PBXGroup; + children = ( + B08CE79425E9FA3300B5A4F1 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + B08CE79E25E9FA3400B5A4F1 /* SampleSPMTests */ = { + isa = PBXGroup; + children = ( + B08CE79F25E9FA3400B5A4F1 /* SampleSPMTests.swift */, + B08CE7A125E9FA3400B5A4F1 /* Info.plist */, + ); + path = SampleSPMTests; + sourceTree = ""; + }; + B08CE7A925E9FA3400B5A4F1 /* SampleSPMUITests */ = { + isa = PBXGroup; + children = ( + B08CE7AA25E9FA3400B5A4F1 /* SampleSPMUITests.swift */, + B08CE7AC25E9FA3400B5A4F1 /* Info.plist */, + ); + path = SampleSPMUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + B08CE78925E9FA3100B5A4F1 /* SampleSPM */ = { + isa = PBXNativeTarget; + buildConfigurationList = B08CE7AF25E9FA3400B5A4F1 /* Build configuration list for PBXNativeTarget "SampleSPM" */; + buildPhases = ( + B08CE78625E9FA3100B5A4F1 /* Sources */, + B08CE78725E9FA3100B5A4F1 /* Frameworks */, + B08CE78825E9FA3100B5A4F1 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SampleSPM; + packageProductDependencies = ( + B08CE7BC25E9FA6A00B5A4F1 /* MaterialDesignSymbol */, + ); + productName = SampleSPM; + productReference = B08CE78A25E9FA3100B5A4F1 /* SampleSPM.app */; + productType = "com.apple.product-type.application"; + }; + B08CE79A25E9FA3400B5A4F1 /* SampleSPMTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = B08CE7B225E9FA3400B5A4F1 /* Build configuration list for PBXNativeTarget "SampleSPMTests" */; + buildPhases = ( + B08CE79725E9FA3400B5A4F1 /* Sources */, + B08CE79825E9FA3400B5A4F1 /* Frameworks */, + B08CE79925E9FA3400B5A4F1 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + B08CE79D25E9FA3400B5A4F1 /* PBXTargetDependency */, + ); + name = SampleSPMTests; + productName = SampleSPMTests; + productReference = B08CE79B25E9FA3400B5A4F1 /* SampleSPMTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + B08CE7A525E9FA3400B5A4F1 /* SampleSPMUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = B08CE7B525E9FA3400B5A4F1 /* Build configuration list for PBXNativeTarget "SampleSPMUITests" */; + buildPhases = ( + B08CE7A225E9FA3400B5A4F1 /* Sources */, + B08CE7A325E9FA3400B5A4F1 /* Frameworks */, + B08CE7A425E9FA3400B5A4F1 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + B08CE7A825E9FA3400B5A4F1 /* PBXTargetDependency */, + ); + name = SampleSPMUITests; + productName = SampleSPMUITests; + productReference = B08CE7A625E9FA3400B5A4F1 /* SampleSPMUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + B08CE78225E9FA3100B5A4F1 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1240; + LastUpgradeCheck = 1240; + TargetAttributes = { + B08CE78925E9FA3100B5A4F1 = { + CreatedOnToolsVersion = 12.4; + }; + B08CE79A25E9FA3400B5A4F1 = { + CreatedOnToolsVersion = 12.4; + TestTargetID = B08CE78925E9FA3100B5A4F1; + }; + B08CE7A525E9FA3400B5A4F1 = { + CreatedOnToolsVersion = 12.4; + TestTargetID = B08CE78925E9FA3100B5A4F1; + }; + }; + }; + buildConfigurationList = B08CE78525E9FA3100B5A4F1 /* Build configuration list for PBXProject "SampleSPM" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = B08CE78125E9FA3100B5A4F1; + packageReferences = ( + B08CE7BB25E9FA6A00B5A4F1 /* XCRemoteSwiftPackageReference "MaterialDesignSymbol" */, + ); + productRefGroup = B08CE78B25E9FA3100B5A4F1 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + B08CE78925E9FA3100B5A4F1 /* SampleSPM */, + B08CE79A25E9FA3400B5A4F1 /* SampleSPMTests */, + B08CE7A525E9FA3400B5A4F1 /* SampleSPMUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + B08CE78825E9FA3100B5A4F1 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B08CE79525E9FA3300B5A4F1 /* Preview Assets.xcassets in Resources */, + B08CE79225E9FA3300B5A4F1 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B08CE79925E9FA3400B5A4F1 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B08CE7A425E9FA3400B5A4F1 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + B08CE78625E9FA3100B5A4F1 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B08CE79025E9FA3100B5A4F1 /* ContentView.swift in Sources */, + B08CE78E25E9FA3100B5A4F1 /* SampleSPMApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B08CE79725E9FA3400B5A4F1 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B08CE7A025E9FA3400B5A4F1 /* SampleSPMTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B08CE7A225E9FA3400B5A4F1 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B08CE7AB25E9FA3400B5A4F1 /* SampleSPMUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + B08CE79D25E9FA3400B5A4F1 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = B08CE78925E9FA3100B5A4F1 /* SampleSPM */; + targetProxy = B08CE79C25E9FA3400B5A4F1 /* PBXContainerItemProxy */; + }; + B08CE7A825E9FA3400B5A4F1 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = B08CE78925E9FA3100B5A4F1 /* SampleSPM */; + targetProxy = B08CE7A725E9FA3400B5A4F1 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + B08CE7AD25E9FA3400B5A4F1 /* 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; + }; + B08CE7AE25E9FA3400B5A4F1 /* 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; + }; + B08CE7B025E9FA3400B5A4F1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"SampleSPM/Preview Content\""; + DEVELOPMENT_TEAM = WBZ98LPU7V; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = SampleSPM/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = ichise.SampleSPM; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + B08CE7B125E9FA3400B5A4F1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"SampleSPM/Preview Content\""; + DEVELOPMENT_TEAM = WBZ98LPU7V; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = SampleSPM/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = ichise.SampleSPM; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + B08CE7B325E9FA3400B5A4F1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = WBZ98LPU7V; + INFOPLIST_FILE = SampleSPMTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = ichise.SampleSPMTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SampleSPM.app/SampleSPM"; + }; + name = Debug; + }; + B08CE7B425E9FA3400B5A4F1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = WBZ98LPU7V; + INFOPLIST_FILE = SampleSPMTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = ichise.SampleSPMTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SampleSPM.app/SampleSPM"; + }; + name = Release; + }; + B08CE7B625E9FA3400B5A4F1 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = WBZ98LPU7V; + INFOPLIST_FILE = SampleSPMUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = ichise.SampleSPMUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = SampleSPM; + }; + name = Debug; + }; + B08CE7B725E9FA3400B5A4F1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = WBZ98LPU7V; + INFOPLIST_FILE = SampleSPMUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = ichise.SampleSPMUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = SampleSPM; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + B08CE78525E9FA3100B5A4F1 /* Build configuration list for PBXProject "SampleSPM" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B08CE7AD25E9FA3400B5A4F1 /* Debug */, + B08CE7AE25E9FA3400B5A4F1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + B08CE7AF25E9FA3400B5A4F1 /* Build configuration list for PBXNativeTarget "SampleSPM" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B08CE7B025E9FA3400B5A4F1 /* Debug */, + B08CE7B125E9FA3400B5A4F1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + B08CE7B225E9FA3400B5A4F1 /* Build configuration list for PBXNativeTarget "SampleSPMTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B08CE7B325E9FA3400B5A4F1 /* Debug */, + B08CE7B425E9FA3400B5A4F1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + B08CE7B525E9FA3400B5A4F1 /* Build configuration list for PBXNativeTarget "SampleSPMUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B08CE7B625E9FA3400B5A4F1 /* Debug */, + B08CE7B725E9FA3400B5A4F1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + B08CE7BB25E9FA6A00B5A4F1 /* XCRemoteSwiftPackageReference "MaterialDesignSymbol" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "file:///Users/takuya/Documents/github/MaterialDesignSymbol"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 2.6.8; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + B08CE7BC25E9FA6A00B5A4F1 /* MaterialDesignSymbol */ = { + isa = XCSwiftPackageProductDependency; + package = B08CE7BB25E9FA6A00B5A4F1 /* XCRemoteSwiftPackageReference "MaterialDesignSymbol" */; + productName = MaterialDesignSymbol; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = B08CE78225E9FA3100B5A4F1 /* Project object */; +} diff --git a/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 0000000..caf66a9 --- /dev/null +++ b/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,16 @@ +{ + "object": { + "pins": [ + { + "package": "MaterialDesignSymbol", + "repositoryURL": "/Users/takuya/Documents/github/MaterialDesignSymbol", + "state": { + "branch": null, + "revision": "934ba13b9ba58a406dc44188468be87096ff98f1", + "version": "2.6.8" + } + } + ] + }, + "version": 1 +} diff --git a/SampleSPM/SampleSPM/Assets.xcassets/AccentColor.colorset/Contents.json b/SampleSPM/SampleSPM/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/SampleSPM/SampleSPM/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleSPM/SampleSPM/Assets.xcassets/AppIcon.appiconset/Contents.json b/SampleSPM/SampleSPM/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/SampleSPM/SampleSPM/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleSPM/SampleSPM/Assets.xcassets/Contents.json b/SampleSPM/SampleSPM/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/SampleSPM/SampleSPM/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleSPM/SampleSPM/ContentView.swift b/SampleSPM/SampleSPM/ContentView.swift new file mode 100644 index 0000000..6e82f4a --- /dev/null +++ b/SampleSPM/SampleSPM/ContentView.swift @@ -0,0 +1,27 @@ +// +// ContentView.swift +// SampleSPM +// +// Created by tichise on 2021年2月27日 21/02/27. +// + +import SwiftUI +import MaterialDesignSymbol + +struct ContentView: View { + var body: some View { + + VStack { + Text("Hello, world!") + .padding() + Image(materialDesignIcon: .album24px, size: 30, color: Color.green) + Image(materialDesignIcon: .photo48px, size: 30, color: Color.green) + } + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/SampleSPM/SampleSPM/Info.plist b/SampleSPM/SampleSPM/Info.plist new file mode 100644 index 0000000..efc211a --- /dev/null +++ b/SampleSPM/SampleSPM/Info.plist @@ -0,0 +1,50 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + + UIApplicationSupportsIndirectInputEvents + + UILaunchScreen + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/SampleSPM/SampleSPM/Preview Content/Preview Assets.xcassets/Contents.json b/SampleSPM/SampleSPM/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/SampleSPM/SampleSPM/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/SampleSPM/SampleSPM/SampleSPMApp.swift b/SampleSPM/SampleSPM/SampleSPMApp.swift new file mode 100644 index 0000000..6562310 --- /dev/null +++ b/SampleSPM/SampleSPM/SampleSPMApp.swift @@ -0,0 +1,17 @@ +// +// SampleSPMApp.swift +// SampleSPM +// +// Created by tichise on 2021年2月27日 21/02/27. +// + +import SwiftUI + +@main +struct SampleSPMApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/SampleSPM/SampleSPMTests/Info.plist b/SampleSPM/SampleSPMTests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/SampleSPM/SampleSPMTests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/SampleSPM/SampleSPMTests/SampleSPMTests.swift b/SampleSPM/SampleSPMTests/SampleSPMTests.swift new file mode 100644 index 0000000..2237076 --- /dev/null +++ b/SampleSPM/SampleSPMTests/SampleSPMTests.swift @@ -0,0 +1,33 @@ +// +// SampleSPMTests.swift +// SampleSPMTests +// +// Created by tichise on 2021年2月27日 21/02/27. +// + +import XCTest +@testable import SampleSPM + +class SampleSPMTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/SampleSPM/SampleSPMUITests/Info.plist b/SampleSPM/SampleSPMUITests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/SampleSPM/SampleSPMUITests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/SampleSPM/SampleSPMUITests/SampleSPMUITests.swift b/SampleSPM/SampleSPMUITests/SampleSPMUITests.swift new file mode 100644 index 0000000..3fc9985 --- /dev/null +++ b/SampleSPM/SampleSPMUITests/SampleSPMUITests.swift @@ -0,0 +1,42 @@ +// +// SampleSPMUITests.swift +// SampleSPMUITests +// +// Created by tichise on 2021年2月27日 21/02/27. +// + +import XCTest + +class SampleSPMUITests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +} From 2266e07650809a258f284238d775eb646a93fcd0 Mon Sep 17 00:00:00 2001 From: tichise <43707+tichise@users.noreply.github.com> Date: Sat, 27 Feb 2021 13:25:26 +0900 Subject: [PATCH 2/3] =?UTF-8?q?MaterialDesignFont=E3=82=92singleton?= =?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4=E3=81=97=E3=81=A6=E3=80=81registerF?= =?UTF-8?q?ont=E3=82=92=E5=88=9D=E6=9C=9F=E5=8C=96=E6=99=82=E3=81=AB1?= =?UTF-8?q?=E5=BA=A6=E3=81=A0=E3=81=91=E5=AE=9F=E8=A1=8C=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MaterialDesignSymbol.podspec | 2 +- .../MaterialDesignFont.swift | 23 ++++++++++++++----- .../MaterialDesignSymbol.swift | 4 ++-- .../UILabel+Extension.swift | 2 +- 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/MaterialDesignSymbol.podspec b/MaterialDesignSymbol.podspec index 2d462c3..d5d0661 100644 --- a/MaterialDesignSymbol.podspec +++ b/MaterialDesignSymbol.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'MaterialDesignSymbol' - s.version = '2.6.8' + s.version = '2.6.9' s.license = { :type => "MIT", :text => <<-LICENSE diff --git a/Sources/MaterialDesignSymbol/MaterialDesignFont.swift b/Sources/MaterialDesignSymbol/MaterialDesignFont.swift index 119cd64..e83f071 100644 --- a/Sources/MaterialDesignSymbol/MaterialDesignFont.swift +++ b/Sources/MaterialDesignSymbol/MaterialDesignFont.swift @@ -12,7 +12,22 @@ import UIKit */ public struct MaterialDesignFont { - private static func registerFont(name: String, fileExtension: String) { + static let shared = MaterialDesignFont() + + /// 呼び出すアイコンファイル名 + private let name = "material-design-icons" + + private init() { + loadFont() + } + + /// このメソッドはSPMの場合だけ使います。 + public func loadFont() { + /// 呼び出すアイコンファイル名 + registerFont(name: name, fileExtension: "ttf") + } + + private func registerFont(name: String, fileExtension: String) { #if SWIFT_PACKAGE guard let fontURL = Bundle.module.url(forResource: name, withExtension: fileExtension) else { print("No font named \(name).\(fileExtension) was found in the module bundle") @@ -30,12 +45,8 @@ public struct MaterialDesignFont { - parameter fontSize: フォントサイズ - returns: UIFont */ - public static func fontOfSize(_ fontSize: CGFloat) -> UIFont { - /// 呼び出すアイコンファイル名 - let name = "material-design-icons" + public func fontOfSize(_ fontSize: CGFloat) -> UIFont { - registerFont(name: name, fileExtension: "ttf") - // アイコンを呼び出す if UIFont.fontNames(forFamilyName: name).count == 0 { do { diff --git a/Sources/MaterialDesignSymbol/MaterialDesignSymbol.swift b/Sources/MaterialDesignSymbol/MaterialDesignSymbol.swift index 5601559..c05aa25 100644 --- a/Sources/MaterialDesignSymbol/MaterialDesignSymbol.swift +++ b/Sources/MaterialDesignSymbol/MaterialDesignSymbol.swift @@ -27,7 +27,7 @@ public class MaterialDesignSymbol { self.mutableTextFontAttributes[NSAttributedString.Key.paragraphStyle] = paragraphStyle } - self.mutableTextFontAttributes[NSAttributedString.Key.font] = MaterialDesignFont.fontOfSize(size) + self.mutableTextFontAttributes[NSAttributedString.Key.font] = MaterialDesignFont.shared.fontOfSize(size) } public init(text: String, size: CGFloat) { @@ -40,7 +40,7 @@ public class MaterialDesignSymbol { self.mutableTextFontAttributes[NSAttributedString.Key.paragraphStyle] = paragraphStyle } - self.mutableTextFontAttributes[NSAttributedString.Key.font] = MaterialDesignFont.fontOfSize(size) + self.mutableTextFontAttributes[NSAttributedString.Key.font] = MaterialDesignFont.shared.fontOfSize(size) } // MARK: - Method diff --git a/Sources/MaterialDesignSymbol/UILabel+Extension.swift b/Sources/MaterialDesignSymbol/UILabel+Extension.swift index e1d2f90..f31e079 100644 --- a/Sources/MaterialDesignSymbol/UILabel+Extension.swift +++ b/Sources/MaterialDesignSymbol/UILabel+Extension.swift @@ -10,7 +10,7 @@ import UIKit extension UILabel { public func set(icon: MaterialDesignIconEnum, fontSize: CGFloat) { - self.font = MaterialDesignFont.fontOfSize(fontSize) + self.font = MaterialDesignFont.shared.fontOfSize(fontSize) self.text = icon.rawValue } } From e411e37c7f7186b035dce198668894379e3e3595 Mon Sep 17 00:00:00 2001 From: tichise <43707+tichise@users.noreply.github.com> Date: Sat, 27 Feb 2021 13:29:28 +0900 Subject: [PATCH 3/3] =?UTF-8?q?SampleSPM=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SampleSPM/SampleSPM.xcodeproj/project.pbxproj | 612 ------------------ .../contents.xcworkspacedata | 7 - .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../xcshareddata/swiftpm/Package.resolved | 16 - .../AccentColor.colorset/Contents.json | 11 - .../AppIcon.appiconset/Contents.json | 98 --- .../SampleSPM/Assets.xcassets/Contents.json | 6 - SampleSPM/SampleSPM/ContentView.swift | 27 - SampleSPM/SampleSPM/Info.plist | 50 -- .../Preview Assets.xcassets/Contents.json | 6 - SampleSPM/SampleSPM/SampleSPMApp.swift | 17 - SampleSPM/SampleSPMTests/Info.plist | 22 - SampleSPM/SampleSPMTests/SampleSPMTests.swift | 33 - SampleSPM/SampleSPMUITests/Info.plist | 22 - .../SampleSPMUITests/SampleSPMUITests.swift | 42 -- 15 files changed, 977 deletions(-) delete mode 100644 SampleSPM/SampleSPM.xcodeproj/project.pbxproj delete mode 100644 SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved delete mode 100644 SampleSPM/SampleSPM/Assets.xcassets/AccentColor.colorset/Contents.json delete mode 100644 SampleSPM/SampleSPM/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 SampleSPM/SampleSPM/Assets.xcassets/Contents.json delete mode 100644 SampleSPM/SampleSPM/ContentView.swift delete mode 100644 SampleSPM/SampleSPM/Info.plist delete mode 100644 SampleSPM/SampleSPM/Preview Content/Preview Assets.xcassets/Contents.json delete mode 100644 SampleSPM/SampleSPM/SampleSPMApp.swift delete mode 100644 SampleSPM/SampleSPMTests/Info.plist delete mode 100644 SampleSPM/SampleSPMTests/SampleSPMTests.swift delete mode 100644 SampleSPM/SampleSPMUITests/Info.plist delete mode 100644 SampleSPM/SampleSPMUITests/SampleSPMUITests.swift diff --git a/SampleSPM/SampleSPM.xcodeproj/project.pbxproj b/SampleSPM/SampleSPM.xcodeproj/project.pbxproj deleted file mode 100644 index 2c32079..0000000 --- a/SampleSPM/SampleSPM.xcodeproj/project.pbxproj +++ /dev/null @@ -1,612 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 52; - objects = { - -/* Begin PBXBuildFile section */ - B08CE78E25E9FA3100B5A4F1 /* SampleSPMApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = B08CE78D25E9FA3100B5A4F1 /* SampleSPMApp.swift */; }; - B08CE79025E9FA3100B5A4F1 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B08CE78F25E9FA3100B5A4F1 /* ContentView.swift */; }; - B08CE79225E9FA3300B5A4F1 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B08CE79125E9FA3300B5A4F1 /* Assets.xcassets */; }; - B08CE79525E9FA3300B5A4F1 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B08CE79425E9FA3300B5A4F1 /* Preview Assets.xcassets */; }; - B08CE7A025E9FA3400B5A4F1 /* SampleSPMTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B08CE79F25E9FA3400B5A4F1 /* SampleSPMTests.swift */; }; - B08CE7AB25E9FA3400B5A4F1 /* SampleSPMUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B08CE7AA25E9FA3400B5A4F1 /* SampleSPMUITests.swift */; }; - B08CE7BD25E9FA6A00B5A4F1 /* MaterialDesignSymbol in Frameworks */ = {isa = PBXBuildFile; productRef = B08CE7BC25E9FA6A00B5A4F1 /* MaterialDesignSymbol */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - B08CE79C25E9FA3400B5A4F1 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = B08CE78225E9FA3100B5A4F1 /* Project object */; - proxyType = 1; - remoteGlobalIDString = B08CE78925E9FA3100B5A4F1; - remoteInfo = SampleSPM; - }; - B08CE7A725E9FA3400B5A4F1 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = B08CE78225E9FA3100B5A4F1 /* Project object */; - proxyType = 1; - remoteGlobalIDString = B08CE78925E9FA3100B5A4F1; - remoteInfo = SampleSPM; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - B08CE78A25E9FA3100B5A4F1 /* SampleSPM.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SampleSPM.app; sourceTree = BUILT_PRODUCTS_DIR; }; - B08CE78D25E9FA3100B5A4F1 /* SampleSPMApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SampleSPMApp.swift; sourceTree = ""; }; - B08CE78F25E9FA3100B5A4F1 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; - B08CE79125E9FA3300B5A4F1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - B08CE79425E9FA3300B5A4F1 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; - B08CE79625E9FA3300B5A4F1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - B08CE79B25E9FA3400B5A4F1 /* SampleSPMTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SampleSPMTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - B08CE79F25E9FA3400B5A4F1 /* SampleSPMTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SampleSPMTests.swift; sourceTree = ""; }; - B08CE7A125E9FA3400B5A4F1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - B08CE7A625E9FA3400B5A4F1 /* SampleSPMUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SampleSPMUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - B08CE7AA25E9FA3400B5A4F1 /* SampleSPMUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SampleSPMUITests.swift; sourceTree = ""; }; - B08CE7AC25E9FA3400B5A4F1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - B08CE78725E9FA3100B5A4F1 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - B08CE7BD25E9FA6A00B5A4F1 /* MaterialDesignSymbol in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B08CE79825E9FA3400B5A4F1 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B08CE7A325E9FA3400B5A4F1 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - B08CE78125E9FA3100B5A4F1 = { - isa = PBXGroup; - children = ( - B08CE78C25E9FA3100B5A4F1 /* SampleSPM */, - B08CE79E25E9FA3400B5A4F1 /* SampleSPMTests */, - B08CE7A925E9FA3400B5A4F1 /* SampleSPMUITests */, - B08CE78B25E9FA3100B5A4F1 /* Products */, - ); - sourceTree = ""; - }; - B08CE78B25E9FA3100B5A4F1 /* Products */ = { - isa = PBXGroup; - children = ( - B08CE78A25E9FA3100B5A4F1 /* SampleSPM.app */, - B08CE79B25E9FA3400B5A4F1 /* SampleSPMTests.xctest */, - B08CE7A625E9FA3400B5A4F1 /* SampleSPMUITests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - B08CE78C25E9FA3100B5A4F1 /* SampleSPM */ = { - isa = PBXGroup; - children = ( - B08CE78D25E9FA3100B5A4F1 /* SampleSPMApp.swift */, - B08CE78F25E9FA3100B5A4F1 /* ContentView.swift */, - B08CE79125E9FA3300B5A4F1 /* Assets.xcassets */, - B08CE79625E9FA3300B5A4F1 /* Info.plist */, - B08CE79325E9FA3300B5A4F1 /* Preview Content */, - ); - path = SampleSPM; - sourceTree = ""; - }; - B08CE79325E9FA3300B5A4F1 /* Preview Content */ = { - isa = PBXGroup; - children = ( - B08CE79425E9FA3300B5A4F1 /* Preview Assets.xcassets */, - ); - path = "Preview Content"; - sourceTree = ""; - }; - B08CE79E25E9FA3400B5A4F1 /* SampleSPMTests */ = { - isa = PBXGroup; - children = ( - B08CE79F25E9FA3400B5A4F1 /* SampleSPMTests.swift */, - B08CE7A125E9FA3400B5A4F1 /* Info.plist */, - ); - path = SampleSPMTests; - sourceTree = ""; - }; - B08CE7A925E9FA3400B5A4F1 /* SampleSPMUITests */ = { - isa = PBXGroup; - children = ( - B08CE7AA25E9FA3400B5A4F1 /* SampleSPMUITests.swift */, - B08CE7AC25E9FA3400B5A4F1 /* Info.plist */, - ); - path = SampleSPMUITests; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - B08CE78925E9FA3100B5A4F1 /* SampleSPM */ = { - isa = PBXNativeTarget; - buildConfigurationList = B08CE7AF25E9FA3400B5A4F1 /* Build configuration list for PBXNativeTarget "SampleSPM" */; - buildPhases = ( - B08CE78625E9FA3100B5A4F1 /* Sources */, - B08CE78725E9FA3100B5A4F1 /* Frameworks */, - B08CE78825E9FA3100B5A4F1 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = SampleSPM; - packageProductDependencies = ( - B08CE7BC25E9FA6A00B5A4F1 /* MaterialDesignSymbol */, - ); - productName = SampleSPM; - productReference = B08CE78A25E9FA3100B5A4F1 /* SampleSPM.app */; - productType = "com.apple.product-type.application"; - }; - B08CE79A25E9FA3400B5A4F1 /* SampleSPMTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = B08CE7B225E9FA3400B5A4F1 /* Build configuration list for PBXNativeTarget "SampleSPMTests" */; - buildPhases = ( - B08CE79725E9FA3400B5A4F1 /* Sources */, - B08CE79825E9FA3400B5A4F1 /* Frameworks */, - B08CE79925E9FA3400B5A4F1 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - B08CE79D25E9FA3400B5A4F1 /* PBXTargetDependency */, - ); - name = SampleSPMTests; - productName = SampleSPMTests; - productReference = B08CE79B25E9FA3400B5A4F1 /* SampleSPMTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - B08CE7A525E9FA3400B5A4F1 /* SampleSPMUITests */ = { - isa = PBXNativeTarget; - buildConfigurationList = B08CE7B525E9FA3400B5A4F1 /* Build configuration list for PBXNativeTarget "SampleSPMUITests" */; - buildPhases = ( - B08CE7A225E9FA3400B5A4F1 /* Sources */, - B08CE7A325E9FA3400B5A4F1 /* Frameworks */, - B08CE7A425E9FA3400B5A4F1 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - B08CE7A825E9FA3400B5A4F1 /* PBXTargetDependency */, - ); - name = SampleSPMUITests; - productName = SampleSPMUITests; - productReference = B08CE7A625E9FA3400B5A4F1 /* SampleSPMUITests.xctest */; - productType = "com.apple.product-type.bundle.ui-testing"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - B08CE78225E9FA3100B5A4F1 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 1240; - LastUpgradeCheck = 1240; - TargetAttributes = { - B08CE78925E9FA3100B5A4F1 = { - CreatedOnToolsVersion = 12.4; - }; - B08CE79A25E9FA3400B5A4F1 = { - CreatedOnToolsVersion = 12.4; - TestTargetID = B08CE78925E9FA3100B5A4F1; - }; - B08CE7A525E9FA3400B5A4F1 = { - CreatedOnToolsVersion = 12.4; - TestTargetID = B08CE78925E9FA3100B5A4F1; - }; - }; - }; - buildConfigurationList = B08CE78525E9FA3100B5A4F1 /* Build configuration list for PBXProject "SampleSPM" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = B08CE78125E9FA3100B5A4F1; - packageReferences = ( - B08CE7BB25E9FA6A00B5A4F1 /* XCRemoteSwiftPackageReference "MaterialDesignSymbol" */, - ); - productRefGroup = B08CE78B25E9FA3100B5A4F1 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - B08CE78925E9FA3100B5A4F1 /* SampleSPM */, - B08CE79A25E9FA3400B5A4F1 /* SampleSPMTests */, - B08CE7A525E9FA3400B5A4F1 /* SampleSPMUITests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - B08CE78825E9FA3100B5A4F1 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - B08CE79525E9FA3300B5A4F1 /* Preview Assets.xcassets in Resources */, - B08CE79225E9FA3300B5A4F1 /* Assets.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B08CE79925E9FA3400B5A4F1 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B08CE7A425E9FA3400B5A4F1 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - B08CE78625E9FA3100B5A4F1 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - B08CE79025E9FA3100B5A4F1 /* ContentView.swift in Sources */, - B08CE78E25E9FA3100B5A4F1 /* SampleSPMApp.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B08CE79725E9FA3400B5A4F1 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - B08CE7A025E9FA3400B5A4F1 /* SampleSPMTests.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - B08CE7A225E9FA3400B5A4F1 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - B08CE7AB25E9FA3400B5A4F1 /* SampleSPMUITests.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - B08CE79D25E9FA3400B5A4F1 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = B08CE78925E9FA3100B5A4F1 /* SampleSPM */; - targetProxy = B08CE79C25E9FA3400B5A4F1 /* PBXContainerItemProxy */; - }; - B08CE7A825E9FA3400B5A4F1 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = B08CE78925E9FA3100B5A4F1 /* SampleSPM */; - targetProxy = B08CE7A725E9FA3400B5A4F1 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - B08CE7AD25E9FA3400B5A4F1 /* 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; - }; - B08CE7AE25E9FA3400B5A4F1 /* 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; - }; - B08CE7B025E9FA3400B5A4F1 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_ASSET_PATHS = "\"SampleSPM/Preview Content\""; - DEVELOPMENT_TEAM = WBZ98LPU7V; - ENABLE_PREVIEWS = YES; - INFOPLIST_FILE = SampleSPM/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = ichise.SampleSPM; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - B08CE7B125E9FA3400B5A4F1 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_ASSET_PATHS = "\"SampleSPM/Preview Content\""; - DEVELOPMENT_TEAM = WBZ98LPU7V; - ENABLE_PREVIEWS = YES; - INFOPLIST_FILE = SampleSPM/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = ichise.SampleSPM; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; - B08CE7B325E9FA3400B5A4F1 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = WBZ98LPU7V; - INFOPLIST_FILE = SampleSPMTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = ichise.SampleSPMTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SampleSPM.app/SampleSPM"; - }; - name = Debug; - }; - B08CE7B425E9FA3400B5A4F1 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = WBZ98LPU7V; - INFOPLIST_FILE = SampleSPMTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = ichise.SampleSPMTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SampleSPM.app/SampleSPM"; - }; - name = Release; - }; - B08CE7B625E9FA3400B5A4F1 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = WBZ98LPU7V; - INFOPLIST_FILE = SampleSPMUITests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = ichise.SampleSPMUITests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - TEST_TARGET_NAME = SampleSPM; - }; - name = Debug; - }; - B08CE7B725E9FA3400B5A4F1 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = WBZ98LPU7V; - INFOPLIST_FILE = SampleSPMUITests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = ichise.SampleSPMUITests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - TEST_TARGET_NAME = SampleSPM; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - B08CE78525E9FA3100B5A4F1 /* Build configuration list for PBXProject "SampleSPM" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - B08CE7AD25E9FA3400B5A4F1 /* Debug */, - B08CE7AE25E9FA3400B5A4F1 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - B08CE7AF25E9FA3400B5A4F1 /* Build configuration list for PBXNativeTarget "SampleSPM" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - B08CE7B025E9FA3400B5A4F1 /* Debug */, - B08CE7B125E9FA3400B5A4F1 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - B08CE7B225E9FA3400B5A4F1 /* Build configuration list for PBXNativeTarget "SampleSPMTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - B08CE7B325E9FA3400B5A4F1 /* Debug */, - B08CE7B425E9FA3400B5A4F1 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - B08CE7B525E9FA3400B5A4F1 /* Build configuration list for PBXNativeTarget "SampleSPMUITests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - B08CE7B625E9FA3400B5A4F1 /* Debug */, - B08CE7B725E9FA3400B5A4F1 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - -/* Begin XCRemoteSwiftPackageReference section */ - B08CE7BB25E9FA6A00B5A4F1 /* XCRemoteSwiftPackageReference "MaterialDesignSymbol" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "file:///Users/takuya/Documents/github/MaterialDesignSymbol"; - requirement = { - kind = upToNextMajorVersion; - minimumVersion = 2.6.8; - }; - }; -/* End XCRemoteSwiftPackageReference section */ - -/* Begin XCSwiftPackageProductDependency section */ - B08CE7BC25E9FA6A00B5A4F1 /* MaterialDesignSymbol */ = { - isa = XCSwiftPackageProductDependency; - package = B08CE7BB25E9FA6A00B5A4F1 /* XCRemoteSwiftPackageReference "MaterialDesignSymbol" */; - productName = MaterialDesignSymbol; - }; -/* End XCSwiftPackageProductDependency section */ - }; - rootObject = B08CE78225E9FA3100B5A4F1 /* Project object */; -} diff --git a/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved deleted file mode 100644 index caf66a9..0000000 --- a/SampleSPM/SampleSPM.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,16 +0,0 @@ -{ - "object": { - "pins": [ - { - "package": "MaterialDesignSymbol", - "repositoryURL": "/Users/takuya/Documents/github/MaterialDesignSymbol", - "state": { - "branch": null, - "revision": "934ba13b9ba58a406dc44188468be87096ff98f1", - "version": "2.6.8" - } - } - ] - }, - "version": 1 -} diff --git a/SampleSPM/SampleSPM/Assets.xcassets/AccentColor.colorset/Contents.json b/SampleSPM/SampleSPM/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb87897..0000000 --- a/SampleSPM/SampleSPM/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SampleSPM/SampleSPM/Assets.xcassets/AppIcon.appiconset/Contents.json b/SampleSPM/SampleSPM/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 9221b9b..0000000 --- a/SampleSPM/SampleSPM/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "20x20" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "29x29" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "40x40" - }, - { - "idiom" : "iphone", - "scale" : "2x", - "size" : "60x60" - }, - { - "idiom" : "iphone", - "scale" : "3x", - "size" : "60x60" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "20x20" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "40x40" - }, - { - "idiom" : "ipad", - "scale" : "1x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "76x76" - }, - { - "idiom" : "ipad", - "scale" : "2x", - "size" : "83.5x83.5" - }, - { - "idiom" : "ios-marketing", - "scale" : "1x", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SampleSPM/SampleSPM/Assets.xcassets/Contents.json b/SampleSPM/SampleSPM/Assets.xcassets/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/SampleSPM/SampleSPM/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SampleSPM/SampleSPM/ContentView.swift b/SampleSPM/SampleSPM/ContentView.swift deleted file mode 100644 index 6e82f4a..0000000 --- a/SampleSPM/SampleSPM/ContentView.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// ContentView.swift -// SampleSPM -// -// Created by tichise on 2021年2月27日 21/02/27. -// - -import SwiftUI -import MaterialDesignSymbol - -struct ContentView: View { - var body: some View { - - VStack { - Text("Hello, world!") - .padding() - Image(materialDesignIcon: .album24px, size: 30, color: Color.green) - Image(materialDesignIcon: .photo48px, size: 30, color: Color.green) - } - } -} - -struct ContentView_Previews: PreviewProvider { - static var previews: some View { - ContentView() - } -} diff --git a/SampleSPM/SampleSPM/Info.plist b/SampleSPM/SampleSPM/Info.plist deleted file mode 100644 index efc211a..0000000 --- a/SampleSPM/SampleSPM/Info.plist +++ /dev/null @@ -1,50 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - - UIApplicationSupportsIndirectInputEvents - - UILaunchScreen - - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/SampleSPM/SampleSPM/Preview Content/Preview Assets.xcassets/Contents.json b/SampleSPM/SampleSPM/Preview Content/Preview Assets.xcassets/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/SampleSPM/SampleSPM/Preview Content/Preview Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/SampleSPM/SampleSPM/SampleSPMApp.swift b/SampleSPM/SampleSPM/SampleSPMApp.swift deleted file mode 100644 index 6562310..0000000 --- a/SampleSPM/SampleSPM/SampleSPMApp.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// SampleSPMApp.swift -// SampleSPM -// -// Created by tichise on 2021年2月27日 21/02/27. -// - -import SwiftUI - -@main -struct SampleSPMApp: App { - var body: some Scene { - WindowGroup { - ContentView() - } - } -} diff --git a/SampleSPM/SampleSPMTests/Info.plist b/SampleSPM/SampleSPMTests/Info.plist deleted file mode 100644 index 64d65ca..0000000 --- a/SampleSPM/SampleSPMTests/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/SampleSPM/SampleSPMTests/SampleSPMTests.swift b/SampleSPM/SampleSPMTests/SampleSPMTests.swift deleted file mode 100644 index 2237076..0000000 --- a/SampleSPM/SampleSPMTests/SampleSPMTests.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// SampleSPMTests.swift -// SampleSPMTests -// -// Created by tichise on 2021年2月27日 21/02/27. -// - -import XCTest -@testable import SampleSPM - -class SampleSPMTests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testExample() throws { - // This is an example of a functional test case. - // Use XCTAssert and related functions to verify your tests produce the correct results. - } - - func testPerformanceExample() throws { - // This is an example of a performance test case. - self.measure { - // Put the code you want to measure the time of here. - } - } - -} diff --git a/SampleSPM/SampleSPMUITests/Info.plist b/SampleSPM/SampleSPMUITests/Info.plist deleted file mode 100644 index 64d65ca..0000000 --- a/SampleSPM/SampleSPMUITests/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - diff --git a/SampleSPM/SampleSPMUITests/SampleSPMUITests.swift b/SampleSPM/SampleSPMUITests/SampleSPMUITests.swift deleted file mode 100644 index 3fc9985..0000000 --- a/SampleSPM/SampleSPMUITests/SampleSPMUITests.swift +++ /dev/null @@ -1,42 +0,0 @@ -// -// SampleSPMUITests.swift -// SampleSPMUITests -// -// Created by tichise on 2021年2月27日 21/02/27. -// - -import XCTest - -class SampleSPMUITests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - - // In UI tests it is usually best to stop immediately when a failure occurs. - continueAfterFailure = false - - // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - func testExample() throws { - // UI tests must launch the application that they test. - let app = XCUIApplication() - app.launch() - - // Use recording to get started writing UI tests. - // Use XCTAssert and related functions to verify your tests produce the correct results. - } - - func testLaunchPerformance() throws { - if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { - // This measures how long it takes to launch your application. - measure(metrics: [XCTApplicationLaunchMetric()]) { - XCUIApplication().launch() - } - } - } -}