@@ -3,20 +3,24 @@ import SwiftUI
33struct InviteAcceptedView : View {
44 @State private var showingDescription : Bool = false
55
6+ @Environment ( \. openURL) private var openURL : OpenURLAction
7+
68 var body : some View {
7- Group {
9+ Button {
10+ openURL ( Constant . learnMoreURL)
11+ } label: {
812 VStack ( spacing: DesignConstants . Spacing. step2x) {
913 HStack {
10- Image ( systemName: " checkmark.circle.fill " )
14+ Image ( systemName: " qrcode " )
1115 . font ( . footnote)
12- . foregroundStyle ( . colorGreen )
13- Text ( " Invite accepted " )
16+ . foregroundStyle ( . colorLava )
17+ Text ( " Verifying " )
1418 . foregroundStyle ( . colorTextPrimary)
1519 }
1620 . font ( . body)
1721
1822 if showingDescription {
19- Text ( " See and send messages after someone approves you. " )
23+ Text ( " See and send messages after your access is verified " )
2024 . font ( . caption)
2125 . foregroundStyle ( . colorTextSecondary)
2226 . multilineTextAlignment ( . center)
@@ -25,12 +29,14 @@ struct InviteAcceptedView: View {
2529 . transition ( . blurReplace)
2630 . animation ( . spring( duration: 0.4 , bounce: 0.2 ) , value: showingDescription)
2731 . padding ( DesignConstants . Spacing. step6x)
32+ . frame ( maxWidth: . infinity)
33+ . background ( . colorFillMinimal)
34+ . clipShape ( RoundedRectangle ( cornerRadius: DesignConstants . CornerRadius. mediumLarge) )
2835 }
29- . frame ( maxWidth: . infinity)
30- . background ( . colorFillMinimal)
31- . clipShape ( RoundedRectangle ( cornerRadius: DesignConstants . CornerRadius. mediumLarge) )
36+ . buttonStyle ( . plain)
3237 . accessibilityElement ( children: . combine)
33- . accessibilityLabel ( " Invite accepted. See and send messages after someone approves you. " )
38+ . accessibilityIdentifier ( " invite-accepted-view " )
39+ . accessibilityLabel ( " Verifying. See and send messages after your access is verified. " )
3440 . onAppear {
3541 DispatchQueue . main
3642 . asyncAfter ( deadline: . now( ) + ConversationOnboardingState. waitingForInviteAcceptanceDelay) {
@@ -40,6 +46,11 @@ struct InviteAcceptedView: View {
4046 }
4147 }
4248 }
49+
50+ private enum Constant {
51+ // swiftlint:disable:next force_unwrapping
52+ static let learnMoreURL : URL = URL ( string: " https://learn.convos.org/verifying " ) !
53+ }
4354}
4455
4556#Preview {
0 commit comments