-
Notifications
You must be signed in to change notification settings - Fork 3
ISS-167739: Update Fern to support use default theme flag in documentation #218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
d4a0406
d8140b9
7fdca0e
f629530
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 [EkLine] reported by reviewdog 🐶
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,12 @@ await DevRev.updateUser(Identity(organizationID: "organization-1337")) | |
|
||
### UIKit | ||
|
||
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. | ||
|
||
```swift | ||
DevRev.prefersSystemTheme: Bool | ||
``` | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A few things here:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Yug2801 make sure you sync the changes with @dhananjayj-dev. |
||
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. | ||
|
||
To show the support chat screen in your app, you can use the following overloaded method: | ||
|
@@ -92,6 +98,10 @@ await DevRev.showSupport(isAnimated:) | |
For example: | ||
|
||
```swift | ||
// When set to true (default), the DevRev UI will adapt theme dynamically to the system appearance. | ||
// Set this flag to false to force the DevRev UI to use the default theme configured in the DevRev portal. | ||
DevRev.prefersSystemTheme: Bool | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need for this example. The property itself is self-explaining. |
||
// Push the support chat screen to a navigation stack. | ||
await DevRev.showSupport(from: mainNavigationController) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where possible, do not structure sentences in future tense. Use present tense instead. (EK00005)
fern-api-docs/fern/docs/pages/plug-sdk/ios/features.mdx
Line 10 in d4a0406