Skip to content

Commit

Permalink
Dismiss proxy-qr-screen (#2394)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed Nov 15, 2024
1 parent 3880d8f commit 9dad952
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class ShareProxyViewController: UIViewController {
let svg = dcContext.createQRSVG(for: proxyUrlString)
qrContentView.image = getQrImage(svg: svg)

navigationItem.leftBarButtonItem = UIBarButtonItem(title: String.localized("done"), style: .done, target: self, action: #selector(ShareProxyViewController.done(_:)))

view.addSubview(contentScrollView)

setupConstraints()
Expand Down Expand Up @@ -127,4 +129,8 @@ class ShareProxyViewController: UIViewController {

Utils.share(url: inviteLinkURL, parentViewController: self, sourceView: sender)
}

@objc private func done(_ sender: Any) {
dismiss(animated: true)
}
}

0 comments on commit 9dad952

Please sign in to comment.