From 2bc233d9ff1db8012dff17b392e518fb571aaa5f Mon Sep 17 00:00:00 2001 From: DaSol Kim Date: Tue, 5 Sep 2023 21:27:13 +0900 Subject: [PATCH] feat: add pin button and automation setting button. (#135) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add pin button and automation setting button. * chore: Package.resolved * chore: 코드외 필요없는 부분 삭제 --------- Co-authored-by: KIM CHAN HEE <85754295+chanhihi@users.noreply.github.com> --- .../xcshareddata/swiftpm/Package.resolved | 16 ---------------- Box42/Main/BoxBaseContainerViewController.swift | 14 ++++++++------ 2 files changed, 8 insertions(+), 22 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 19d4e8c..0000000 --- a/Box42.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,16 +0,0 @@ -{ - "object": { - "pins": [ - { - "package": "SnapKit", - "repositoryURL": "https://github.com/SnapKit/SnapKit.git", - "state": { - "branch": null, - "revision": "f222cbdf325885926566172f6f5f06af95473158", - "version": "5.6.0" - } - } - ] - }, - "version": 1 -} diff --git a/Box42/Main/BoxBaseContainerViewController.swift b/Box42/Main/BoxBaseContainerViewController.swift index abd8ce9..dda231d 100644 --- a/Box42/Main/BoxBaseContainerViewController.swift +++ b/Box42/Main/BoxBaseContainerViewController.swift @@ -523,12 +523,14 @@ extension BoxBaseContainerViewController { } if button.title == QuickSlotUI.title.user { - 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() + 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) + } + } } } }