From 724773cb45ab75f543c60d274fe861b6f2b5f0a0 Mon Sep 17 00:00:00 2001 From: ericholguin Date: Fri, 26 May 2023 15:17:23 -0600 Subject: [PATCH] setupview: add learn about nostr link view --- damus/Views/SetupView.swift | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/damus/Views/SetupView.swift b/damus/Views/SetupView.swift index 063c5d60..35b6a20d 100644 --- a/damus/Views/SetupView.swift +++ b/damus/Views/SetupView.swift @@ -69,6 +69,23 @@ func DamusWhiteButton(_ title: String, action: @escaping () -> ()) -> some View .stroke(Color.white, lineWidth: 2.0) .background(Color.white.opacity(0.15)) ) +struct LearnAboutNostrLink: View { + @Environment(\.openURL) var openURL + var body: some View { + HStack { + Button(action: { + openURL(URL(string: "https://nostr.com")!) + }, label: { + Text("Learn more about nostr") + .foregroundColor(.accentColor) + }) + + Image(systemName: "arrow.up.right") + .font(.footnote) + .foregroundColor(.accentColor) + } + } +} } }