diff --git a/Demo/Demo.xcodeproj/project.pbxproj b/Demo/Demo.xcodeproj/project.pbxproj new file mode 100644 index 0000000..7811479 --- /dev/null +++ b/Demo/Demo.xcodeproj/project.pbxproj @@ -0,0 +1,470 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 52; + objects = { + +/* Begin PBXBuildFile section */ + 1A42CE6B7492C776E2061D67 /* Pods_Demo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DB80693A24BF052917BA4B1F /* Pods_Demo.framework */; }; + C91AE68D219199D4005A8286 /* NavigationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C91AE68C219199D4005A8286 /* NavigationController.swift */; }; + C9E8AED1218DADD600332D5C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9E8AED0218DADD600332D5C /* AppDelegate.swift */; }; + C9E8AED3218DADD600332D5C /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9E8AED2218DADD600332D5C /* ViewController.swift */; }; + C9E8AED6218DADD600332D5C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C9E8AED4218DADD600332D5C /* Main.storyboard */; }; + C9E8AED8218DADD800332D5C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C9E8AED7218DADD800332D5C /* Assets.xcassets */; }; + C9E8AEDB218DADD800332D5C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C9E8AED9218DADD800332D5C /* LaunchScreen.storyboard */; }; + C9E8AEEB2190002E00332D5C /* TikTok.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C9E8AEEA2190002E00332D5C /* TikTok.storyboard */; }; + C9E8AEED2190018100332D5C /* TikTokPhoneLoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9E8AEEC2190018100332D5C /* TikTokPhoneLoginViewController.swift */; }; + C9E8AEF0219001E000332D5C /* StoryBoard.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9E8AEEF219001E000332D5C /* StoryBoard.swift */; }; + C9E8AEF2219019BE00332D5C /* TikTokPasswordLoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9E8AEF1219019BE00332D5C /* TikTokPasswordLoginViewController.swift */; }; + C9E8AEF42190339400332D5C /* Then.swift in Sources */ = {isa = PBXBuildFile; fileRef = C9E8AEF32190339400332D5C /* Then.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 31F26B46261634762DCA08EF /* Pods-Demo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo.debug.xcconfig"; path = "Target Support Files/Pods-Demo/Pods-Demo.debug.xcconfig"; sourceTree = ""; }; + 6D2A1C9D8BBE4301AC51FA2A /* Pods-Demo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo.release.xcconfig"; path = "Target Support Files/Pods-Demo/Pods-Demo.release.xcconfig"; sourceTree = ""; }; + C91AE68C219199D4005A8286 /* NavigationController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NavigationController.swift; sourceTree = ""; }; + C9E8AECD218DADD600332D5C /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; }; + C9E8AED0218DADD600332D5C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + C9E8AED2218DADD600332D5C /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + C9E8AED5218DADD600332D5C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + C9E8AED7218DADD800332D5C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + C9E8AEDA218DADD800332D5C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + C9E8AEDC218DADD800332D5C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + C9E8AEEA2190002E00332D5C /* TikTok.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = TikTok.storyboard; sourceTree = ""; }; + C9E8AEEC2190018100332D5C /* TikTokPhoneLoginViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TikTokPhoneLoginViewController.swift; sourceTree = ""; }; + C9E8AEEF219001E000332D5C /* StoryBoard.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StoryBoard.swift; sourceTree = ""; }; + C9E8AEF1219019BE00332D5C /* TikTokPasswordLoginViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TikTokPasswordLoginViewController.swift; sourceTree = ""; }; + C9E8AEF32190339400332D5C /* Then.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Then.swift; sourceTree = ""; }; + DB80693A24BF052917BA4B1F /* Pods_Demo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Demo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + C9E8AECA218DADD600332D5C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 1A42CE6B7492C776E2061D67 /* Pods_Demo.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 3B067D1BB2517F78165BF166 /* Frameworks */ = { + isa = PBXGroup; + children = ( + DB80693A24BF052917BA4B1F /* Pods_Demo.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 8B9B50CAF0A18BE579ED7053 /* Pods */ = { + isa = PBXGroup; + children = ( + 31F26B46261634762DCA08EF /* Pods-Demo.debug.xcconfig */, + 6D2A1C9D8BBE4301AC51FA2A /* Pods-Demo.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + C9E8AEC4218DADD600332D5C = { + isa = PBXGroup; + children = ( + C9E8AECF218DADD600332D5C /* Demo */, + C9E8AECE218DADD600332D5C /* Products */, + 8B9B50CAF0A18BE579ED7053 /* Pods */, + 3B067D1BB2517F78165BF166 /* Frameworks */, + ); + sourceTree = ""; + }; + C9E8AECE218DADD600332D5C /* Products */ = { + isa = PBXGroup; + children = ( + C9E8AECD218DADD600332D5C /* Demo.app */, + ); + name = Products; + sourceTree = ""; + }; + C9E8AECF218DADD600332D5C /* Demo */ = { + isa = PBXGroup; + children = ( + C9E8AEEE219001B700332D5C /* Utils */, + C9E8AEE7218FFFD800332D5C /* TikTok */, + C9E8AED0218DADD600332D5C /* AppDelegate.swift */, + C9E8AED2218DADD600332D5C /* ViewController.swift */, + C91AE68C219199D4005A8286 /* NavigationController.swift */, + C9E8AED4218DADD600332D5C /* Main.storyboard */, + C9E8AED7218DADD800332D5C /* Assets.xcassets */, + C9E8AED9218DADD800332D5C /* LaunchScreen.storyboard */, + C9E8AEDC218DADD800332D5C /* Info.plist */, + ); + path = Demo; + sourceTree = ""; + }; + C9E8AEE7218FFFD800332D5C /* TikTok */ = { + isa = PBXGroup; + children = ( + C9E8AEE92190001300332D5C /* Controller */, + C9E8AEE82190000700332D5C /* Storyboard */, + ); + path = TikTok; + sourceTree = ""; + }; + C9E8AEE82190000700332D5C /* Storyboard */ = { + isa = PBXGroup; + children = ( + C9E8AEEA2190002E00332D5C /* TikTok.storyboard */, + ); + path = Storyboard; + sourceTree = ""; + }; + C9E8AEE92190001300332D5C /* Controller */ = { + isa = PBXGroup; + children = ( + C9E8AEEC2190018100332D5C /* TikTokPhoneLoginViewController.swift */, + C9E8AEF1219019BE00332D5C /* TikTokPasswordLoginViewController.swift */, + ); + path = Controller; + sourceTree = ""; + }; + C9E8AEEE219001B700332D5C /* Utils */ = { + isa = PBXGroup; + children = ( + C9E8AEF32190339400332D5C /* Then.swift */, + C9E8AEEF219001E000332D5C /* StoryBoard.swift */, + ); + path = Utils; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + C9E8AECC218DADD600332D5C /* Demo */ = { + isa = PBXNativeTarget; + buildConfigurationList = C9E8AEDF218DADD800332D5C /* Build configuration list for PBXNativeTarget "Demo" */; + buildPhases = ( + 27871A0AD279A48DC5780669 /* [CP] Check Pods Manifest.lock */, + C9E8AEC9218DADD600332D5C /* Sources */, + C9E8AECA218DADD600332D5C /* Frameworks */, + C9E8AECB218DADD600332D5C /* Resources */, + 34787AEFE0EEB1280DD997E3 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Demo; + productName = AutoInchDemo; + productReference = C9E8AECD218DADD600332D5C /* Demo.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + C9E8AEC5218DADD600332D5C /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1010; + LastUpgradeCheck = 1010; + ORGANIZATIONNAME = swift; + TargetAttributes = { + C9E8AECC218DADD600332D5C = { + CreatedOnToolsVersion = 10.1; + LastSwiftMigration = 1020; + }; + }; + }; + buildConfigurationList = C9E8AEC8218DADD600332D5C /* Build configuration list for PBXProject "Demo" */; + compatibilityVersion = "Xcode 11.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = C9E8AEC4218DADD600332D5C; + productRefGroup = C9E8AECE218DADD600332D5C /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + C9E8AECC218DADD600332D5C /* Demo */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + C9E8AECB218DADD600332D5C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C9E8AEDB218DADD800332D5C /* LaunchScreen.storyboard in Resources */, + C9E8AED8218DADD800332D5C /* Assets.xcassets in Resources */, + C9E8AED6218DADD600332D5C /* Main.storyboard in Resources */, + C9E8AEEB2190002E00332D5C /* TikTok.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 27871A0AD279A48DC5780669 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Demo-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 34787AEFE0EEB1280DD997E3 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Demo/Pods-Demo-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Demo/Pods-Demo-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Demo/Pods-Demo-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + C9E8AEC9218DADD600332D5C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C9E8AED3218DADD600332D5C /* ViewController.swift in Sources */, + C9E8AED1218DADD600332D5C /* AppDelegate.swift in Sources */, + C9E8AEF2219019BE00332D5C /* TikTokPasswordLoginViewController.swift in Sources */, + C9E8AEED2190018100332D5C /* TikTokPhoneLoginViewController.swift in Sources */, + C91AE68D219199D4005A8286 /* NavigationController.swift in Sources */, + C9E8AEF42190339400332D5C /* Then.swift in Sources */, + C9E8AEF0219001E000332D5C /* StoryBoard.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + C9E8AED4218DADD600332D5C /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + C9E8AED5218DADD600332D5C /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + C9E8AED9218DADD800332D5C /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + C9E8AEDA218DADD800332D5C /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + C9E8AEDD218DADD800332D5C /* 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; + CODE_SIGN_IDENTITY = "iPhone Developer"; + 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 = 12.1; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + C9E8AEDE218DADD800332D5C /* 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; + CODE_SIGN_IDENTITY = "iPhone Developer"; + 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 = 12.1; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + C9E8AEE0218DADD800332D5C /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 31F26B46261634762DCA08EF /* Pods-Demo.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = B9D8DJR5J5; + INFOPLIST_FILE = Demo/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.lee.uiadapter.demo; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + C9E8AEE1218DADD800332D5C /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 6D2A1C9D8BBE4301AC51FA2A /* Pods-Demo.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = B9D8DJR5J5; + INFOPLIST_FILE = Demo/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.lee.uiadapter.demo; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + C9E8AEC8218DADD600332D5C /* Build configuration list for PBXProject "Demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C9E8AEDD218DADD800332D5C /* Debug */, + C9E8AEDE218DADD800332D5C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C9E8AEDF218DADD800332D5C /* Build configuration list for PBXNativeTarget "Demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C9E8AEE0218DADD800332D5C /* Debug */, + C9E8AEE1218DADD800332D5C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = C9E8AEC5218DADD600332D5C /* Project object */; +} diff --git a/Demo/Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Demo/Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..4047ecd --- /dev/null +++ b/Demo/Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Demo/Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Demo/Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Demo/Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Demo/Demo.xcodeproj/xcshareddata/xcschemes/Demo.xcscheme b/Demo/Demo.xcodeproj/xcshareddata/xcschemes/Demo.xcscheme new file mode 100644 index 0000000..87826eb --- /dev/null +++ b/Demo/Demo.xcodeproj/xcshareddata/xcschemes/Demo.xcscheme @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Demo/Demo.xcworkspace/contents.xcworkspacedata b/Demo/Demo.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1f14019 --- /dev/null +++ b/Demo/Demo.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Demo/Demo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Demo/Demo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Demo/Demo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Demo/Demo/AppDelegate.swift b/Demo/Demo/AppDelegate.swift new file mode 100644 index 0000000..a63e231 --- /dev/null +++ b/Demo/Demo/AppDelegate.swift @@ -0,0 +1,54 @@ +// +// AppDelegate.swift +// Demo +// +// Created by 李响 on 2018/11/3. +// Copyright © 2018 swift. All rights reserved. +// + +import UIKit +import UIAdapter + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + /* + // 默认计算逻辑以375屏幕宽度为基准进行等比例计算 + // 如果需要可以重新设置自定义的计算逻辑 + UIAdapter.Zoom.set { (value) -> Double in + // .... calculation .. + return value + } + */ + + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/Demo/Demo/Assets.xcassets/AppIcon.appiconset/Contents.json b/Demo/Demo/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/Demo/Demo/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/Contents.json b/Demo/Demo/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Demo/Demo/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/Contents.json b/Demo/Demo/Assets.xcassets/TikTok/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Demo/Demo/Assets.xcassets/TikTok/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/Plist/Contents.json b/Demo/Demo/Assets.xcassets/TikTok/Plist/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Demo/Demo/Assets.xcassets/TikTok/Plist/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/Plist/PhoneCountryCode.dataset/Contents.json b/Demo/Demo/Assets.xcassets/TikTok/Plist/PhoneCountryCode.dataset/Contents.json new file mode 100644 index 0000000..4a169c6 --- /dev/null +++ b/Demo/Demo/Assets.xcassets/TikTok/Plist/PhoneCountryCode.dataset/Contents.json @@ -0,0 +1,12 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "data" : [ + { + "idiom" : "universal", + "filename" : "PhoneCountryCode.plist" + } + ] +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/Plist/PhoneCountryCode.dataset/PhoneCountryCode.plist b/Demo/Demo/Assets.xcassets/TikTok/Plist/PhoneCountryCode.dataset/PhoneCountryCode.plist new file mode 100644 index 0000000..dedcd9b Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/Plist/PhoneCountryCode.dataset/PhoneCountryCode.plist differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_arrow_down.imageset/Contents.json b/Demo/Demo/Assets.xcassets/TikTok/tiktok_arrow_down.imageset/Contents.json new file mode 100644 index 0000000..4d358a7 --- /dev/null +++ b/Demo/Demo/Assets.xcassets/TikTok/tiktok_arrow_down.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_arrow_down@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_arrow_down@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_arrow_down.imageset/tiktok_arrow_down@2x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_arrow_down.imageset/tiktok_arrow_down@2x.png new file mode 100644 index 0000000..5e78c5a Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_arrow_down.imageset/tiktok_arrow_down@2x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_arrow_down.imageset/tiktok_arrow_down@3x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_arrow_down.imageset/tiktok_arrow_down@3x.png new file mode 100644 index 0000000..06338ba Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_arrow_down.imageset/tiktok_arrow_down@3x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_back.imageset/Contents.json b/Demo/Demo/Assets.xcassets/TikTok/tiktok_back.imageset/Contents.json new file mode 100644 index 0000000..39296d5 --- /dev/null +++ b/Demo/Demo/Assets.xcassets/TikTok/tiktok_back.imageset/Contents.json @@ -0,0 +1,25 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_back@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_back@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + }, + "properties" : { + "template-rendering-intent" : "template" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_back.imageset/tiktok_back@2x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_back.imageset/tiktok_back@2x.png new file mode 100644 index 0000000..c42dd58 Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_back.imageset/tiktok_back@2x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_back.imageset/tiktok_back@3x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_back.imageset/tiktok_back@3x.png new file mode 100644 index 0000000..b7ec51a Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_back.imageset/tiktok_back@3x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_close.imageset/Contents.json b/Demo/Demo/Assets.xcassets/TikTok/tiktok_close.imageset/Contents.json new file mode 100644 index 0000000..d9e9a77 --- /dev/null +++ b/Demo/Demo/Assets.xcassets/TikTok/tiktok_close.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_close@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_close@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_close.imageset/tiktok_close@2x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_close.imageset/tiktok_close@2x.png new file mode 100644 index 0000000..00eadca Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_close.imageset/tiktok_close@2x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_close.imageset/tiktok_close@3x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_close.imageset/tiktok_close@3x.png new file mode 100644 index 0000000..3870402 Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_close.imageset/tiktok_close@3x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_qq.imageset/Contents.json b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_qq.imageset/Contents.json new file mode 100644 index 0000000..976d1a5 --- /dev/null +++ b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_qq.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_icon_qq@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_icon_qq@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_qq.imageset/tiktok_icon_qq@2x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_qq.imageset/tiktok_icon_qq@2x.png new file mode 100644 index 0000000..c945f1e Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_qq.imageset/tiktok_icon_qq@2x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_qq.imageset/tiktok_icon_qq@3x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_qq.imageset/tiktok_icon_qq@3x.png new file mode 100644 index 0000000..e2990cd Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_qq.imageset/tiktok_icon_qq@3x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_sina.imageset/Contents.json b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_sina.imageset/Contents.json new file mode 100644 index 0000000..7496912 --- /dev/null +++ b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_sina.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_icon_sina@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_icon_sina@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_sina.imageset/tiktok_icon_sina@2x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_sina.imageset/tiktok_icon_sina@2x.png new file mode 100644 index 0000000..ce80fba Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_sina.imageset/tiktok_icon_sina@2x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_sina.imageset/tiktok_icon_sina@3x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_sina.imageset/tiktok_icon_sina@3x.png new file mode 100644 index 0000000..7d99cf1 Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_sina.imageset/tiktok_icon_sina@3x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_toutiao.imageset/Contents.json b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_toutiao.imageset/Contents.json new file mode 100644 index 0000000..888be67 --- /dev/null +++ b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_toutiao.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_icon_toutiao@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_icon_toutiao@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_toutiao.imageset/tiktok_icon_toutiao@2x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_toutiao.imageset/tiktok_icon_toutiao@2x.png new file mode 100644 index 0000000..4c136fc Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_toutiao.imageset/tiktok_icon_toutiao@2x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_toutiao.imageset/tiktok_icon_toutiao@3x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_toutiao.imageset/tiktok_icon_toutiao@3x.png new file mode 100644 index 0000000..1ce37b2 Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_toutiao.imageset/tiktok_icon_toutiao@3x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_wechat.imageset/Contents.json b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_wechat.imageset/Contents.json new file mode 100644 index 0000000..b4594dd --- /dev/null +++ b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_wechat.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_icon_wechat@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_icon_wechat@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_wechat.imageset/tiktok_icon_wechat@2x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_wechat.imageset/tiktok_icon_wechat@2x.png new file mode 100644 index 0000000..949a19a Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_wechat.imageset/tiktok_icon_wechat@2x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_wechat.imageset/tiktok_icon_wechat@3x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_wechat.imageset/tiktok_icon_wechat@3x.png new file mode 100644 index 0000000..2e712e2 Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_icon_wechat.imageset/tiktok_icon_wechat@3x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_done.imageset/Contents.json b/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_done.imageset/Contents.json new file mode 100644 index 0000000..90d9cdb --- /dev/null +++ b/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_done.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_sign_done@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_sign_done@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_done.imageset/tiktok_sign_done@2x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_done.imageset/tiktok_sign_done@2x.png new file mode 100644 index 0000000..36408a1 Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_done.imageset/tiktok_sign_done@2x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_done.imageset/tiktok_sign_done@3x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_done.imageset/tiktok_sign_done@3x.png new file mode 100644 index 0000000..3c590f0 Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_done.imageset/tiktok_sign_done@3x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_loading.imageset/Contents.json b/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_loading.imageset/Contents.json new file mode 100644 index 0000000..c8d1384 --- /dev/null +++ b/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_loading.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_sign_loading@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_sign_loading@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_loading.imageset/tiktok_sign_loading@2x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_loading.imageset/tiktok_sign_loading@2x.png new file mode 100644 index 0000000..70c1a25 Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_loading.imageset/tiktok_sign_loading@2x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_loading.imageset/tiktok_sign_loading@3x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_loading.imageset/tiktok_sign_loading@3x.png new file mode 100644 index 0000000..410427e Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_sign_loading.imageset/tiktok_sign_loading@3x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_textfield_clear.imageset/Contents.json b/Demo/Demo/Assets.xcassets/TikTok/tiktok_textfield_clear.imageset/Contents.json new file mode 100644 index 0000000..9f5c852 --- /dev/null +++ b/Demo/Demo/Assets.xcassets/TikTok/tiktok_textfield_clear.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_textfield_clear@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "tiktok_textfield_clear@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_textfield_clear.imageset/tiktok_textfield_clear@2x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_textfield_clear.imageset/tiktok_textfield_clear@2x.png new file mode 100644 index 0000000..2cec19d Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_textfield_clear.imageset/tiktok_textfield_clear@2x.png differ diff --git a/Demo/Demo/Assets.xcassets/TikTok/tiktok_textfield_clear.imageset/tiktok_textfield_clear@3x.png b/Demo/Demo/Assets.xcassets/TikTok/tiktok_textfield_clear.imageset/tiktok_textfield_clear@3x.png new file mode 100644 index 0000000..72742c8 Binary files /dev/null and b/Demo/Demo/Assets.xcassets/TikTok/tiktok_textfield_clear.imageset/tiktok_textfield_clear@3x.png differ diff --git a/Demo/Demo/Base.lproj/LaunchScreen.storyboard b/Demo/Demo/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..d82f2d3 --- /dev/null +++ b/Demo/Demo/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Demo/Demo/Base.lproj/Main.storyboard b/Demo/Demo/Base.lproj/Main.storyboard new file mode 100644 index 0000000..3f5b926 --- /dev/null +++ b/Demo/Demo/Base.lproj/Main.storyboard @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Demo/Demo/Info.plist b/Demo/Demo/Info.plist new file mode 100644 index 0000000..4cb3656 --- /dev/null +++ b/Demo/Demo/Info.plist @@ -0,0 +1,51 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + UIAdapter + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIUserInterfaceStyle + Light + UIViewControllerBasedStatusBarAppearance + + + diff --git a/Demo/Demo/NavigationController.swift b/Demo/Demo/NavigationController.swift new file mode 100644 index 0000000..cf317d4 --- /dev/null +++ b/Demo/Demo/NavigationController.swift @@ -0,0 +1,52 @@ +// +// NavigationController.swift +// Demo +// +// Created by 李响 on 2018/11/6. +// Copyright © 2018 swift. All rights reserved. +// + +import UIKit + +class NavigationController: UINavigationController { + + override func viewDidLoad() { + super.viewDidLoad() + + interactivePopGestureRecognizer?.delegate = self + } + + override func viewWillAppear(_ animated: Bool) { + super.viewWillAppear(animated) + view.frame = UIScreen.main.bounds + } + + override func pushViewController(_ viewController: UIViewController, animated: Bool) { + interactivePopGestureRecognizer?.isEnabled = false + super.pushViewController(viewController, animated: animated) + interactivePopGestureRecognizer?.isEnabled = true + } + + override var childForStatusBarStyle: UIViewController? { + return topViewController + } + + override var shouldAutorotate: Bool { + return topViewController?.shouldAutorotate ?? false + } + + override var supportedInterfaceOrientations: UIInterfaceOrientationMask { + return topViewController?.supportedInterfaceOrientations ?? .portrait + } + + override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation { + return topViewController?.preferredInterfaceOrientationForPresentation ?? .portrait + } +} + +extension NavigationController: UIGestureRecognizerDelegate { + + func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool { + return viewControllers.count > 1 + } +} diff --git a/Demo/Demo/TikTok/Controller/TikTokPasswordLoginViewController.swift b/Demo/Demo/TikTok/Controller/TikTokPasswordLoginViewController.swift new file mode 100644 index 0000000..f182759 --- /dev/null +++ b/Demo/Demo/TikTok/Controller/TikTokPasswordLoginViewController.swift @@ -0,0 +1,269 @@ +// +// TikTokPasswordLoginViewController.swift +// Demo +// +// Created by 李响 on 2018/11/5. +// Copyright © 2018 swift. All rights reserved. +// + +import UIKit + +class TikTokPasswordLoginViewController: UIViewController { + + var phone = "" + + private lazy var layer = CAGradientLayer().then { + let colors: [CGColor] = [#colorLiteral(red: 0.4727493525, green: 0.4444301128, blue: 0.9979013801, alpha: 1), #colorLiteral(red: 0.5695798397, green: 0.2927905917, blue: 0.9881889224, alpha: 1), #colorLiteral(red: 0.6905713677, green: 0.1041976586, blue: 0.9767265916, alpha: 1), #colorLiteral(red: 0.7510715127, green: 0.002722046804, blue: 0.9681376815, alpha: 1)] + $0.locations = [0.0, 0.4, 0.8, 1.0] + $0.colors = colors + $0.opacity = 1.0 + } + + @IBOutlet weak var bottomConstraint: NSLayoutConstraint! + + @IBOutlet weak var phoneTextField: UITextField! + @IBOutlet weak var passwordTextField: UITextField! + @IBOutlet weak var areaButton: UIButton! + @IBOutlet weak var doneButton: UIButton! + + private var isLogging = false + private var isDidAppear = false + + override func viewDidLoad() { + super.viewDidLoad() + + setup() + setupNotification() + } + + override func willMove(toParent parent: UIViewController?) { + super.willMove(toParent: parent) + + isDidAppear = false + } + + override func viewDidAppear(_ animated: Bool) { + super.viewDidAppear(animated) + + isDidAppear = true + navigationController?.interactivePopGestureRecognizer?.isEnabled = true + + if phone.count < 13 { + phoneTextField.becomeFirstResponder() + } else { + passwordTextField.becomeFirstResponder() + } + } + + override func viewDidLayoutSubviews() { + super.viewDidLayoutSubviews() + + layer.frame = view.bounds + } + + override func touchesBegan(_ touches: Set, with event: UIEvent?) { + super.touchesBegan(touches, with: event) + guard !isLogging else { + return + } + + view.endEditing(true) + } + + override var preferredStatusBarStyle: UIStatusBarStyle { + return .lightContent + } + + override var shouldAutorotate: Bool { + return false + } + + override var supportedInterfaceOrientations: UIInterfaceOrientationMask { + return .portrait + } + + override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation { + return .portrait + } + + @IBAction func areaAction(_ sender: UIButton) { + + } + + @IBAction func doneAction(_ sender: UIButton) { + guard + let phone = phoneTextField.text, + let password = passwordTextField.text else { + return + } + guard sender.alpha == 1 else { + return + } + guard !isLogging else { + return + } + + sender.setBackgroundImage(#imageLiteral(resourceName: "tiktok_sign_loading"), for: .normal) + + let animation = CABasicAnimation() + animation.keyPath = "transform.rotation.z" + animation.fromValue = 0 + animation.toValue = 360 * CGFloat(CGFloat.pi / 180) + animation.duration = 0.9 + animation.repeatCount = HUGE + animation.isRemovedOnCompletion = false + sender.layer.add(animation, forKey: "loading") + + logging(phone.trimmingCharacters(in: .whitespaces), password) { + [weak self] (result) in + guard let self = self else { return } + + if result { + self.view.endEditing(true) + self.dismiss(animated: true) + + } else { + sender.layer.removeAllAnimations() + sender.setBackgroundImage(#imageLiteral(resourceName: "tiktok_sign_done"), for: .normal) + } + } + } + + @IBAction func phoneChangeAction(_ sender: UITextField) { + guard let text = sender.text else { + return + } + + if text.count > phone.count { + if text.count == 3 || text.count == 8 { + sender.text = text + " " + } + if text.count >= 13 { + sender.text = String(text.prefix(13)) + passwordTextField.becomeFirstResponder() + } + + phone = text + + } else if text.count < phone.count { + if text.count == 3 || text.count == 8 { + sender.text = String(text.prefix(text.count - 1)) + } + + phone = text + } + + checkDoneStatus() + } + + @IBAction func passwordChangeAction(_ sender: UITextField) { + guard let text = sender.text else { + return + } + + if text.count >= 6 { + sender.text = String(text.prefix(6)) + } + + checkDoneStatus() + } +} + +extension TikTokPasswordLoginViewController { + + private func setup() { + navigationController?.interactivePopGestureRecognizer?.isEnabled = false + + view.layer.insertSublayer(layer, at: 0) + view.layoutIfNeeded() + + phoneTextField.text = phone + + if let button = phoneTextField.value(forKey: "_clearButton") as? UIButton { + button.setImage(#imageLiteral(resourceName: "tiktok_textfield_clear"), for: .normal) + button.adjustsImageWhenHighlighted = false + } + if let button = passwordTextField.value(forKey: "_clearButton") as? UIButton { + button.setImage(#imageLiteral(resourceName: "tiktok_textfield_clear"), for: .normal) + button.adjustsImageWhenHighlighted = false + } + + phoneTextField.attributedPlaceholder = .init( + string: phoneTextField.placeholder ?? "", + attributes: [.foregroundColor: UIColor.white.withAlphaComponent(0.5)] + ) + passwordTextField.attributedPlaceholder = .init( + string: passwordTextField.placeholder ?? "", + attributes: [.foregroundColor: UIColor.white.withAlphaComponent(0.5)] + ) + } + + private func setupNotification() { + NotificationCenter.default.addObserver( + self, + selector: #selector(keyboardWillChangeFrame), + name: UIResponder.keyboardWillChangeFrameNotification, + object: nil + ) + } + + private func checkDoneStatus() { + guard + let phone = phoneTextField.text, + let password = passwordTextField.text else { + return + } + + let ok = phone.count == 13 && !password.isEmpty + UIView.beginAnimations("", context: nil) + UIView.setAnimationDuration(0.25) + doneButton.alpha = ok ? 1.0 : 0.5 + UIView.commitAnimations() + } +} + +extension TikTokPasswordLoginViewController { + + private func logging(_ phone: String, + _ password: String, + _ completion: @escaping (Bool) -> Void) { + isLogging = true + // 假装请求登录 + DispatchQueue.main.asyncAfter(deadline: .now() + 5) { [weak self] in + self?.isLogging = false + // 随机返回成功 or 失败 + let result = Int.random(in: 0...1) == 0 ? true : false + completion(result) + } + } +} + +extension TikTokPasswordLoginViewController { + + @objc private func keyboardWillChangeFrame(_ sender: Notification) { + guard let info = sender.userInfo else { + return + } + guard let local = info[UIResponder.keyboardIsLocalUserInfoKey] as? Int, local == 1 else { + return + } + guard + let duration = info[UIResponder.keyboardAnimationDurationUserInfoKey] as? TimeInterval, + let curveRaw = info[UIResponder.keyboardAnimationCurveUserInfoKey] as? Int, + let curve = UIView.AnimationCurve(rawValue: curveRaw), + let end = info[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect else { + return + } + guard isDidAppear else { + return + } + + bottomConstraint.constant = view.bounds.height - end.minY + + UIView.beginAnimations("keyboard", context: nil) + UIView.setAnimationDuration(duration) + UIView.setAnimationCurve(curve) + view.layoutIfNeeded() + UIView.commitAnimations() + } +} diff --git a/Demo/Demo/TikTok/Controller/TikTokPhoneLoginViewController.swift b/Demo/Demo/TikTok/Controller/TikTokPhoneLoginViewController.swift new file mode 100644 index 0000000..4c313f1 --- /dev/null +++ b/Demo/Demo/TikTok/Controller/TikTokPhoneLoginViewController.swift @@ -0,0 +1,277 @@ +// +// TikTokPhoneLoginViewController.swift +// Demo +// +// Created by 李响 on 2018/11/5. +// Copyright © 2018 swift. All rights reserved. +// + +import UIKit + +class TikTokPhoneLoginViewController: UIViewController { + + private lazy var layer = CAGradientLayer().then { + let colors: [CGColor] = [#colorLiteral(red: 0.4727493525, green: 0.4444301128, blue: 0.9979013801, alpha: 1), #colorLiteral(red: 0.5695798397, green: 0.2927905917, blue: 0.9881889224, alpha: 1), #colorLiteral(red: 0.6905713677, green: 0.1041976586, blue: 0.9767265916, alpha: 1), #colorLiteral(red: 0.7510715127, green: 0.002722046804, blue: 0.9681376815, alpha: 1)] + $0.locations = [0.0, 0.4, 0.8, 1.0] + $0.colors = colors + $0.opacity = 0.9 + } + + @IBOutlet weak var bottomConstraint: NSLayoutConstraint! + + @IBOutlet weak var phoneTextField: UITextField! + @IBOutlet weak var codeTextField: UITextField! + @IBOutlet weak var areaButton: UIButton! + @IBOutlet weak var captchaButton: UIButton! + @IBOutlet weak var doneButton: UIButton! + @IBOutlet weak var loginView: UIView! + @IBOutlet weak var otherView: UIView! + + private var phone = "" + private var isLogging = false + + override func viewDidLoad() { + super.viewDidLoad() + + setup() + setupNotification() + + phoneTextField.becomeFirstResponder() + } + + override func viewDidAppear(_ animated: Bool) { + super.viewDidAppear(animated) + + if phone.count < 13 { + phoneTextField.becomeFirstResponder() + } else { + codeTextField.becomeFirstResponder() + } + } + + override func viewDidLayoutSubviews() { + super.viewDidLayoutSubviews() + + layer.frame = view.bounds + } + + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + switch segue.identifier { + case "password": + guard let controller = segue.destination as? TikTokPasswordLoginViewController else { + return + } + + controller.phone = phone + + default: break + } + } + + override func touchesBegan(_ touches: Set, with event: UIEvent?) { + super.touchesBegan(touches, with: event) + guard !isLogging else { + return + } + + view.endEditing(true) + dismiss(animated: true) + } + + override var preferredStatusBarStyle: UIStatusBarStyle { + return .lightContent + } + + override var shouldAutorotate: Bool { + return false + } + + override var supportedInterfaceOrientations: UIInterfaceOrientationMask { + return .portrait + } + + override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation { + return .portrait + } + + @IBAction func areaAction(_ sender: UIButton) { + + } + + @IBAction func captchaAction(_ sender: UIButton) { + + } + + @IBAction func doneAction(_ sender: UIButton) { + guard + let phone = phoneTextField.text, + let code = codeTextField.text else { + return + } + guard sender.alpha == 1 else { + return + } + guard !isLogging else { + return + } + + sender.setBackgroundImage(#imageLiteral(resourceName: "tiktok_sign_loading"), for: .normal) + + let animation = CABasicAnimation() + animation.keyPath = "transform.rotation.z" + animation.fromValue = 0 + animation.toValue = 360 * CGFloat(CGFloat.pi / 180) + animation.duration = 0.9 + animation.repeatCount = HUGE + animation.isRemovedOnCompletion = false + sender.layer.add(animation, forKey: "loading") + + logging(phone.trimmingCharacters(in: .whitespaces), code) { + [weak self] (result) in + guard let self = self else { return } + + if result { + self.view.endEditing(true) + self.dismiss(animated: true) + + } else { + sender.layer.removeAllAnimations() + sender.setBackgroundImage(#imageLiteral(resourceName: "tiktok_sign_done"), for: .normal) + } + } + } + + @IBAction func phoneChangeAction(_ sender: UITextField) { + guard let text = sender.text else { + return + } + + if text.count > phone.count { + if text.count == 3 || text.count == 8 { + sender.text = text + " " + } + if text.count >= 13 { + sender.text = String(text.prefix(13)) + codeTextField.becomeFirstResponder() + } + + phone = text + + } else if text.count < phone.count { + if text.count == 3 || text.count == 8 { + sender.text = String(text.prefix(text.count - 1)) + } + + phone = text + } + + UIView.beginAnimations("", context: nil) + UIView.setAnimationDuration(0.25) + captchaButton.isEnabled = !text.isEmpty + loginView.alpha = text.isEmpty ? 0 : 1 + otherView.alpha = text.isEmpty ? 1 : 0 + UIView.commitAnimations() + + checkDoneStatus() + } + + @IBAction func codeChangeAction(_ sender: UITextField) { + guard let text = sender.text else { + return + } + + if text.count >= 6 { + sender.text = String(text.prefix(6)) + } + + checkDoneStatus() + } +} + +extension TikTokPhoneLoginViewController { + + private func setup() { + view.layer.insertSublayer(layer, at: 0) + view.layoutIfNeeded() + + if let button = phoneTextField.value(forKey: "_clearButton") as? UIButton { + button.setImage(#imageLiteral(resourceName: "tiktok_textfield_clear"), for: .normal) + button.adjustsImageWhenHighlighted = false + } + + phoneTextField.attributedPlaceholder = .init( + string: phoneTextField.placeholder ?? "", + attributes: [.foregroundColor: UIColor.white.withAlphaComponent(0.5)] + ) + codeTextField.attributedPlaceholder = .init( + string: codeTextField.placeholder ?? "", + attributes: [.foregroundColor: UIColor.white.withAlphaComponent(0.5)] + ) + } + + private func setupNotification() { + NotificationCenter.default.addObserver( + self, + selector: #selector(keyboardWillChangeFrame), + name: UIResponder.keyboardWillChangeFrameNotification, + object: nil + ) + } + + private func checkDoneStatus() { + guard + let phone = phoneTextField.text, + let code = codeTextField.text else { + return + } + + let ok = phone.count == 13 && code.count == 6 + UIView.beginAnimations("", context: nil) + UIView.setAnimationDuration(0.25) + doneButton.alpha = ok ? 1.0 : 0.5 + UIView.commitAnimations() + } +} + +extension TikTokPhoneLoginViewController { + + private func logging(_ phone: String, + _ code: String, + _ completion: @escaping (Bool) -> Void) { + isLogging = true + // 假装请求登录 + DispatchQueue.main.asyncAfter(deadline: .now() + 5) { [weak self] in + self?.isLogging = false + // 随机返回成功 or 失败 + let result = Int.random(in: 0...1) == 0 ? true : false + completion(result) + } + } +} + +extension TikTokPhoneLoginViewController { + + @objc private func keyboardWillChangeFrame(_ sender: Notification) { + guard let info = sender.userInfo else { + return + } + guard let local = info[UIResponder.keyboardIsLocalUserInfoKey] as? Int, local == 1 else { + return + } + guard + let duration = info[UIResponder.keyboardAnimationDurationUserInfoKey] as? TimeInterval, + let curveRaw = info[UIResponder.keyboardAnimationCurveUserInfoKey] as? Int, + let curve = UIView.AnimationCurve(rawValue: curveRaw), + let end = info[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect else { + return + } + + bottomConstraint.constant = view.bounds.height - end.minY + + UIView.beginAnimations("keyboard", context: nil) + UIView.setAnimationDuration(duration) + UIView.setAnimationCurve(curve) + view.layoutIfNeeded() + UIView.commitAnimations() + } +} diff --git a/Demo/Demo/TikTok/Storyboard/TikTok.storyboard b/Demo/Demo/TikTok/Storyboard/TikTok.storyboard new file mode 100644 index 0000000..77a45ae --- /dev/null +++ b/Demo/Demo/TikTok/Storyboard/TikTok.storyboard @@ -0,0 +1,859 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Demo/Demo/Utils/StoryBoard.swift b/Demo/Demo/Utils/StoryBoard.swift new file mode 100644 index 0000000..5bf71e4 --- /dev/null +++ b/Demo/Demo/Utils/StoryBoard.swift @@ -0,0 +1,39 @@ +// +// StoryBoard.swift +// LiveTrivia +// +// Created by 李响 on 2018/1/16. +// Copyright © 2018年 LiveTrivia. All rights reserved. +// + +import Foundation +import UIKit + +enum StoryBoard: String { + case main = "Main" + case tiktok = "TikTok" + + var storyboard: UIStoryboard { + return UIStoryboard(name: rawValue, bundle: nil) + } + + func instance() -> T { + return storyboard.instantiateViewController(withIdentifier: String(describing: T.self)) as! T + } +} + +extension UIViewController { + + @IBAction func backAction() { + view.endEditing(false) + if + let navigation = navigationController, + navigation.viewControllers.first != self { + navigation.popViewController(animated: true) + + } else { + let presenting = presentingViewController ?? self + presenting.dismiss(animated: true) + } + } +} diff --git a/Demo/Demo/Utils/Then.swift b/Demo/Demo/Utils/Then.swift new file mode 100644 index 0000000..2be8422 --- /dev/null +++ b/Demo/Demo/Utils/Then.swift @@ -0,0 +1,85 @@ +// The MIT License (MIT) +// +// Copyright (c) 2015 Suyeol Jeon (xoul.kr) +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + +import Foundation +import CoreGraphics +#if os(iOS) || os(tvOS) + import UIKit.UIGeometry +#endif + +public protocol Then {} + +extension Then where Self: Any { + + /// Makes it available to set properties with closures just after initializing and copying the value types. + /// + /// let frame = CGRect().with { + /// $0.origin.x = 10 + /// $0.size.width = 100 + /// } + public func with(_ block: (inout Self) throws -> Void) rethrows -> Self { + var copy = self + try block(©) + return copy + } + + /// Makes it available to execute something with closures. + /// + /// UserDefaults.standard.do { + /// $0.set("devxoul", forKey: "username") + /// $0.set("devxoul@gmail.com", forKey: "email") + /// $0.synchronize() + /// } + public func `do`(_ block: (Self) throws -> Void) rethrows { + try block(self) + } + +} + +extension Then where Self: AnyObject { + + /// Makes it available to set properties with closures just after initializing. + /// + /// let label = UILabel().then { + /// $0.textAlignment = .Center + /// $0.textColor = UIColor.blackColor() + /// $0.text = "Hello, World!" + /// } + public func then(_ block: (Self) throws -> Void) rethrows -> Self { + try block(self) + return self + } + +} + +extension NSObject: Then {} + +extension CGPoint: Then {} +extension CGRect: Then {} +extension CGSize: Then {} +extension CGVector: Then {} + +#if os(iOS) || os(tvOS) + extension UIEdgeInsets: Then {} + extension UIOffset: Then {} + extension UIRectEdge: Then {} +#endif diff --git a/Demo/Demo/ViewController.swift b/Demo/Demo/ViewController.swift new file mode 100644 index 0000000..f621338 --- /dev/null +++ b/Demo/Demo/ViewController.swift @@ -0,0 +1,63 @@ +// +// ViewController.swift +// Demo +// +// Created by 李响 on 2018/11/3. +// Copyright © 2018 swift. All rights reserved. +// + +import UIKit +import UIAdapter + +class ViewController: UITableViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + + print( + "this is " + + "default".screen + .width(._320, is: "宽度 320") + .width(._375, is: "宽度 375") + .height(._844, is: "高度 844") + .height(._812, is: "高度 812") + .inch(._4_7, is: "4.7 英寸") + .inch(._5_8, is: "5.8 英寸") + .inch(._6_5, is: "6.5 英寸") + .level(.compact, is: "屏幕级别 紧凑屏") + .level(.regular, is: "屏幕级别 常规屏") + .level(.full, is: "屏幕级别 全面屏") + .value + ) + + + // 默认值 0 在3.5英寸的屏幕时返回1, 在4.0英寸的屏幕时返回2 + print(0.screen.inch(._3_5, is: 1).inch(._4_0, is: 2).value) + // 默认值 0 在全面屏时返回1, 在6.1英寸的屏幕时返回2 + print(0.screen.level(.full, is: 1).inch(._6_1, is: 2).value) + // 默认值 100 在宽度为375级别的屏幕时 正常返回120, 如果为缩放模式则返回110 + print(100.screen.width(._375, is: 120, zoomed: 110).value) + + print("当前屏幕级别: \(UIAdapter.Screen.Level.current)") + print("是否为全面屏: \(UIAdapter.Screen.isFull)") + print("是否为缩放模式: \(UIAdapter.Screen.isZoomedMode)") + } + + override var preferredStatusBarStyle: UIStatusBarStyle { + return .default + } + + override var shouldAutorotate: Bool { + return false + } + + override var supportedInterfaceOrientations: UIInterfaceOrientationMask { + return .portrait + } + + override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation { + return .portrait + } +} + diff --git a/Demo/Podfile b/Demo/Podfile new file mode 100644 index 0000000..8b221d0 --- /dev/null +++ b/Demo/Podfile @@ -0,0 +1,9 @@ +platform :ios, '10.0' +inhibit_all_warnings! + +target 'Demo' do + use_frameworks! + + pod 'UIAdapter', :path => "../" + +end diff --git a/Demo/Podfile.lock b/Demo/Podfile.lock new file mode 100644 index 0000000..0e8c92c --- /dev/null +++ b/Demo/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - UIAdapter (1.0.0) + +DEPENDENCIES: + - UIAdapter (from `../`) + +EXTERNAL SOURCES: + UIAdapter: + :path: "../" + +SPEC CHECKSUMS: + UIAdapter: 73a799a85af7a374da3d0769b0b26a2145e546df + +PODFILE CHECKSUM: 0793a3778780a57cf83a43faa9039eedb0b67f7a + +COCOAPODS: 1.11.2 diff --git a/Demo/Pods/Local Podspecs/AutoInch.podspec.json b/Demo/Pods/Local Podspecs/AutoInch.podspec.json new file mode 100644 index 0000000..28417ba --- /dev/null +++ b/Demo/Pods/Local Podspecs/AutoInch.podspec.json @@ -0,0 +1,30 @@ +{ + "name": "AutoInch", + "version": "2.2.0", + "summary": "优雅的iPhone 等比例/精准 适配工具", + "homepage": "https://github.com/lixiang1994/AutoInch", + "license": { + "type": "MIT", + "file": "LICENSE" + }, + "authors": { + "LEE": "18611401994@163.com" + }, + "platforms": { + "ios": "9.0" + }, + "source": { + "git": "https://github.com/lixiang1994/AutoInch.git", + "tag": "2.2.0" + }, + "source_files": "Sources/**/*.swift", + "requires_arc": true, + "frameworks": [ + "UIKit", + "Foundation" + ], + "swift_versions": [ + "5.0" + ], + "swift_version": "5.0" +} diff --git a/Demo/Pods/Local Podspecs/UIAdapter.podspec.json b/Demo/Pods/Local Podspecs/UIAdapter.podspec.json new file mode 100644 index 0000000..861bbc3 --- /dev/null +++ b/Demo/Pods/Local Podspecs/UIAdapter.podspec.json @@ -0,0 +1,25 @@ +{ + "name": "UIAdapter", + "version": "1.0.0", + "summary": "iOS屏幕适配工具", + "homepage": "https://github.com/lixiang1994/UIAdapter", + "license": { + "type": "MIT", + "file": "LICENSE" + }, + "authors": { + "LEE": "18611401994@163.com" + }, + "platforms": { + "ios": "9.0" + }, + "source": { + "git": "https://github.com/lixiang1994/UIAdapter.git", + "tag": "1.0.0" + }, + "source_files": "Sources/**/*.swift", + "requires_arc": true, + "swift_versions": "5.3", + "cocoapods_version": ">= 1.4.0", + "swift_version": "5.3" +} diff --git a/Demo/Pods/Manifest.lock b/Demo/Pods/Manifest.lock new file mode 100644 index 0000000..0e8c92c --- /dev/null +++ b/Demo/Pods/Manifest.lock @@ -0,0 +1,16 @@ +PODS: + - UIAdapter (1.0.0) + +DEPENDENCIES: + - UIAdapter (from `../`) + +EXTERNAL SOURCES: + UIAdapter: + :path: "../" + +SPEC CHECKSUMS: + UIAdapter: 73a799a85af7a374da3d0769b0b26a2145e546df + +PODFILE CHECKSUM: 0793a3778780a57cf83a43faa9039eedb0b67f7a + +COCOAPODS: 1.11.2 diff --git a/Demo/Pods/Pods.xcodeproj/project.pbxproj b/Demo/Pods/Pods.xcodeproj/project.pbxproj new file mode 100644 index 0000000..4642657 --- /dev/null +++ b/Demo/Pods/Pods.xcodeproj/project.pbxproj @@ -0,0 +1,642 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 52; + objects = { + +/* Begin PBXBuildFile section */ + 0CDCE095EC8C8FA446C8BA272ECB4961 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; + 19E14B07C75C62FCBA38FEE7411C3E77 /* Pods-Demo-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 3666E01CF3B1BB3B5EB22455C1F1E4F6 /* Pods-Demo-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 1D03E48EB60E6A8A7E1FD2A6C8C81EE7 /* UIAdapter.Screen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36AF3A4659BAA2ACACCBB870A72F22F1 /* UIAdapter.Screen.swift */; }; + 5DDC1F46BC098375EADAC45A953AE9A1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */; }; + 861554406FAD8C2815FE1DA1896310A9 /* UIAdapter.Zoom.swift in Sources */ = {isa = PBXBuildFile; fileRef = 77BCF4443C827A5AB7D4F3FDC708AA4D /* UIAdapter.Zoom.swift */; }; + D95E679218F48E28963069CC5A3A6F1C /* UIAdapter-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = F56D869A52062F83E0117DAFC3EE4DCA /* UIAdapter-dummy.m */; }; + E36E06F840BF7C0C9826D18D6EE76801 /* UIAdapter-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 0401A08143C50711385FD68A727B3AE4 /* UIAdapter-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; + F609DA23894C789CDCB0121BC8BEBA72 /* Pods-Demo-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 0FC0B6886FC27E9B0BED9829A43F1D61 /* Pods-Demo-dummy.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + C023163DB22BE637B6E14617E646501D /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 3DD7B7CA7C05350D22AC11B09F3C5E56; + remoteInfo = UIAdapter; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 0401A08143C50711385FD68A727B3AE4 /* UIAdapter-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "UIAdapter-umbrella.h"; sourceTree = ""; }; + 06F3E5C6ECF6318B927DEBF7D3F68023 /* Pods-Demo-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Demo-acknowledgements.plist"; sourceTree = ""; }; + 0FC0B6886FC27E9B0BED9829A43F1D61 /* Pods-Demo-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Demo-dummy.m"; sourceTree = ""; }; + 12B5414F32669A4B7E2A7160C8C61061 /* UIAdapter */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = UIAdapter; path = UIAdapter.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 286FB7ED904A7A0E1C9B3D6791672A8D /* Pods-Demo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Demo.release.xcconfig"; sourceTree = ""; }; + 3666E01CF3B1BB3B5EB22455C1F1E4F6 /* Pods-Demo-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Demo-umbrella.h"; sourceTree = ""; }; + 36AF3A4659BAA2ACACCBB870A72F22F1 /* UIAdapter.Screen.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = UIAdapter.Screen.swift; sourceTree = ""; }; + 3D97CE754ED613042ABA946CEB15677D /* UIAdapter.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UIAdapter.release.xcconfig; sourceTree = ""; }; + 509EFA0C8EA0FAE8AE00F9EBFD0839B6 /* UIAdapter.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = UIAdapter.modulemap; sourceTree = ""; }; + 5BF26625B62EF03BA46B8CDF3E5A1C4E /* UIAdapter-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "UIAdapter-prefix.pch"; sourceTree = ""; }; + 5D30FDAD8CECC381F32FF5F5B52175BC /* Pods-Demo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Demo.debug.xcconfig"; sourceTree = ""; }; + 668E9E4152FF9E31E50F1AAE64A2DC9C /* UIAdapter.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = UIAdapter.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; + 77BCF4443C827A5AB7D4F3FDC708AA4D /* UIAdapter.Zoom.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = UIAdapter.Zoom.swift; sourceTree = ""; }; + 77EBCE1FFE347A3644369F0343168C1D /* Pods-Demo-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Demo-frameworks.sh"; sourceTree = ""; }; + 7E65ADC3B1644FF0F90473EEE697A2FF /* Pods-Demo.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-Demo.modulemap"; sourceTree = ""; }; + 9135CBDF2E8EA009EC920097FF261E44 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; + 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + A4EC3D40F1E87B9BC1E314D082443903 /* UIAdapter-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "UIAdapter-Info.plist"; sourceTree = ""; }; + B64F2A4885DEE51384E1A469C15D1CA3 /* UIAdapter.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = UIAdapter.debug.xcconfig; sourceTree = ""; }; + C00602D905998E3695FB40F880F436D1 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; + C694DE63ED5EAB66E3CA6D184271692B /* Pods-Demo */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = "Pods-Demo"; path = Pods_Demo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + DDEDDEA5E8747667A9BBE52BA22B088D /* Pods-Demo-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Demo-Info.plist"; sourceTree = ""; }; + E14C7B5E452F2DDF30E90A3950EE1807 /* Pods-Demo-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Demo-acknowledgements.markdown"; sourceTree = ""; }; + F56D869A52062F83E0117DAFC3EE4DCA /* UIAdapter-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "UIAdapter-dummy.m"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 13DB7D3342F75555F4E79284738441B7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0CDCE095EC8C8FA446C8BA272ECB4961 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 3A39F62F9CD07578DE2E282591F36274 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 5DDC1F46BC098375EADAC45A953AE9A1 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 00A56F2DFE33BF4E2C9C3A3935C83E62 /* Products */ = { + isa = PBXGroup; + children = ( + C694DE63ED5EAB66E3CA6D184271692B /* Pods-Demo */, + 12B5414F32669A4B7E2A7160C8C61061 /* UIAdapter */, + ); + name = Products; + sourceTree = ""; + }; + 21FF7982FCED7A76D3B9EB72011DACF2 /* Targets Support Files */ = { + isa = PBXGroup; + children = ( + A8DEFD83AB893CB86C8528E6037CB868 /* Pods-Demo */, + ); + name = "Targets Support Files"; + sourceTree = ""; + }; + 502415CDCF4BC2B91C4F326A952AAAA4 /* UIAdapter */ = { + isa = PBXGroup; + children = ( + AE81B6F5F789E2EC92C9B89ED5EAFA48 /* Pod */, + DDB2B2830842134537108E4DEAA73F91 /* Screen */, + 891ABF5079A2C435DFDE8D843675DC02 /* Support Files */, + F9FD85324CB9BA490CB9C9F13C3BE6A9 /* Zoom */, + ); + name = UIAdapter; + path = ../..; + sourceTree = ""; + }; + 578452D2E740E91742655AC8F1636D1F /* iOS */ = { + isa = PBXGroup; + children = ( + 73010CC983E3809BECEE5348DA1BB8C6 /* Foundation.framework */, + ); + name = iOS; + sourceTree = ""; + }; + 891ABF5079A2C435DFDE8D843675DC02 /* Support Files */ = { + isa = PBXGroup; + children = ( + 509EFA0C8EA0FAE8AE00F9EBFD0839B6 /* UIAdapter.modulemap */, + F56D869A52062F83E0117DAFC3EE4DCA /* UIAdapter-dummy.m */, + A4EC3D40F1E87B9BC1E314D082443903 /* UIAdapter-Info.plist */, + 5BF26625B62EF03BA46B8CDF3E5A1C4E /* UIAdapter-prefix.pch */, + 0401A08143C50711385FD68A727B3AE4 /* UIAdapter-umbrella.h */, + B64F2A4885DEE51384E1A469C15D1CA3 /* UIAdapter.debug.xcconfig */, + 3D97CE754ED613042ABA946CEB15677D /* UIAdapter.release.xcconfig */, + ); + name = "Support Files"; + path = "Demo/Pods/Target Support Files/UIAdapter"; + sourceTree = ""; + }; + A8DEFD83AB893CB86C8528E6037CB868 /* Pods-Demo */ = { + isa = PBXGroup; + children = ( + 7E65ADC3B1644FF0F90473EEE697A2FF /* Pods-Demo.modulemap */, + E14C7B5E452F2DDF30E90A3950EE1807 /* Pods-Demo-acknowledgements.markdown */, + 06F3E5C6ECF6318B927DEBF7D3F68023 /* Pods-Demo-acknowledgements.plist */, + 0FC0B6886FC27E9B0BED9829A43F1D61 /* Pods-Demo-dummy.m */, + 77EBCE1FFE347A3644369F0343168C1D /* Pods-Demo-frameworks.sh */, + DDEDDEA5E8747667A9BBE52BA22B088D /* Pods-Demo-Info.plist */, + 3666E01CF3B1BB3B5EB22455C1F1E4F6 /* Pods-Demo-umbrella.h */, + 5D30FDAD8CECC381F32FF5F5B52175BC /* Pods-Demo.debug.xcconfig */, + 286FB7ED904A7A0E1C9B3D6791672A8D /* Pods-Demo.release.xcconfig */, + ); + name = "Pods-Demo"; + path = "Target Support Files/Pods-Demo"; + sourceTree = ""; + }; + AC84C34127CC9180730AE04E1168CE11 /* Development Pods */ = { + isa = PBXGroup; + children = ( + 502415CDCF4BC2B91C4F326A952AAAA4 /* UIAdapter */, + ); + name = "Development Pods"; + sourceTree = ""; + }; + AE81B6F5F789E2EC92C9B89ED5EAFA48 /* Pod */ = { + isa = PBXGroup; + children = ( + C00602D905998E3695FB40F880F436D1 /* LICENSE */, + 9135CBDF2E8EA009EC920097FF261E44 /* README.md */, + 668E9E4152FF9E31E50F1AAE64A2DC9C /* UIAdapter.podspec */, + ); + name = Pod; + sourceTree = ""; + }; + CF1408CF629C7361332E53B88F7BD30C = { + isa = PBXGroup; + children = ( + 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, + AC84C34127CC9180730AE04E1168CE11 /* Development Pods */, + D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, + 00A56F2DFE33BF4E2C9C3A3935C83E62 /* Products */, + 21FF7982FCED7A76D3B9EB72011DACF2 /* Targets Support Files */, + ); + sourceTree = ""; + }; + D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 578452D2E740E91742655AC8F1636D1F /* iOS */, + ); + name = Frameworks; + sourceTree = ""; + }; + DDB2B2830842134537108E4DEAA73F91 /* Screen */ = { + isa = PBXGroup; + children = ( + 36AF3A4659BAA2ACACCBB870A72F22F1 /* UIAdapter.Screen.swift */, + ); + name = Screen; + path = Sources/Screen; + sourceTree = ""; + }; + F9FD85324CB9BA490CB9C9F13C3BE6A9 /* Zoom */ = { + isa = PBXGroup; + children = ( + 77BCF4443C827A5AB7D4F3FDC708AA4D /* UIAdapter.Zoom.swift */, + ); + name = Zoom; + path = Sources/Zoom; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 9427D557E407D1BC0B797AF994F42D6E /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 19E14B07C75C62FCBA38FEE7411C3E77 /* Pods-Demo-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 99D064424E82CAB7B2A96359A9DED299 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + E36E06F840BF7C0C9826D18D6EE76801 /* UIAdapter-umbrella.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 380694B9ADC0CBB5D29A662EFE7F52C8 /* Pods-Demo */ = { + isa = PBXNativeTarget; + buildConfigurationList = 07B161ABB9C8D622AB1C1AF83FFF968B /* Build configuration list for PBXNativeTarget "Pods-Demo" */; + buildPhases = ( + 9427D557E407D1BC0B797AF994F42D6E /* Headers */, + B6CE35D5169438981428D341B97986EF /* Sources */, + 3A39F62F9CD07578DE2E282591F36274 /* Frameworks */, + 02A2D7601F27E4C6E7EAB4589EF20365 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 5CE987E42567E3D02F28B522BE4D1AC9 /* PBXTargetDependency */, + ); + name = "Pods-Demo"; + productName = Pods_Demo; + productReference = C694DE63ED5EAB66E3CA6D184271692B /* Pods-Demo */; + productType = "com.apple.product-type.framework"; + }; + 3DD7B7CA7C05350D22AC11B09F3C5E56 /* UIAdapter */ = { + isa = PBXNativeTarget; + buildConfigurationList = CEA90A4B75C192F9CC3391569995174B /* Build configuration list for PBXNativeTarget "UIAdapter" */; + buildPhases = ( + 99D064424E82CAB7B2A96359A9DED299 /* Headers */, + AA4B90B4770BD0360D926C0B3B26A1DF /* Sources */, + 13DB7D3342F75555F4E79284738441B7 /* Frameworks */, + 5DEC566FC300620E6A67D66D295BA3F9 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = UIAdapter; + productName = UIAdapter; + productReference = 12B5414F32669A4B7E2A7160C8C61061 /* UIAdapter */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + BFDFE7DC352907FC980B868725387E98 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1240; + LastUpgradeCheck = 1240; + }; + buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; + compatibilityVersion = "Xcode 11.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + Base, + en, + ); + mainGroup = CF1408CF629C7361332E53B88F7BD30C; + productRefGroup = 00A56F2DFE33BF4E2C9C3A3935C83E62 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 380694B9ADC0CBB5D29A662EFE7F52C8 /* Pods-Demo */, + 3DD7B7CA7C05350D22AC11B09F3C5E56 /* UIAdapter */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 02A2D7601F27E4C6E7EAB4589EF20365 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 5DEC566FC300620E6A67D66D295BA3F9 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + AA4B90B4770BD0360D926C0B3B26A1DF /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D95E679218F48E28963069CC5A3A6F1C /* UIAdapter-dummy.m in Sources */, + 1D03E48EB60E6A8A7E1FD2A6C8C81EE7 /* UIAdapter.Screen.swift in Sources */, + 861554406FAD8C2815FE1DA1896310A9 /* UIAdapter.Zoom.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B6CE35D5169438981428D341B97986EF /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F609DA23894C789CDCB0121BC8BEBA72 /* Pods-Demo-dummy.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 5CE987E42567E3D02F28B522BE4D1AC9 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = UIAdapter; + target = 3DD7B7CA7C05350D22AC11B09F3C5E56 /* UIAdapter */; + targetProxy = C023163DB22BE637B6E14617E646501D /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 1D2CFF2B8D3952A2BE437189AFBBECFF /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5D30FDAD8CECC381F32FF5F5B52175BC /* Pods-Demo.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-Demo/Pods-Demo-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-Demo/Pods-Demo.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 515F857D002935391B0F84B1A9AA9FA3 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = B64F2A4885DEE51384E1A469C15D1CA3 /* UIAdapter.debug.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREFIX_HEADER = "Target Support Files/UIAdapter/UIAdapter-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/UIAdapter/UIAdapter-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/UIAdapter/UIAdapter.modulemap"; + PRODUCT_MODULE_NAME = UIAdapter; + PRODUCT_NAME = UIAdapter; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_VERSION = 5.3; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 7EE7A78859F657F6BEFC651185B43192 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + 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_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_RELEASE=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 = 10.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Release; + }; + 98787F1B2417E31E537C9BDA9318DE81 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 286FB7ED904A7A0E1C9B3D6791672A8D /* Pods-Demo.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "Target Support Files/Pods-Demo/Pods-Demo-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MACH_O_TYPE = staticlib; + MODULEMAP_FILE = "Target Support Files/Pods-Demo/Pods-Demo.modulemap"; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + B3CEB6AD7CA67F59CF4FE133C6848937 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3D97CE754ED613042ABA946CEB15677D /* UIAdapter.release.xcconfig */; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREFIX_HEADER = "Target Support Files/UIAdapter/UIAdapter-prefix.pch"; + INFOPLIST_FILE = "Target Support Files/UIAdapter/UIAdapter-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MODULEMAP_FILE = "Target Support Files/UIAdapter/UIAdapter.modulemap"; + PRODUCT_MODULE_NAME = UIAdapter; + PRODUCT_NAME = UIAdapter; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_VERSION = 5.3; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + D299434AB35E7FD6F7921C8EF24742FF /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + 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 = ( + "POD_CONFIGURATION_DEBUG=1", + "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 = 10.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 07B161ABB9C8D622AB1C1AF83FFF968B /* Build configuration list for PBXNativeTarget "Pods-Demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D2CFF2B8D3952A2BE437189AFBBECFF /* Debug */, + 98787F1B2417E31E537C9BDA9318DE81 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D299434AB35E7FD6F7921C8EF24742FF /* Debug */, + 7EE7A78859F657F6BEFC651185B43192 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CEA90A4B75C192F9CC3391569995174B /* Build configuration list for PBXNativeTarget "UIAdapter" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 515F857D002935391B0F84B1A9AA9FA3 /* Debug */, + B3CEB6AD7CA67F59CF4FE133C6848937 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; +} diff --git a/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-Info.plist b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-Info.plist new file mode 100644 index 0000000..2243fe6 --- /dev/null +++ b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-acknowledgements.markdown b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-acknowledgements.markdown new file mode 100644 index 0000000..ad9c465 --- /dev/null +++ b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-acknowledgements.markdown @@ -0,0 +1,28 @@ +# Acknowledgements +This application makes use of the following third party libraries: + +## UIAdapter + +MIT License + +Copyright (c) 2021 LEE + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Generated by CocoaPods - https://cocoapods.org diff --git a/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-acknowledgements.plist b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-acknowledgements.plist new file mode 100644 index 0000000..731ce7d --- /dev/null +++ b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-acknowledgements.plist @@ -0,0 +1,60 @@ + + + + + PreferenceSpecifiers + + + FooterText + This application makes use of the following third party libraries: + Title + Acknowledgements + Type + PSGroupSpecifier + + + FooterText + MIT License + +Copyright (c) 2021 LEE + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + License + MIT + Title + UIAdapter + Type + PSGroupSpecifier + + + FooterText + Generated by CocoaPods - https://cocoapods.org + Title + + Type + PSGroupSpecifier + + + StringsTable + Acknowledgements + Title + Acknowledgements + + diff --git a/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-dummy.m b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-dummy.m new file mode 100644 index 0000000..05b3bfe --- /dev/null +++ b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_Pods_Demo : NSObject +@end +@implementation PodsDummy_Pods_Demo +@end diff --git a/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks-Debug-input-files.xcfilelist b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks-Debug-input-files.xcfilelist new file mode 100644 index 0000000..2f0cc0f --- /dev/null +++ b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks-Debug-input-files.xcfilelist @@ -0,0 +1,2 @@ +${PODS_ROOT}/Target Support Files/Pods-Demo/Pods-Demo-frameworks.sh +${BUILT_PRODUCTS_DIR}/UIAdapter/UIAdapter.framework \ No newline at end of file diff --git a/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks-Debug-output-files.xcfilelist b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks-Debug-output-files.xcfilelist new file mode 100644 index 0000000..9738f59 --- /dev/null +++ b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks-Debug-output-files.xcfilelist @@ -0,0 +1 @@ +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/UIAdapter.framework \ No newline at end of file diff --git a/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks-Release-input-files.xcfilelist b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks-Release-input-files.xcfilelist new file mode 100644 index 0000000..2f0cc0f --- /dev/null +++ b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks-Release-input-files.xcfilelist @@ -0,0 +1,2 @@ +${PODS_ROOT}/Target Support Files/Pods-Demo/Pods-Demo-frameworks.sh +${BUILT_PRODUCTS_DIR}/UIAdapter/UIAdapter.framework \ No newline at end of file diff --git a/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks-Release-output-files.xcfilelist b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks-Release-output-files.xcfilelist new file mode 100644 index 0000000..9738f59 --- /dev/null +++ b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks-Release-output-files.xcfilelist @@ -0,0 +1 @@ +${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/UIAdapter.framework \ No newline at end of file diff --git a/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks.sh b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks.sh new file mode 100755 index 0000000..03a0b01 --- /dev/null +++ b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-frameworks.sh @@ -0,0 +1,186 @@ +#!/bin/sh +set -e +set -u +set -o pipefail + +function on_error { + echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" +} +trap 'on_error $LINENO' ERR + +if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then + # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy + # frameworks to, so exit 0 (signalling the script phase was successful). + exit 0 +fi + +echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" +mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + +COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" +SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" +BCSYMBOLMAP_DIR="BCSymbolMaps" + + +# This protects against multiple targets copying the same framework dependency at the same time. The solution +# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html +RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") + +# Copies and strips a vendored framework +install_framework() +{ + if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then + local source="${BUILT_PRODUCTS_DIR}/$1" + elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then + local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" + elif [ -r "$1" ]; then + local source="$1" + fi + + local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" + + if [ -L "${source}" ]; then + echo "Symlinked..." + source="$(readlink "${source}")" + fi + + if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then + # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied + find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do + echo "Installing $f" + install_bcsymbolmap "$f" "$destination" + rm "$f" + done + rmdir "${source}/${BCSYMBOLMAP_DIR}" + fi + + # Use filter instead of exclude so missing patterns don't throw errors. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" + + local basename + basename="$(basename -s .framework "$1")" + binary="${destination}/${basename}.framework/${basename}" + + if ! [ -r "$binary" ]; then + binary="${destination}/${basename}" + elif [ -L "${binary}" ]; then + echo "Destination binary is symlinked..." + dirname="$(dirname "${binary}")" + binary="${dirname}/$(readlink "${binary}")" + fi + + # Strip invalid architectures so "fat" simulator / device frameworks work on device + if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then + strip_invalid_archs "$binary" + fi + + # Resign the code if required by the build settings to avoid unstable apps + code_sign_if_enabled "${destination}/$(basename "$1")" + + # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. + if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then + local swift_runtime_libs + swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) + for lib in $swift_runtime_libs; do + echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" + rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" + code_sign_if_enabled "${destination}/${lib}" + done + fi +} +# Copies and strips a vendored dSYM +install_dsym() { + local source="$1" + warn_missing_arch=${2:-true} + if [ -r "$source" ]; then + # Copy the dSYM into the targets temp dir. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" + + local basename + basename="$(basename -s .dSYM "$source")" + binary_name="$(ls "$source/Contents/Resources/DWARF")" + binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" + + # Strip invalid architectures from the dSYM. + if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then + strip_invalid_archs "$binary" "$warn_missing_arch" + fi + if [[ $STRIP_BINARY_RETVAL == 0 ]]; then + # Move the stripped file into its final destination. + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" + else + # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. + mkdir -p "${DWARF_DSYM_FOLDER_PATH}" + touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" + fi + fi +} + +# Used as a return value for each invocation of `strip_invalid_archs` function. +STRIP_BINARY_RETVAL=0 + +# Strip invalid architectures +strip_invalid_archs() { + binary="$1" + warn_missing_arch=${2:-true} + # Get architectures for current target binary + binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" + # Intersect them with the architectures we are building for + intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" + # If there are no archs supported by this binary then warn the user + if [[ -z "$intersected_archs" ]]; then + if [[ "$warn_missing_arch" == "true" ]]; then + echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." + fi + STRIP_BINARY_RETVAL=1 + return + fi + stripped="" + for arch in $binary_archs; do + if ! [[ "${ARCHS}" == *"$arch"* ]]; then + # Strip non-valid architectures in-place + lipo -remove "$arch" -output "$binary" "$binary" + stripped="$stripped $arch" + fi + done + if [[ "$stripped" ]]; then + echo "Stripped $binary of architectures:$stripped" + fi + STRIP_BINARY_RETVAL=0 +} + +# Copies the bcsymbolmap files of a vendored framework +install_bcsymbolmap() { + local bcsymbolmap_path="$1" + local destination="${BUILT_PRODUCTS_DIR}" + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" +} + +# Signs a framework with the provided identity +code_sign_if_enabled() { + if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then + # Use the current code_sign_identity + echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" + local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" + + if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + code_sign_cmd="$code_sign_cmd &" + fi + echo "$code_sign_cmd" + eval "$code_sign_cmd" + fi +} + +if [[ "$CONFIGURATION" == "Debug" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/UIAdapter/UIAdapter.framework" +fi +if [[ "$CONFIGURATION" == "Release" ]]; then + install_framework "${BUILT_PRODUCTS_DIR}/UIAdapter/UIAdapter.framework" +fi +if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then + wait +fi diff --git a/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-umbrella.h b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-umbrella.h new file mode 100644 index 0000000..6ccb7f7 --- /dev/null +++ b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo-umbrella.h @@ -0,0 +1,16 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + + +FOUNDATION_EXPORT double Pods_DemoVersionNumber; +FOUNDATION_EXPORT const unsigned char Pods_DemoVersionString[]; + diff --git a/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo.debug.xcconfig b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo.debug.xcconfig new file mode 100644 index 0000000..4c88f62 --- /dev/null +++ b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo.debug.xcconfig @@ -0,0 +1,16 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/UIAdapter" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/UIAdapter/UIAdapter.framework/Headers" +LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/Frameworks' '@loader_path/Frameworks' +LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift +OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/UIAdapter/UIAdapter.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/UIAdapter" +OTHER_LDFLAGS = $(inherited) -framework "UIAdapter" +OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo.modulemap b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo.modulemap new file mode 100644 index 0000000..efe379f --- /dev/null +++ b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo.modulemap @@ -0,0 +1,6 @@ +framework module Pods_Demo { + umbrella header "Pods-Demo-umbrella.h" + + export * + module * { export * } +} diff --git a/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo.release.xcconfig b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo.release.xcconfig new file mode 100644 index 0000000..4c88f62 --- /dev/null +++ b/Demo/Pods/Target Support Files/Pods-Demo/Pods-Demo.release.xcconfig @@ -0,0 +1,16 @@ +ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/UIAdapter" +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/UIAdapter/UIAdapter.framework/Headers" +LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/Frameworks' '@loader_path/Frameworks' +LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift +OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/UIAdapter/UIAdapter.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/UIAdapter" +OTHER_LDFLAGS = $(inherited) -framework "UIAdapter" +OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_PODFILE_DIR_PATH = ${SRCROOT}/. +PODS_ROOT = ${SRCROOT}/Pods +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/Demo/Pods/Target Support Files/UIAdapter/UIAdapter-Info.plist b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter-Info.plist new file mode 100644 index 0000000..2243fe6 --- /dev/null +++ b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter-Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + + + diff --git a/Demo/Pods/Target Support Files/UIAdapter/UIAdapter-dummy.m b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter-dummy.m new file mode 100644 index 0000000..ea1b6b4 --- /dev/null +++ b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter-dummy.m @@ -0,0 +1,5 @@ +#import +@interface PodsDummy_UIAdapter : NSObject +@end +@implementation PodsDummy_UIAdapter +@end diff --git a/Demo/Pods/Target Support Files/UIAdapter/UIAdapter-prefix.pch b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter-prefix.pch new file mode 100644 index 0000000..beb2a24 --- /dev/null +++ b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter-prefix.pch @@ -0,0 +1,12 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + diff --git a/Demo/Pods/Target Support Files/UIAdapter/UIAdapter-umbrella.h b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter-umbrella.h new file mode 100644 index 0000000..370b3a7 --- /dev/null +++ b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter-umbrella.h @@ -0,0 +1,16 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + + +FOUNDATION_EXPORT double UIAdapterVersionNumber; +FOUNDATION_EXPORT const unsigned char UIAdapterVersionString[]; + diff --git a/Demo/Pods/Target Support Files/UIAdapter/UIAdapter.debug.xcconfig b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter.debug.xcconfig new file mode 100644 index 0000000..5b53285 --- /dev/null +++ b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter.debug.xcconfig @@ -0,0 +1,13 @@ +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/UIAdapter +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift +OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -suppress-warnings +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT} +PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/Demo/Pods/Target Support Files/UIAdapter/UIAdapter.modulemap b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter.modulemap new file mode 100644 index 0000000..14c7f7f --- /dev/null +++ b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter.modulemap @@ -0,0 +1,6 @@ +framework module UIAdapter { + umbrella header "UIAdapter-umbrella.h" + + export * + module * { export * } +} diff --git a/Demo/Pods/Target Support Files/UIAdapter/UIAdapter.release.xcconfig b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter.release.xcconfig new file mode 100644 index 0000000..5b53285 --- /dev/null +++ b/Demo/Pods/Target Support Files/UIAdapter/UIAdapter.release.xcconfig @@ -0,0 +1,13 @@ +CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO +CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/UIAdapter +GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 +LIBRARY_SEARCH_PATHS = $(inherited) "${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift +OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -suppress-warnings +PODS_BUILD_DIR = ${BUILD_DIR} +PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_ROOT = ${SRCROOT} +PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. +PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates +PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} +SKIP_INSTALL = YES +USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES diff --git a/Resources/Storyboard Constraint.png b/Resources/Storyboard Constraint.png new file mode 100644 index 0000000..65a285b Binary files /dev/null and b/Resources/Storyboard Constraint.png differ diff --git a/Resources/Storyboard Label Font.png b/Resources/Storyboard Label Font.png new file mode 100644 index 0000000..cadec0d Binary files /dev/null and b/Resources/Storyboard Label Font.png differ diff --git a/Resources/Storyboard TikTok Demo1.jpg b/Resources/Storyboard TikTok Demo1.jpg new file mode 100644 index 0000000..707b66a Binary files /dev/null and b/Resources/Storyboard TikTok Demo1.jpg differ diff --git a/Resources/Storyboard TikTok Demo2.jpg b/Resources/Storyboard TikTok Demo2.jpg new file mode 100644 index 0000000..d333a69 Binary files /dev/null and b/Resources/Storyboard TikTok Demo2.jpg differ diff --git a/Sources/Zoom/UIAdapter.Zoom.swift b/Sources/Zoom/UIAdapter.Zoom.swift index bdd955b..5a330be 100644 --- a/Sources/Zoom/UIAdapter.Zoom.swift +++ b/Sources/Zoom/UIAdapter.Zoom.swift @@ -21,7 +21,7 @@ import UIKit public enum UIAdapter { - enum Zoom { + public enum Zoom { /// 设置转换闭包 /// @@ -151,7 +151,7 @@ extension UIEdgeInsets: UIAdapterZoomCalculationable { extension NSLayoutConstraint { - @IBInspectable private var autoConstant: Bool { + @IBInspectable private var zoomConstant: Bool { get { return false } set { guard newValue else { return } @@ -163,7 +163,7 @@ extension NSLayoutConstraint { extension UIView { - @IBInspectable private var autoCornerRadius: CGFloat { + @IBInspectable private var zoomCornerRadius: CGFloat { get { return layer.cornerRadius } set { let value: CGFloat = newValue.zoom() @@ -175,7 +175,7 @@ extension UIView { extension UILabel { - @IBInspectable private var autoFont: Bool { + @IBInspectable private var zoomFont: Bool { get { return false } set { guard newValue else { return } @@ -188,7 +188,7 @@ extension UILabel { } } - @IBInspectable private var autoLine: Bool { + @IBInspectable private var zoomLine: Bool { get { return false } set { guard newValue else { return } @@ -198,7 +198,7 @@ extension UILabel { } } - @IBInspectable private var autoShadowOffset: Bool { + @IBInspectable private var zoomShadowOffset: Bool { get { return false } set { guard newValue else { return } @@ -210,7 +210,7 @@ extension UILabel { extension UITextView { - @IBInspectable private var autoFont: Bool { + @IBInspectable private var zoomFont: Bool { get { return false } set { guard newValue else { return } @@ -223,7 +223,7 @@ extension UITextView { extension UITextField { - @IBInspectable private var autoFont: Bool { + @IBInspectable private var zoomFont: Bool { get { return false } set { guard newValue else { return } @@ -236,7 +236,7 @@ extension UITextField { extension UIImageView { - @IBInspectable private var autoImage: Bool { + @IBInspectable private var zoomImage: Bool { get { return false } set { guard newValue else { return } @@ -253,7 +253,7 @@ extension UIImageView { extension UIButton { - @IBInspectable private var autoTitle: Bool { + @IBInspectable private var zoomTitle: Bool { get { return false } set { guard newValue else { return } @@ -286,7 +286,7 @@ extension UIButton { } } - @IBInspectable private var autoImage: Bool { + @IBInspectable private var zoomImage: Bool { get { return false } set { guard newValue else { return } @@ -324,7 +324,7 @@ extension UIButton { } } - @IBInspectable private var autoTitleInsets: Bool { + @IBInspectable private var zoomTitleInsets: Bool { get { return false } set { guard newValue else { return } @@ -333,7 +333,7 @@ extension UIButton { } } - @IBInspectable private var autoImageInsets: Bool { + @IBInspectable private var zoomImageInsets: Bool { get { return false } set { guard newValue else { return } @@ -342,7 +342,7 @@ extension UIButton { } } - @IBInspectable private var autoContentInsets: Bool { + @IBInspectable private var zoomContentInsets: Bool { get { return false } set { guard newValue else { return } @@ -355,7 +355,7 @@ extension UIButton { @available(iOS 9.0, *) extension UIStackView { - @IBInspectable private var autoSpacing: Bool { + @IBInspectable private var zoomSpacing: Bool { get { return false } set { guard newValue else { return }