Skip to content

Commit

Permalink
feat: add pin button and automation setting button. (#135)
Browse files Browse the repository at this point in the history
* feat: add pin button and automation setting button.

* chore: Package.resolved

* chore: 코드외 필요없는 부분 삭제

---------

Co-authored-by: KIM CHAN HEE <[email protected]>
  • Loading branch information
DaSol Kim and chanhihi authored Sep 5, 2023
1 parent 8e05f27 commit 2bc233d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.

This file was deleted.

14 changes: 8 additions & 6 deletions Box42/Main/BoxBaseContainerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}
}
Expand Down

0 comments on commit 2bc233d

Please sign in to comment.