mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-08 14:56:37 +00:00
* ios: hide user picker sheet instantly, when opening another sheet * tweak appearance * distance based animation duration * cleanup; dismiss * implement UIViewPropertyAnimator * resolve warning * user picker bottom padding * reset user scroll position on dismiss; cleanup * reduce dif * delay user picker closing * touchable list row; prevent tap gesture passtrough * fix dark mode tap target; retain highlight; highlight in user scroller * fix layout loop; add upper animation speed constraint * refactor separators * instantanious longPress; tweak animations * cubic animation curve; dynamic backdrop opacity * remove touchdown animation * ios: user picker sheet concurent animation (#4955) * ios: user picker sheet concurent animation * bind showSettings; cleanup * async qr code generation * fix iOS15 sheet animation when presenting sheet multiple times * async camera authorization in 'Use from desktop' sheet * load sheet navigation titles before presenting (#4963) * load sheet navigation titles before presenting * list background during loading * improve handling of repeated sheet presentation state changes * fix keyboard related glitches * ios: remove `showSettings` and `withNavigation` (#4980) * remove showSettings * pass dismiss action trough navigation links * move auth to all sheets --------- Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
70 lines
1.9 KiB
Swift
70 lines
1.9 KiB
Swift
//
|
|
// 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
|
|
let dismissSettingsSheet: DismissAction
|
|
|
|
var body: some View {
|
|
ScrollView { chatHelp() }
|
|
}
|
|
|
|
func chatHelp() -> some View {
|
|
VStack(alignment: .leading, spacing: 10) {
|
|
Text("Thank you for installing SimpleX Chat!")
|
|
|
|
VStack(alignment: .leading, spacing: 0) {
|
|
Text("To ask any questions and to receive updates:")
|
|
Button("connect to SimpleX Chat developers.") {
|
|
dismissSettingsSheet()
|
|
DispatchQueue.main.async {
|
|
UIApplication.shared.open(simplexTeamURL)
|
|
}
|
|
}
|
|
.padding(.top, 2)
|
|
}
|
|
|
|
VStack(alignment: .leading, spacing: 10) {
|
|
Text("To make a new connection")
|
|
.font(.title2)
|
|
.fontWeight(.bold)
|
|
|
|
HStack(spacing: 8) {
|
|
Text("Tap button ")
|
|
NewChatMenuButton()
|
|
Text("above, then choose:")
|
|
}
|
|
|
|
Text("**Add contact**: to create a new invitation link, or connect via a link you received.")
|
|
Text("**Create group**: to create a new group.")
|
|
}
|
|
.padding(.top, 24)
|
|
|
|
VStack(alignment: .leading, spacing: 10) {
|
|
Text("Markdown in messages")
|
|
.font(.title2)
|
|
.fontWeight(.bold)
|
|
|
|
MarkdownHelp()
|
|
}
|
|
.padding(.top, 24)
|
|
}
|
|
.padding()
|
|
}
|
|
}
|
|
|
|
struct ChatHelp_Previews: PreviewProvider {
|
|
@Environment(\.dismiss) static var mockDismiss
|
|
|
|
static var previews: some View {
|
|
ChatHelp(dismissSettingsSheet: mockDismiss)
|
|
}
|
|
}
|