Skip to content

Commit

Permalink
Merge pull request #497 from cosmostation/APP-1034-SupportBitcoin
Browse files Browse the repository at this point in the history
Update QrAddressVC.swift
  • Loading branch information
wannabit-yongjoo authored Sep 20, 2024
2 parents 7e9b7e8 + e2eca2c commit c3a6971
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions Cosmostation/Controller/Main/QrAddressVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,26 @@ class QrAddressVC: BaseVC {
}

@IBAction func onClickEvmShare(_ sender: BaseButton) {
// if let evmAddress = selectedChain.evmAddress {
// let activityViewController = UIActivityViewController(activityItems: [evmAddress], applicationActivities: nil)
// activityViewController.popoverPresentationController?.sourceView = self.view
// self.present(activityViewController, animated: true, completion: nil)
// }
if let evmAddress = selectedChain.evmAddress {
let activityViewController = UIActivityViewController(activityItems: [evmAddress], applicationActivities: nil)
activityViewController.popoverPresentationController?.sourceView = self.view
self.present(activityViewController, animated: true, completion: nil)
}
}


@IBAction func onClickBechShare(_ sender: BaseButton) {
// if let bechAddress = selectedChain.bechAddress {
// let activityViewController = UIActivityViewController(activityItems: [bechAddress], applicationActivities: nil)
// activityViewController.popoverPresentationController?.sourceView = self.view
// self.present(activityViewController, animated: true, completion: nil)
// }
if let bechAddress = selectedChain.bechAddress {
let activityViewController = UIActivityViewController(activityItems: [bechAddress], applicationActivities: nil)
activityViewController.popoverPresentationController?.sourceView = self.view
self.present(activityViewController, animated: true, completion: nil)
}

if !selectedChain.mainAddress.isEmpty {
let activityViewController = UIActivityViewController(activityItems: [selectedChain.mainAddress], applicationActivities: nil)
activityViewController.popoverPresentationController?.sourceView = self.view
self.present(activityViewController, animated: true, completion: nil)
}
}
}

Expand Down

0 comments on commit c3a6971

Please sign in to comment.