From ee3e8cfc82542dfd8a61137919fbc7040060bb4f Mon Sep 17 00:00:00 2001 From: devyao <15919688564@163.com> Date: Wed, 14 Jul 2021 12:27:33 +0800 Subject: [PATCH] fix background view --- JSONConverter.xcodeproj/project.pbxproj | 18 ++++-- .../LineColor.colorset/Contents.json | 56 +++++++++++++++++++ .../Main/Controller/MainViewController.xib | 13 +++-- .../Classes/View/CustomBackgroundView.swift | 19 +++++++ .../View/PanGestureIndicatorView.swift | 7 +++ 5 files changed, 101 insertions(+), 12 deletions(-) create mode 100644 JSONConverter/Assets.xcassets/LineColor.colorset/Contents.json create mode 100644 JSONConverter/Classes/View/CustomBackgroundView.swift diff --git a/JSONConverter.xcodeproj/project.pbxproj b/JSONConverter.xcodeproj/project.pbxproj index ba093c0..e394cf6 100644 --- a/JSONConverter.xcodeproj/project.pbxproj +++ b/JSONConverter.xcodeproj/project.pbxproj @@ -134,6 +134,7 @@ 8EC079DC268993D400000F68 /* an-old-hope.min.css in Resources */ = {isa = PBXBuildFile; fileRef = 8EC07979268993D400000F68 /* an-old-hope.min.css */; }; 8EC079DD268993D400000F68 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 8EC0797B268993D400000F68 /* LICENSE */; }; 8EC079DE268993D400000F68 /* highlight.min.js in Resources */ = {isa = PBXBuildFile; fileRef = 8EC0797C268993D400000F68 /* highlight.min.js */; }; + 8EC3AAC2269E9EAD00CE0262 /* CustomBackgroundView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8EC3AAC1269E9EAD00CE0262 /* CustomBackgroundView.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -282,6 +283,7 @@ 8EC07979268993D400000F68 /* an-old-hope.min.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = "an-old-hope.min.css"; sourceTree = ""; }; 8EC0797B268993D400000F68 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 8EC0797C268993D400000F68 /* highlight.min.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = highlight.min.js; sourceTree = ""; }; + 8EC3AAC1269E9EAD00CE0262 /* CustomBackgroundView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomBackgroundView.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -486,6 +488,7 @@ isa = PBXGroup; children = ( 8E542C2E25130C160053C1E0 /* PanGestureIndicatorView.swift */, + 8EC3AAC1269E9EAD00CE0262 /* CustomBackgroundView.swift */, ); path = View; sourceTree = ""; @@ -868,6 +871,7 @@ 7B7D5AE624FA520800A54D27 /* Date+Extension.swift in Sources */, 7B45DAFE202A95BF007E8D56 /* JSONBuilder.swift in Sources */, 8EC07980268993D400000F68 /* HTMLUtils.swift in Sources */, + 8EC3AAC2269E9EAD00CE0262 /* CustomBackgroundView.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1031,10 +1035,10 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = JSONConverter/JSONConverter.entitlements; - CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_IDENTITY = "-"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = 7DDW7FQJ8R; + DEVELOPMENT_TEAM = ""; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = JSONConverter/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; @@ -1042,6 +1046,7 @@ MARKETING_VERSION = 2.0.4; PRODUCT_BUNDLE_IDENTIFIER = com.devyao.JSONConverter; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "JSONConverter/JSONConverter-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -1054,17 +1059,18 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = JSONConverter/JSONConverter.entitlements; - CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_IDENTITY = "3rd Party Mac Developer Application"; + CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = 7DDW7FQJ8R; + DEVELOPMENT_TEAM = 897BNGH9W3; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = JSONConverter/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.15; MARKETING_VERSION = 2.0.4; - PRODUCT_BUNDLE_IDENTIFIER = com.devyao.JSONConverter; + PRODUCT_BUNDLE_IDENTIFIER = com.devyaochen.JSONConverter; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = JSONConverter_mac_appstore_profile; SWIFT_OBJC_BRIDGING_HEADER = "JSONConverter/JSONConverter-Bridging-Header.h"; SWIFT_VERSION = 5.0; }; diff --git a/JSONConverter/Assets.xcassets/LineColor.colorset/Contents.json b/JSONConverter/Assets.xcassets/LineColor.colorset/Contents.json new file mode 100644 index 0000000..0e6e089 --- /dev/null +++ b/JSONConverter/Assets.xcassets/LineColor.colorset/Contents.json @@ -0,0 +1,56 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0.570", + "green" : "0.570", + "red" : "0.570" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "light" + } + ], + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0.921", + "green" : "0.921", + "red" : "0.921" + } + }, + "idiom" : "universal" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0.261", + "green" : "0.261", + "red" : "0.261" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/JSONConverter/Classes/Controller/Main/Controller/MainViewController.xib b/JSONConverter/Classes/Controller/Main/Controller/MainViewController.xib index f1c64e4..18b906d 100644 --- a/JSONConverter/Classes/Controller/Main/Controller/MainViewController.xib +++ b/JSONConverter/Classes/Controller/Main/Controller/MainViewController.xib @@ -1,7 +1,8 @@ - + - + + @@ -138,18 +139,18 @@ - +