mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-24 23:38:57 +01:00
31 lines
1.6 KiB
Swift
31 lines
1.6 KiB
Swift
//
|
|
// SendReceiveButtons.swift
|
|
// BlueWallet
|
|
//
|
|
// Created by Marcos Rodriguez on 11/3/20.
|
|
// Copyright © 2020 BlueWallet. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
import WidgetKit
|
|
|
|
struct SendReceiveButtons: View {
|
|
var body: some View {
|
|
VStack(alignment: .center, spacing: nil, content: {
|
|
HStack(alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/, spacing: 16, content: {
|
|
Link("receive", destination: URL(string: "bluewallet://widget?action=openReceive")!).frame(minWidth: 144, maxWidth: /*@START_MENU_TOKEN@*/.infinity/*@END_MENU_TOKEN@*/, minHeight: 32, maxHeight: 32, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/).lineLimit(1).foregroundColor(.textColor).font(Font.system(size:11, weight: .semibold, design: .default)).background(Color.widgetBackground).overlay(
|
|
RoundedRectangle(cornerRadius: 4.0)
|
|
.stroke(Color.widgetBackground, lineWidth: 4.0))
|
|
Link("send", destination: URL(string: "bluewallet://widget?action=openSend")!).frame(minWidth: 144, maxWidth: /*@START_MENU_TOKEN@*/.infinity/*@END_MENU_TOKEN@*/, minHeight: 32, maxHeight: 32, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/).lineLimit(1).foregroundColor(.textColor).font(Font.system(size:11, weight: .semibold, design: .default)).background(Color.widgetBackground).overlay(
|
|
RoundedRectangle(cornerRadius: 4.0)
|
|
.stroke(Color.widgetBackground, lineWidth: 4.0))
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
struct SendReceiveButtons_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
SendReceiveButtons().previewContext(WidgetPreviewContext(family: .systemLarge))
|
|
}
|
|
}
|