diff --git a/Example-Xcode11/Example-Xcode11.xcodeproj/project.pbxproj b/Example-Xcode11/Example-Xcode11.xcodeproj/project.pbxproj new file mode 100644 index 0000000..4f76c8c --- /dev/null +++ b/Example-Xcode11/Example-Xcode11.xcodeproj/project.pbxproj @@ -0,0 +1,663 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 52; + objects = { + +/* Begin PBXBuildFile section */ + CDF2C8E1249722F800C81274 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDF2C8E0249722F800C81274 /* AppDelegate.swift */; }; + CDF2C8E3249722F800C81274 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDF2C8E2249722F800C81274 /* SceneDelegate.swift */; }; + CDF2C8E8249722F800C81274 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CDF2C8E6249722F800C81274 /* Main.storyboard */; }; + CDF2C8EA249722F900C81274 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CDF2C8E9249722F900C81274 /* Assets.xcassets */; }; + CDF2C8ED249722F900C81274 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CDF2C8EB249722F900C81274 /* LaunchScreen.storyboard */; }; + CDF2C8F8249722F900C81274 /* Example_Xcode11Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDF2C8F7249722F900C81274 /* Example_Xcode11Tests.swift */; }; + CDF2C903249722F900C81274 /* Example_Xcode11UITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDF2C902249722F900C81274 /* Example_Xcode11UITests.swift */; }; + CDF2C9152497237300C81274 /* Inspire in Frameworks */ = {isa = PBXBuildFile; productRef = CDF2C9142497237300C81274 /* Inspire */; }; + CDF2C920249724F700C81274 /* TestAlertVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDF2C919249724F600C81274 /* TestAlertVC.swift */; }; + CDF2C921249724F700C81274 /* BaseListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDF2C91A249724F600C81274 /* BaseListVC.swift */; }; + CDF2C922249724F700C81274 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDF2C91B249724F600C81274 /* ViewController.swift */; }; + CDF2C923249724F700C81274 /* TestToastVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDF2C91C249724F600C81274 /* TestToastVC.swift */; }; + CDF2C924249724F700C81274 /* EmptyVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDF2C91D249724F600C81274 /* EmptyVC.swift */; }; + CDF2C925249724F700C81274 /* RootVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDF2C91E249724F600C81274 /* RootVC.swift */; }; + CDF2C926249724F700C81274 /* TestGuardVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDF2C91F249724F700C81274 /* TestGuardVC.swift */; }; + CDF2C94A2497577C00C81274 /* ProHUD in Frameworks */ = {isa = PBXBuildFile; productRef = CDF2C9492497577C00C81274 /* ProHUD */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + CDF2C8F4249722F900C81274 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = CDF2C8D5249722F800C81274 /* Project object */; + proxyType = 1; + remoteGlobalIDString = CDF2C8DC249722F800C81274; + remoteInfo = "Example-Xcode11"; + }; + CDF2C8FF249722F900C81274 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = CDF2C8D5249722F800C81274 /* Project object */; + proxyType = 1; + remoteGlobalIDString = CDF2C8DC249722F800C81274; + remoteInfo = "Example-Xcode11"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + CDF2C8DD249722F800C81274 /* ProHUD Xcode11.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ProHUD Xcode11.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + CDF2C8E0249722F800C81274 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + CDF2C8E2249722F800C81274 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + CDF2C8E7249722F800C81274 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + CDF2C8E9249722F900C81274 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + CDF2C8EC249722F900C81274 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + CDF2C8EE249722F900C81274 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + CDF2C8F3249722F900C81274 /* Example-Xcode11Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Example-Xcode11Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + CDF2C8F7249722F900C81274 /* Example_Xcode11Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Example_Xcode11Tests.swift; sourceTree = ""; }; + CDF2C8F9249722F900C81274 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + CDF2C8FE249722F900C81274 /* Example-Xcode11UITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Example-Xcode11UITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + CDF2C902249722F900C81274 /* Example_Xcode11UITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Example_Xcode11UITests.swift; sourceTree = ""; }; + CDF2C904249722F900C81274 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + CDF2C919249724F600C81274 /* TestAlertVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TestAlertVC.swift; path = ../../Example/Example/TestAlertVC.swift; sourceTree = ""; }; + CDF2C91A249724F600C81274 /* BaseListVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = BaseListVC.swift; path = ../../Example/Example/BaseListVC.swift; sourceTree = ""; }; + CDF2C91B249724F600C81274 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ViewController.swift; path = ../../Example/Example/ViewController.swift; sourceTree = ""; }; + CDF2C91C249724F600C81274 /* TestToastVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TestToastVC.swift; path = ../../Example/Example/TestToastVC.swift; sourceTree = ""; }; + CDF2C91D249724F600C81274 /* EmptyVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = EmptyVC.swift; path = ../../Example/Example/EmptyVC.swift; sourceTree = ""; }; + CDF2C91E249724F600C81274 /* RootVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RootVC.swift; path = ../../Example/Example/RootVC.swift; sourceTree = ""; }; + CDF2C91F249724F700C81274 /* TestGuardVC.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = TestGuardVC.swift; path = ../../Example/Example/TestGuardVC.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + CDF2C8DA249722F800C81274 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + CDF2C94A2497577C00C81274 /* ProHUD in Frameworks */, + CDF2C9152497237300C81274 /* Inspire in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CDF2C8F0249722F900C81274 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CDF2C8FB249722F900C81274 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + CDF2C8D4249722F800C81274 = { + isa = PBXGroup; + children = ( + CDF2C8DF249722F800C81274 /* Example-Xcode11 */, + CDF2C8F6249722F900C81274 /* Example-Xcode11Tests */, + CDF2C901249722F900C81274 /* Example-Xcode11UITests */, + CDF2C8DE249722F800C81274 /* Products */, + ); + sourceTree = ""; + }; + CDF2C8DE249722F800C81274 /* Products */ = { + isa = PBXGroup; + children = ( + CDF2C8DD249722F800C81274 /* ProHUD Xcode11.app */, + CDF2C8F3249722F900C81274 /* Example-Xcode11Tests.xctest */, + CDF2C8FE249722F900C81274 /* Example-Xcode11UITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + CDF2C8DF249722F800C81274 /* Example-Xcode11 */ = { + isa = PBXGroup; + children = ( + CDF2C8E0249722F800C81274 /* AppDelegate.swift */, + CDF2C8E2249722F800C81274 /* SceneDelegate.swift */, + CDF2C91F249724F700C81274 /* TestGuardVC.swift */, + CDF2C91C249724F600C81274 /* TestToastVC.swift */, + CDF2C91A249724F600C81274 /* BaseListVC.swift */, + CDF2C91D249724F600C81274 /* EmptyVC.swift */, + CDF2C91E249724F600C81274 /* RootVC.swift */, + CDF2C919249724F600C81274 /* TestAlertVC.swift */, + CDF2C91B249724F600C81274 /* ViewController.swift */, + CDF2C8E6249722F800C81274 /* Main.storyboard */, + CDF2C8E9249722F900C81274 /* Assets.xcassets */, + CDF2C8EB249722F900C81274 /* LaunchScreen.storyboard */, + CDF2C8EE249722F900C81274 /* Info.plist */, + ); + path = "Example-Xcode11"; + sourceTree = ""; + }; + CDF2C8F6249722F900C81274 /* Example-Xcode11Tests */ = { + isa = PBXGroup; + children = ( + CDF2C8F7249722F900C81274 /* Example_Xcode11Tests.swift */, + CDF2C8F9249722F900C81274 /* Info.plist */, + ); + path = "Example-Xcode11Tests"; + sourceTree = ""; + }; + CDF2C901249722F900C81274 /* Example-Xcode11UITests */ = { + isa = PBXGroup; + children = ( + CDF2C902249722F900C81274 /* Example_Xcode11UITests.swift */, + CDF2C904249722F900C81274 /* Info.plist */, + ); + path = "Example-Xcode11UITests"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + CDF2C8DC249722F800C81274 /* Example-Xcode11 */ = { + isa = PBXNativeTarget; + buildConfigurationList = CDF2C907249722F900C81274 /* Build configuration list for PBXNativeTarget "Example-Xcode11" */; + buildPhases = ( + CDF2C8D9249722F800C81274 /* Sources */, + CDF2C8DA249722F800C81274 /* Frameworks */, + CDF2C8DB249722F800C81274 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Example-Xcode11"; + packageProductDependencies = ( + CDF2C9142497237300C81274 /* Inspire */, + CDF2C9492497577C00C81274 /* ProHUD */, + ); + productName = "Example-Xcode11"; + productReference = CDF2C8DD249722F800C81274 /* ProHUD Xcode11.app */; + productType = "com.apple.product-type.application"; + }; + CDF2C8F2249722F900C81274 /* Example-Xcode11Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = CDF2C90A249722F900C81274 /* Build configuration list for PBXNativeTarget "Example-Xcode11Tests" */; + buildPhases = ( + CDF2C8EF249722F900C81274 /* Sources */, + CDF2C8F0249722F900C81274 /* Frameworks */, + CDF2C8F1249722F900C81274 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + CDF2C8F5249722F900C81274 /* PBXTargetDependency */, + ); + name = "Example-Xcode11Tests"; + productName = "Example-Xcode11Tests"; + productReference = CDF2C8F3249722F900C81274 /* Example-Xcode11Tests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + CDF2C8FD249722F900C81274 /* Example-Xcode11UITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = CDF2C90D249722F900C81274 /* Build configuration list for PBXNativeTarget "Example-Xcode11UITests" */; + buildPhases = ( + CDF2C8FA249722F900C81274 /* Sources */, + CDF2C8FB249722F900C81274 /* Frameworks */, + CDF2C8FC249722F900C81274 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + CDF2C900249722F900C81274 /* PBXTargetDependency */, + ); + name = "Example-Xcode11UITests"; + productName = "Example-Xcode11UITests"; + productReference = CDF2C8FE249722F900C81274 /* Example-Xcode11UITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + CDF2C8D5249722F800C81274 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1150; + LastUpgradeCheck = 1150; + ORGANIZATIONNAME = xaoxuu; + TargetAttributes = { + CDF2C8DC249722F800C81274 = { + CreatedOnToolsVersion = 11.5; + }; + CDF2C8F2249722F900C81274 = { + CreatedOnToolsVersion = 11.5; + TestTargetID = CDF2C8DC249722F800C81274; + }; + CDF2C8FD249722F900C81274 = { + CreatedOnToolsVersion = 11.5; + TestTargetID = CDF2C8DC249722F800C81274; + }; + }; + }; + buildConfigurationList = CDF2C8D8249722F800C81274 /* Build configuration list for PBXProject "Example-Xcode11" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = CDF2C8D4249722F800C81274; + packageReferences = ( + CDF2C9132497237300C81274 /* XCRemoteSwiftPackageReference "Inspire" */, + CDF2C9482497577C00C81274 /* XCRemoteSwiftPackageReference "ProHUD" */, + ); + productRefGroup = CDF2C8DE249722F800C81274 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + CDF2C8DC249722F800C81274 /* Example-Xcode11 */, + CDF2C8F2249722F900C81274 /* Example-Xcode11Tests */, + CDF2C8FD249722F900C81274 /* Example-Xcode11UITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + CDF2C8DB249722F800C81274 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CDF2C8ED249722F900C81274 /* LaunchScreen.storyboard in Resources */, + CDF2C8EA249722F900C81274 /* Assets.xcassets in Resources */, + CDF2C8E8249722F800C81274 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CDF2C8F1249722F900C81274 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CDF2C8FC249722F900C81274 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + CDF2C8D9249722F800C81274 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CDF2C924249724F700C81274 /* EmptyVC.swift in Sources */, + CDF2C922249724F700C81274 /* ViewController.swift in Sources */, + CDF2C921249724F700C81274 /* BaseListVC.swift in Sources */, + CDF2C923249724F700C81274 /* TestToastVC.swift in Sources */, + CDF2C920249724F700C81274 /* TestAlertVC.swift in Sources */, + CDF2C926249724F700C81274 /* TestGuardVC.swift in Sources */, + CDF2C925249724F700C81274 /* RootVC.swift in Sources */, + CDF2C8E1249722F800C81274 /* AppDelegate.swift in Sources */, + CDF2C8E3249722F800C81274 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CDF2C8EF249722F900C81274 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CDF2C8F8249722F900C81274 /* Example_Xcode11Tests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CDF2C8FA249722F900C81274 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CDF2C903249722F900C81274 /* Example_Xcode11UITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + CDF2C8F5249722F900C81274 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = CDF2C8DC249722F800C81274 /* Example-Xcode11 */; + targetProxy = CDF2C8F4249722F900C81274 /* PBXContainerItemProxy */; + }; + CDF2C900249722F900C81274 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = CDF2C8DC249722F800C81274 /* Example-Xcode11 */; + targetProxy = CDF2C8FF249722F900C81274 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + CDF2C8E6249722F800C81274 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + CDF2C8E7249722F800C81274 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + CDF2C8EB249722F900C81274 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + CDF2C8EC249722F900C81274 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + CDF2C905249722F900C81274 /* 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_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 = 13.0; + 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; + }; + CDF2C906249722F900C81274 /* 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_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 = 13.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + CDF2C908249722F900C81274 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 34W5TB5KD2; + INFOPLIST_FILE = "Example-Xcode11/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.xaoxuu.Example-Xcode11"; + PRODUCT_NAME = "ProHUD Xcode11"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + CDF2C909249722F900C81274 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 34W5TB5KD2; + INFOPLIST_FILE = "Example-Xcode11/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.xaoxuu.Example-Xcode11"; + PRODUCT_NAME = "ProHUD Xcode11"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + CDF2C90B249722F900C81274 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 34W5TB5KD2; + INFOPLIST_FILE = "Example-Xcode11Tests/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.xaoxuu.Example-Xcode11Tests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example-Xcode11.app/Example-Xcode11"; + }; + name = Debug; + }; + CDF2C90C249722F900C81274 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 34W5TB5KD2; + INFOPLIST_FILE = "Example-Xcode11Tests/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 13.5; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.xaoxuu.Example-Xcode11Tests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example-Xcode11.app/Example-Xcode11"; + }; + name = Release; + }; + CDF2C90E249722F900C81274 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 34W5TB5KD2; + INFOPLIST_FILE = "Example-Xcode11UITests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.xaoxuu.Example-Xcode11UITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = "Example-Xcode11"; + }; + name = Debug; + }; + CDF2C90F249722F900C81274 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 34W5TB5KD2; + INFOPLIST_FILE = "Example-Xcode11UITests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.xaoxuu.Example-Xcode11UITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = "Example-Xcode11"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + CDF2C8D8249722F800C81274 /* Build configuration list for PBXProject "Example-Xcode11" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CDF2C905249722F900C81274 /* Debug */, + CDF2C906249722F900C81274 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CDF2C907249722F900C81274 /* Build configuration list for PBXNativeTarget "Example-Xcode11" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CDF2C908249722F900C81274 /* Debug */, + CDF2C909249722F900C81274 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CDF2C90A249722F900C81274 /* Build configuration list for PBXNativeTarget "Example-Xcode11Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CDF2C90B249722F900C81274 /* Debug */, + CDF2C90C249722F900C81274 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CDF2C90D249722F900C81274 /* Build configuration list for PBXNativeTarget "Example-Xcode11UITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CDF2C90E249722F900C81274 /* Debug */, + CDF2C90F249722F900C81274 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + CDF2C9132497237300C81274 /* XCRemoteSwiftPackageReference "Inspire" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/xaoxuu/Inspire"; + requirement = { + branch = master; + kind = branch; + }; + }; + CDF2C9482497577C00C81274 /* XCRemoteSwiftPackageReference "ProHUD" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/xaoxuu/ProHUD"; + requirement = { + branch = master; + kind = branch; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + CDF2C9142497237300C81274 /* Inspire */ = { + isa = XCSwiftPackageProductDependency; + package = CDF2C9132497237300C81274 /* XCRemoteSwiftPackageReference "Inspire" */; + productName = Inspire; + }; + CDF2C9492497577C00C81274 /* ProHUD */ = { + isa = XCSwiftPackageProductDependency; + package = CDF2C9482497577C00C81274 /* XCRemoteSwiftPackageReference "ProHUD" */; + productName = ProHUD; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = CDF2C8D5249722F800C81274 /* Project object */; +} diff --git a/Example-Xcode11/Example-Xcode11.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example-Xcode11/Example-Xcode11.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/Example-Xcode11/Example-Xcode11.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Example-Xcode11/Example-Xcode11.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Example-Xcode11/Example-Xcode11.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Example-Xcode11/Example-Xcode11.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Example-Xcode11/Example-Xcode11.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 0000000..1591c44 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,34 @@ +{ + "object": { + "pins": [ + { + "package": "Inspire", + "repositoryURL": "https://github.com/xaoxuu/Inspire", + "state": { + "branch": "master", + "revision": "cad0c64e6995a06ee3bf3ed7c632ad27c1b8ffb1", + "version": null + } + }, + { + "package": "ProHUD", + "repositoryURL": "https://github.com/xaoxuu/ProHUD", + "state": { + "branch": "master", + "revision": "95b4783b16dbd18aa72337656d896bb0d9da95a7", + "version": null + } + }, + { + "package": "SnapKit", + "repositoryURL": "https://github.com/SnapKit/SnapKit.git", + "state": { + "branch": null, + "revision": "d458564516e5676af9c70b4f4b2a9178294f1bc6", + "version": "5.0.1" + } + } + ] + }, + "version": 1 +} diff --git a/Example-Xcode11/Example-Xcode11/AppDelegate.swift b/Example-Xcode11/Example-Xcode11/AppDelegate.swift new file mode 100644 index 0000000..57e1501 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/AppDelegate.swift @@ -0,0 +1,43 @@ +// +// AppDelegate.swift +// Example-Xcode11 +// +// Created by xaoxuu on 2020/6/15. +// Copyright © 2020 xaoxuu. All rights reserved. +// + +import UIKit +@_exported import ProHUD +typealias ProAlert = ProHUD.Alert +typealias ProToast = ProHUD.Toast +typealias ProGuard = ProHUD.Guard + + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + + return true + } + + // MARK: UISceneSession Lifecycle + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. + } + + +} + diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Contents.json b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..dfa4259 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,116 @@ +{ + "images" : [ + { + "filename" : "Icon-Notification@2x.png", + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "filename" : "Icon-Notification@3x.png", + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "filename" : "Icon-Small@2x.png", + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "filename" : "Icon-Small@3x.png", + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "filename" : "Icon-Small-40@2x.png", + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "filename" : "Icon-Small-40@3x.png", + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "filename" : "Icon-60@2x.png", + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "filename" : "Icon-60@3x.png", + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "filename" : "Icon-Notification.png", + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "filename" : "Icon-Notification@2x.png", + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "filename" : "Icon-Small.png", + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "filename" : "Icon-Small@2x.png", + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "filename" : "Icon-Small-40.png", + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "filename" : "Icon-Small-40@2x.png", + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "filename" : "Icon-76.png", + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "filename" : "Icon-76@2x.png", + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "filename" : "Icon-83.5@2x.png", + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "filename" : "icon.png", + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png new file mode 100644 index 0000000..b06f8aa Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png new file mode 100644 index 0000000..f082a46 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-76.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-76.png new file mode 100644 index 0000000..b009ee9 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-76.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png new file mode 100644 index 0000000..6adee3d Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png new file mode 100644 index 0000000..f8ec671 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Notification.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Notification.png new file mode 100644 index 0000000..ac4f461 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Notification.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x.png new file mode 100644 index 0000000..9f7724c Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Notification@3x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Notification@3x.png new file mode 100644 index 0000000..5dc17d9 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Notification@3x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png new file mode 100644 index 0000000..9f7724c Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png new file mode 100644 index 0000000..e2a0124 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png new file mode 100644 index 0000000..b06f8aa Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small.png new file mode 100644 index 0000000..71170c3 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png new file mode 100644 index 0000000..f9f3e95 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png new file mode 100644 index 0000000..aab0230 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/icon.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/icon.png new file mode 100644 index 0000000..bd77872 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/AppIcon.appiconset/icon.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/Contents.json b/Example-Xcode11/Example-Xcode11/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDBuy.imageset/Contents.json b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDBuy.imageset/Contents.json new file mode 100644 index 0000000..2d05199 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDBuy.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "ProHUDBuy@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "ProHUDBuy@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDBuy.imageset/ProHUDBuy@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDBuy.imageset/ProHUDBuy@2x.png new file mode 100644 index 0000000..2e97e5c Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDBuy.imageset/ProHUDBuy@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDBuy.imageset/ProHUDBuy@3x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDBuy.imageset/ProHUDBuy@3x.png new file mode 100644 index 0000000..32e5d56 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDBuy.imageset/ProHUDBuy@3x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDError.imageset/Contents.json b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDError.imageset/Contents.json new file mode 100644 index 0000000..c6fbfc7 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDError.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "fail@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "fail@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDError.imageset/fail@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDError.imageset/fail@2x.png new file mode 100644 index 0000000..5918b6b Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDError.imageset/fail@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDError.imageset/fail@3x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDError.imageset/fail@3x.png new file mode 100644 index 0000000..490bc00 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDError.imageset/fail@3x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/Contents.json b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/Contents.json new file mode 100644 index 0000000..cbb01e1 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/Contents.json @@ -0,0 +1,54 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "loading@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "filename" : "loading_dark@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "loading@3x.png", + "idiom" : "universal", + "scale" : "3x" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "filename" : "loading_dark@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/loading@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/loading@2x.png new file mode 100644 index 0000000..a0974f4 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/loading@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/loading@3x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/loading@3x.png new file mode 100644 index 0000000..d53953a Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/loading@3x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/loading_dark@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/loading_dark@2x.png new file mode 100644 index 0000000..6cf77b8 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/loading_dark@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/loading_dark@3x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/loading_dark@3x.png new file mode 100644 index 0000000..e696a8b Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDLoading.imageset/loading_dark@3x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDMessage.imageset/Contents.json b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDMessage.imageset/Contents.json new file mode 100644 index 0000000..342a966 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDMessage.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "ProHUDMessage@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "ProHUDMessage@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDMessage.imageset/ProHUDMessage@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDMessage.imageset/ProHUDMessage@2x.png new file mode 100644 index 0000000..9b5aa6a Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDMessage.imageset/ProHUDMessage@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDMessage.imageset/ProHUDMessage@3x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDMessage.imageset/ProHUDMessage@3x.png new file mode 100644 index 0000000..a7322dd Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDMessage.imageset/ProHUDMessage@3x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDSuccess.imageset/Contents.json b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDSuccess.imageset/Contents.json new file mode 100644 index 0000000..01a29e9 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDSuccess.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "success@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "success@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDSuccess.imageset/success@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDSuccess.imageset/success@2x.png new file mode 100644 index 0000000..1730567 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDSuccess.imageset/success@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDSuccess.imageset/success@3x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDSuccess.imageset/success@3x.png new file mode 100644 index 0000000..72340b0 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDSuccess.imageset/success@3x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDTrash.imageset/Contents.json b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDTrash.imageset/Contents.json new file mode 100644 index 0000000..307e1d9 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDTrash.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "ProHUDTrash@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "ProHUDTrash@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDTrash.imageset/ProHUDTrash@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDTrash.imageset/ProHUDTrash@2x.png new file mode 100644 index 0000000..d136622 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDTrash.imageset/ProHUDTrash@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDTrash.imageset/ProHUDTrash@3x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDTrash.imageset/ProHUDTrash@3x.png new file mode 100644 index 0000000..d3f1cce Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDTrash.imageset/ProHUDTrash@3x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDWarning.imageset/Contents.json b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDWarning.imageset/Contents.json new file mode 100644 index 0000000..a0f7a31 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDWarning.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "warning@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "warning@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDWarning.imageset/warning@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDWarning.imageset/warning@2x.png new file mode 100644 index 0000000..fd95fdc Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDWarning.imageset/warning@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDWarning.imageset/warning@3x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDWarning.imageset/warning@3x.png new file mode 100644 index 0000000..ba5d643 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/ProHUDWarning.imageset/warning@3x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/bg.imageset/Contents.json b/Example-Xcode11/Example-Xcode11/Assets.xcassets/bg.imageset/Contents.json new file mode 100644 index 0000000..e95be2a --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Assets.xcassets/bg.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "IMG_099256E14955-1.jpeg", + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/bg.imageset/IMG_099256E14955-1.jpeg b/Example-Xcode11/Example-Xcode11/Assets.xcassets/bg.imageset/IMG_099256E14955-1.jpeg new file mode 100644 index 0000000..1f611db Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/bg.imageset/IMG_099256E14955-1.jpeg differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/firewatch.imageset/Contents.json b/Example-Xcode11/Example-Xcode11/Assets.xcassets/firewatch.imageset/Contents.json new file mode 100644 index 0000000..8b45790 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Assets.xcassets/firewatch.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "firewatch_5k@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "firewatch_5k@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/firewatch.imageset/firewatch_5k@2x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/firewatch.imageset/firewatch_5k@2x.png new file mode 100644 index 0000000..d200718 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/firewatch.imageset/firewatch_5k@2x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/firewatch.imageset/firewatch_5k@3x.png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/firewatch.imageset/firewatch_5k@3x.png new file mode 100644 index 0000000..1632cdb Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/firewatch.imageset/firewatch_5k@3x.png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/icon_download.imageset/Contents.json b/Example-Xcode11/Example-Xcode11/Assets.xcassets/icon_download.imageset/Contents.json new file mode 100644 index 0000000..858a480 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Assets.xcassets/icon_download.imageset/Contents.json @@ -0,0 +1,25 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "cloud download (2).png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "cloud download (3).png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "template-rendering-intent" : "template" + } +} diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/icon_download.imageset/cloud download (2).png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/icon_download.imageset/cloud download (2).png new file mode 100644 index 0000000..5a1a4ca Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/icon_download.imageset/cloud download (2).png differ diff --git a/Example-Xcode11/Example-Xcode11/Assets.xcassets/icon_download.imageset/cloud download (3).png b/Example-Xcode11/Example-Xcode11/Assets.xcassets/icon_download.imageset/cloud download (3).png new file mode 100644 index 0000000..436ce95 Binary files /dev/null and b/Example-Xcode11/Example-Xcode11/Assets.xcassets/icon_download.imageset/cloud download (3).png differ diff --git a/Example-Xcode11/Example-Xcode11/Base.lproj/LaunchScreen.storyboard b/Example-Xcode11/Example-Xcode11/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example-Xcode11/Example-Xcode11/Base.lproj/Main.storyboard b/Example-Xcode11/Example-Xcode11/Base.lproj/Main.storyboard new file mode 100644 index 0000000..25a7638 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example-Xcode11/Example-Xcode11/Info.plist b/Example-Xcode11/Example-Xcode11/Info.plist new file mode 100644 index 0000000..9592629 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/Info.plist @@ -0,0 +1,62 @@ + + + + + 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 + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Example-Xcode11/Example-Xcode11/SceneDelegate.swift b/Example-Xcode11/Example-Xcode11/SceneDelegate.swift new file mode 100644 index 0000000..e4f2f28 --- /dev/null +++ b/Example-Xcode11/Example-Xcode11/SceneDelegate.swift @@ -0,0 +1,107 @@ +// +// SceneDelegate.swift +// Example-Xcode11 +// +// Created by xaoxuu on 2020/6/15. +// Copyright © 2020 xaoxuu. All rights reserved. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + guard let scene = (scene as? UIWindowScene) else { return } + + + let rootVC = RootVC() + window?.rootViewController = rootVC + window?.makeKeyAndVisible() + print("root window \(window!)") + ProHUD.config { (cfg) in +// cfg.rootViewController = rootVC +// cfg.windowScene = scene + cfg.alert { (a) in + a.titleFont = .bold(22) + a.bodyFont = .regular(17) + a.boldTextFont = .bold(18) + a.buttonFont = .bold(18) + a.forceQuitTimer = 3 + } + cfg.toast { (t) in + t.titleFont = .bold(18) + t.bodyFont = .regular(16) + } + cfg.guard { (g) in + g.titleFont = .bold(22) + g.subTitleFont = .bold(20) + g.bodyFont = .regular(17) + g.buttonFont = .bold(18) + } + } + + let window = UIWindow() + window.makeKeyAndVisible() + window.resignKey() + + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + } + + +} + + +extension ProHUD.Scene { + static var confirm: ProHUD.Scene { + var scene = ProHUD.Scene(identifier: "confirm") + scene.image = UIImage(named: "ProHUDMessage") + return scene + } + static var delete: ProHUD.Scene { + var scene = ProHUD.Scene(identifier: "delete") + scene.image = UIImage(named: "ProHUDTrash") + scene.title = "确认删除" + scene.message = "此操作不可撤销" + return scene + } + static var buy: ProHUD.Scene { + var scene = ProHUD.Scene(identifier: "buy") + scene.image = UIImage(named: "ProHUDBuy") + scene.title = "确认付款" + scene.message = "一旦购买拒不退款" + return scene + } +} diff --git a/Example-Xcode11/Example-Xcode11Tests/Example_Xcode11Tests.swift b/Example-Xcode11/Example-Xcode11Tests/Example_Xcode11Tests.swift new file mode 100644 index 0000000..ddc3c9e --- /dev/null +++ b/Example-Xcode11/Example-Xcode11Tests/Example_Xcode11Tests.swift @@ -0,0 +1,34 @@ +// +// Example_Xcode11Tests.swift +// Example-Xcode11Tests +// +// Created by xaoxuu on 2020/6/15. +// Copyright © 2020 xaoxuu. All rights reserved. +// + +import XCTest +@testable import Example_Xcode11 + +class Example_Xcode11Tests: 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/Example-Xcode11/Example-Xcode11Tests/Info.plist b/Example-Xcode11/Example-Xcode11Tests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/Example-Xcode11/Example-Xcode11Tests/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/Example-Xcode11/Example-Xcode11UITests/Example_Xcode11UITests.swift b/Example-Xcode11/Example-Xcode11UITests/Example_Xcode11UITests.swift new file mode 100644 index 0000000..a7738ca --- /dev/null +++ b/Example-Xcode11/Example-Xcode11UITests/Example_Xcode11UITests.swift @@ -0,0 +1,43 @@ +// +// Example_Xcode11UITests.swift +// Example-Xcode11UITests +// +// Created by xaoxuu on 2020/6/15. +// Copyright © 2020 xaoxuu. All rights reserved. +// + +import XCTest + +class Example_Xcode11UITests: 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: [XCTOSSignpostMetric.applicationLaunch]) { + XCUIApplication().launch() + } + } + } +} diff --git a/Example-Xcode11/Example-Xcode11UITests/Info.plist b/Example-Xcode11/Example-Xcode11UITests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/Example-Xcode11/Example-Xcode11UITests/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 + +