Skip to content

Commit d4a0406

Browse files
Update the latest default theme feature iOS documentations
1 parent a0a377a commit d4a0406

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

fern/docs/pages/plug-sdk/ios/features.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ await DevRev.updateUser(Identity(organizationID: "organization-1337"))
7171

7272
### UIKit
7373

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+
7480
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. 
7581

7682
To show the support chat screen in your app, you can use the following overloaded method:
@@ -92,6 +98,10 @@ await DevRev.showSupport(isAnimated:)
9298
For example:
9399

94100
```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+
95105
// Push the support chat screen to a navigation stack.
96106
await DevRev.showSupport(from: mainNavigationController)
97107

0 commit comments

Comments
 (0)