mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-01 22:35:49 +00:00
* ios: allow for chat profile selection on new chat screen * add api and types * initial api connection with error handling * improve incognito handling * adjustments to different server connections * loading state * simpler handling of race * smaller delay * improve error handling and messages * fix header * remove tap section footer * incognito adjustments * set UI driving vars in main thread * remove result * incognito in profile picker and footer * put incognito mask inside a circle * fix click on incognito when already selected * fix avoid users swapping position when picker is active * fix pending contact cleanup logic * icons * restore incognito help * fix updating qr code * remove info from footer * layout --------- Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com> Co-authored-by: spaced4ndy <8711996+spaced4ndy@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.")
|
|
Text("Read more in [User Guide](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)
|
|
}
|
|
}
|