Skip to content

Commit 7fdca0e

Browse files
Improve the documentation for dynamic theme configuration
1 parent d8140b9 commit 7fdca0e

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

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

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

7070
## PLuG support chat
7171

72-
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.
73-
74-
```swift
75-
DevRev.prefersSystemTheme: Bool
76-
```
77-
7872
### UIKit
7973

8074
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. 
@@ -98,10 +92,6 @@ await DevRev.showSupport(isAnimated:)
9892
For example:
9993

10094
```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-
10595
// Push the support chat screen to a navigation stack.
10696
await DevRev.showSupport(from: mainNavigationController)
10797

@@ -167,6 +157,14 @@ You can further customize the behavior by setting the `shouldDismissModalsOnOpen
167157
DevRev.shouldDismissModalsOnOpenLink: Bool
168158
```
169159

160+
## Dynamic Theme Configuration
161+
162+
The DevRev SDK allows you to configure the theme dynamically based on the system appearance, or use the theme configured on the DevRev portal. By default, the theme will be dynamic and follow the system appearance.
163+
164+
```swift
165+
DevRev.prefersSystemTheme: Bool
166+
```
167+
170168
## Session analytics
171169

172170
The DevRev SDK offers session analytics features to help you understand how users interact with your app.

0 commit comments

Comments
 (0)