Skip to content

Commit 5c69e62

Browse files
committed
Improve the documentation for dynamic theme configuration
1 parent ec2c085 commit 5c69e62

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ DevRev.conversationCreatedCompletion = { conversationID in
229229
```
230230

231231
### In-app link handling
232+
232233
The DevRev SDK provides a mechanism to handle links opened from within any screen that is part of the DevRev SDK.
233234

234235
You can fully customize the link handling behavior by setting the specialized in-app link handler. That way you can decide what should happen when a link is opened from within the app.
@@ -243,6 +244,14 @@ You can further customize the behavior by setting the `shouldDismissModalsOnOpen
243244
DevRev.shouldDismissModalsOnOpenLink: Bool
244245
```
245246

247+
### Dynamic Theme Configuration
248+
249+
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.
250+
251+
```swift
252+
DevRev.prefersSystemTheme: Bool
253+
```
254+
246255
### Analytics
247256

248257
The DevRev SDK allows you to send custom analytic events by using a name and a string dictionary. You can track these events using the following function:

0 commit comments

Comments
 (0)