File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
fern/docs/pages/plug-sdk/ios Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,12 @@ await DevRev.updateUser(Identity(organizationID: "organization-1337"))
71
71
72
72
### UIKit
73
73
74
+ The DevRev SDK allows you to configure the theme dynamically based on the system appearance or use a default theme configured in the DevRev portal.
75
+
76
+ ``` swift
77
+ DevRev.prefersSystemTheme : Bool
78
+ ```
79
+
74
80
The support chat feature can be shown as a modal screen from a specific view controller or the top-most one, or can be pushed onto a navigation stack.
75
81
76
82
To show the support chat screen in your app, you can use the following overloaded method:
@@ -92,6 +98,10 @@ await DevRev.showSupport(isAnimated:)
92
98
For example:
93
99
94
100
``` swift
101
+ // When set to true (default), the DevRev UI will adapt theme dynamically to the system appearance.
102
+ // Set this flag to false to force the DevRev UI to use the default theme configured in the DevRev portal.
103
+ DevRev.prefersSystemTheme : Bool
104
+
95
105
// Push the support chat screen to a navigation stack.
96
106
await DevRev.showSupport (from : mainNavigationController)
97
107
You can’t perform that action at this time.
0 commit comments