mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-08 06:46:58 +00:00
ea6a09b66e
* ui: open external link alerts * update * update * update * update * update * change link, add link to alert, close modals when opening chat * refactor * add string * fix link in terms * open simplex chat links from privacy policy in app --------- Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com> Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
44 lines
1.5 KiB
Swift
44 lines
1.5 KiB
Swift
//
|
|
// AddContactLearnMore.swift
|
|
// SimpleX (iOS)
|
|
//
|
|
// Created by spaced4ndy on 27.04.2023.
|
|
// Copyright © 2023 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct AddContactLearnMore: View {
|
|
var showTitle: Bool
|
|
|
|
var body: some View {
|
|
List {
|
|
if showTitle {
|
|
Text("One-time invitation link")
|
|
.font(.largeTitle)
|
|
.bold()
|
|
.fixedSize(horizontal: false, vertical: true)
|
|
.padding(.vertical)
|
|
.listRowBackground(Color.clear)
|
|
.listRowSeparator(.hidden)
|
|
.listRowInsets(EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 0))
|
|
}
|
|
VStack(alignment: .leading, spacing: 18) {
|
|
Text("To connect, your contact can scan QR code or use the link in the app.")
|
|
Text("If you can't meet in person, show QR code in a video call, or share the link.")
|
|
ExternalLink("Read more in User Guide.", destination: URL(string: "https://simplex.chat/docs/guide/readme.html#connect-to-friends")!)
|
|
}
|
|
.frame(maxWidth: .infinity, alignment: .leading)
|
|
.listRowBackground(Color.clear)
|
|
.listRowInsets(EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 0))
|
|
}
|
|
.modifier(ThemedBackground(grouped: true))
|
|
}
|
|
}
|
|
|
|
struct AddContactLearnMore_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
AddContactLearnMore(showTitle: true)
|
|
}
|
|
}
|