File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
Examples/Sample-SwiftUI/iOS/Views Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -22,23 +22,38 @@ struct LoggedInView: View {
22
22
}
23
23
VStack ( spacing: 15 ) {
24
24
StylizedButton ( " Open Messenger " , action: openMessenger)
25
+ StylizedButton ( " Open Inbox " , action: openInbox)
25
26
StylizedButton ( " Open Help Center " , action: openHelpCenter)
26
27
StylizedButton ( " Open Article " , action: openArticle)
28
+ StylizedButton ( " Open Carousel " , action: openCarousel)
29
+ StylizedButton ( " Open Survey " , action: openSurvey)
27
30
StylizedButton ( " Log out " , action: logoutOfIntercom)
28
31
}
29
32
}
30
33
}
31
34
32
35
func openMessenger( ) {
33
- Intercom . presentMessenger ( )
36
+ Intercom . present ( )
37
+ }
38
+
39
+ func openInbox( ) {
40
+ Intercom . present ( . messages)
34
41
}
35
42
36
43
func openHelpCenter( ) {
37
- Intercom . presentHelpCenter ( )
44
+ Intercom . present ( . helpCenter )
38
45
}
39
46
40
47
func openArticle( ) {
41
- Intercom . presentArticle ( " <#ARTICLE_ID#> " )
48
+ Intercom . presentContent ( . article( id: " <#ARTICLE_ID#> " ) )
49
+ }
50
+
51
+ func openCarousel( ) {
52
+ Intercom . presentContent ( . carousel( id: " <#CAROUSEL_ID#> " ) )
53
+ }
54
+
55
+ func openSurvey( ) {
56
+ Intercom . presentContent ( . survey( id: " <#SURVEY_ID#> " ) )
42
57
}
43
58
44
59
func logoutOfIntercom( ) {
You can’t perform that action at this time.
0 commit comments