From a14ba09445daba21b6d95444b471cefdb723064a Mon Sep 17 00:00:00 2001 From: DaSol Kim Date: Tue, 5 Sep 2023 20:53:59 +0900 Subject: [PATCH 1/3] feat: add pin button and automation setting button. --- .../xcshareddata/swiftpm/Package.resolved | 24 +++++++++---------- .../Main/BoxBaseContainerViewController.swift | 11 +++++++++ 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/Box42.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Box42.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 19d4e8c..009c162 100644 --- a/Box42.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Box42.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -1,16 +1,14 @@ { - "object": { - "pins": [ - { - "package": "SnapKit", - "repositoryURL": "https://github.com/SnapKit/SnapKit.git", - "state": { - "branch": null, - "revision": "f222cbdf325885926566172f6f5f06af95473158", - "version": "5.6.0" - } + "pins" : [ + { + "identity" : "snapkit", + "kind" : "remoteSourceControl", + "location" : "https://github.com/SnapKit/SnapKit.git", + "state" : { + "revision" : "f222cbdf325885926566172f6f5f06af95473158", + "version" : "5.6.0" } - ] - }, - "version": 1 + } + ], + "version" : 2 } diff --git a/Box42/Main/BoxBaseContainerViewController.swift b/Box42/Main/BoxBaseContainerViewController.swift index abd8ce9..09e0955 100644 --- a/Box42/Main/BoxBaseContainerViewController.swift +++ b/Box42/Main/BoxBaseContainerViewController.swift @@ -523,6 +523,16 @@ extension BoxBaseContainerViewController { } if button.title == QuickSlotUI.title.user { + if let url = URL(string: "x-apple.systempreferences:com.apple.preference.keyboard") { + NSWorkspace.shared.open(url) + + DispatchQueue.main.asyncAfter(deadline: .now() + 3.0) { + if let url = URL(string: "x-apple.systempreferences:com.apple.preference.general") { + NSWorkspace.shared.open(url) + } + } + } + print("Button with title \(button.title) was tapped in BaseVC") contentGroup.removeAllSubviews() print(WebViewManager.shared.hostingWebView!) @@ -530,6 +540,7 @@ extension BoxBaseContainerViewController { WebViewManager.shared.hostingWebView!.snp.makeConstraints { make in make.top.bottom.left.right.equalToSuperview() } + // run script } } } From 90f5b5cac36e44b17b9e4b00fb386fd22851f5d2 Mon Sep 17 00:00:00 2001 From: KIM CHAN HEE <85754295+chanhihi@users.noreply.github.com> Date: Tue, 5 Sep 2023 21:21:20 +0900 Subject: [PATCH 2/3] chore: Package.resolved --- .../xcshareddata/swiftpm/Package.resolved | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 Box42.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved diff --git a/Box42.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Box42.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved deleted file mode 100644 index 009c162..0000000 --- a/Box42.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,14 +0,0 @@ -{ - "pins" : [ - { - "identity" : "snapkit", - "kind" : "remoteSourceControl", - "location" : "https://github.com/SnapKit/SnapKit.git", - "state" : { - "revision" : "f222cbdf325885926566172f6f5f06af95473158", - "version" : "5.6.0" - } - } - ], - "version" : 2 -} From 5ff44b438ba277bf8a54594e60a99dd3c956de79 Mon Sep 17 00:00:00 2001 From: KIM CHAN HEE <85754295+chanhihi@users.noreply.github.com> Date: Tue, 5 Sep 2023 21:26:06 +0900 Subject: [PATCH 3/3] =?UTF-8?q?chore:=20=EC=BD=94=EB=93=9C=EC=99=B8=20?= =?UTF-8?q?=ED=95=84=EC=9A=94=EC=97=86=EB=8A=94=20=EB=B6=80=EB=B6=84=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Box42/Main/BoxBaseContainerViewController.swift | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Box42/Main/BoxBaseContainerViewController.swift b/Box42/Main/BoxBaseContainerViewController.swift index 09e0955..dda231d 100644 --- a/Box42/Main/BoxBaseContainerViewController.swift +++ b/Box42/Main/BoxBaseContainerViewController.swift @@ -532,15 +532,6 @@ extension BoxBaseContainerViewController { } } } - - print("Button with title \(button.title) was tapped in BaseVC") - contentGroup.removeAllSubviews() - print(WebViewManager.shared.hostingWebView!) - contentGroup.addSubview(WebViewManager.shared.hostingWebView!) - WebViewManager.shared.hostingWebView!.snp.makeConstraints { make in - make.top.bottom.left.right.equalToSuperview() - } - // run script } } }