2022-02-11 07:42:00 +00:00
|
|
|
//
|
|
|
|
// ChatHelp.swift
|
|
|
|
// SimpleX
|
|
|
|
//
|
|
|
|
// Created by Evgeny Poberezkin on 10/02/2022.
|
|
|
|
// Copyright © 2022 SimpleX Chat. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
struct ChatHelp: View {
|
|
|
|
@EnvironmentObject var chatModel: ChatModel
|
2024-10-07 20:30:17 +03:00
|
|
|
let dismissSettingsSheet: DismissAction
|
2022-02-11 07:42:00 +00:00
|
|
|
|
|
|
|
var body: some View {
|
2022-12-26 14:08:01 +00:00
|
|
|
ScrollView { chatHelp() }
|
|
|
|
}
|
|
|
|
|
|
|
|
func chatHelp() -> some View {
|
2022-02-11 07:42:00 +00:00
|
|
|
VStack(alignment: .leading, spacing: 10) {
|
|
|
|
Text("Thank you for installing SimpleX Chat!")
|
|
|
|
|
2022-04-16 09:37:01 +01:00
|
|
|
VStack(alignment: .leading, spacing: 0) {
|
|
|
|
Text("To ask any questions and to receive updates:")
|
|
|
|
Button("connect to SimpleX Chat developers.") {
|
2024-10-07 20:30:17 +03:00
|
|
|
dismissSettingsSheet()
|
2022-02-11 07:42:00 +00:00
|
|
|
DispatchQueue.main.async {
|
|
|
|
UIApplication.shared.open(simplexTeamURL)
|
|
|
|
}
|
|
|
|
}
|
2022-04-20 11:53:34 +04:00
|
|
|
.padding(.top, 2)
|
2022-02-11 07:42:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
VStack(alignment: .leading, spacing: 10) {
|
2022-05-09 09:52:09 +01:00
|
|
|
Text("To make a new connection")
|
2022-02-11 07:42:00 +00:00
|
|
|
.font(.title2)
|
|
|
|
.fontWeight(.bold)
|
|
|
|
|
|
|
|
HStack(spacing: 8) {
|
|
|
|
Text("Tap button ")
|
2024-08-05 12:58:24 +01:00
|
|
|
NewChatMenuButton()
|
2022-05-09 09:52:09 +01:00
|
|
|
Text("above, then choose:")
|
2022-02-11 07:42:00 +00:00
|
|
|
}
|
|
|
|
|
2024-11-27 19:01:16 +00:00
|
|
|
Text("**Create 1-time link**: to create and share a new invitation link.")
|
2024-11-26 14:43:39 +04:00
|
|
|
Text("**Scan / Paste link**: to connect via a link you received.")
|
ios: rework UX of creating new connection (#3482)
* ios: connection UI (wip)
* custom search
* rework invite
* connect paste link ui
* scan rework, process errors, other fixes
* scan layout
* clear link on cancel
* improved search
* further improve search
* animation
* connect on paste in search
* layout
* layout
* layout
* layout, add conn
* delete unused invitation, create used invitation chat
* remove old views
* regular paste button
* new chat menu
* previews
* increase spacing
* animation, fix alerts
* swipe
* change text
* less sensitive gesture
* layout
* search cancel button transition
* slow down chat list animation (uses deprecated modifiers)
* icons
* update code scanner, layout
* manage camera permissions
* ask to delete unused invitation
* comment
* remove onDismiss
* don't filter chats on link in search, allow to paste text with link
* cleanup link after connection
* filter chat by link
* revert change
* show link descr
* disabled search
* underline
* filter own group
* simplify
* no animation
* add delay, move createInvitation
* update library
* possible fix for ios 15
* add explicit frame to qr code
* update library
* Revert "add explicit frame to qr code"
This reverts commit 95c7d31e47b3da39b5985cd57638885c45b77de1.
* remove comment
* fix pasteboardHasURLs, disable paste button based on it
* align help texts with changed button names
Co-authored-by: Stanislav Dmitrenko <7953703+avently@users.noreply.github.com>
* update library
* Revert "fix pasteboardHasURLs, disable paste button based on it"
This reverts commit 46f63572e90dbf460faab9ce694181209712bd00.
* remove unused var
* restore disabled
* export localizations
---------
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
Co-authored-by: Stanislav Dmitrenko <7953703+avently@users.noreply.github.com>
2023-12-29 16:29:49 +04:00
|
|
|
Text("**Create group**: to create a new group.")
|
2022-02-11 07:42:00 +00:00
|
|
|
}
|
|
|
|
.padding(.top, 24)
|
2022-12-26 14:08:01 +00:00
|
|
|
|
|
|
|
VStack(alignment: .leading, spacing: 10) {
|
|
|
|
Text("Markdown in messages")
|
|
|
|
.font(.title2)
|
|
|
|
.fontWeight(.bold)
|
|
|
|
|
|
|
|
MarkdownHelp()
|
|
|
|
}
|
|
|
|
.padding(.top, 24)
|
2022-02-11 07:42:00 +00:00
|
|
|
}
|
|
|
|
.padding()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
struct ChatHelp_Previews: PreviewProvider {
|
2024-10-07 20:30:17 +03:00
|
|
|
@Environment(\.dismiss) static var mockDismiss
|
|
|
|
|
2022-02-11 07:42:00 +00:00
|
|
|
static var previews: some View {
|
2024-10-07 20:30:17 +03:00
|
|
|
ChatHelp(dismissSettingsSheet: mockDismiss)
|
2022-02-11 07:42:00 +00:00
|
|
|
}
|
|
|
|
}
|