add images for wallets

This commit is contained in:
Suhail Saqan
2022-12-22 04:34:26 -06:00
parent bb6d1b2522
commit 3a34fd5f46
18 changed files with 182 additions and 8 deletions

View File

@@ -12,6 +12,7 @@ struct WalletItem : Decodable, Identifiable {
var name : String
var link : String
var appStoreLink : String
var image: String
}
struct SelectWalletView: View {
@@ -25,6 +26,11 @@ struct SelectWalletView: View {
VStack(alignment: .leading) {
ForEach(walletItems) { wallet in
HStack(spacing: 20) {
Image(wallet.image)
.resizable()
.scaledToFit()
.aspectRatio(contentMode: .fit)
.cornerRadius(5)
Button("\(wallet.name)"){
if let url = URL(string: "\(wallet.link)\(invoice)"), UIApplication.shared.canOpenURL(url) {
openURL(url)