Skip to content

Commit 21b6b9c

Browse files
committed
Add custom user defaults as explanation
1 parent 07a2568 commit 21b6b9c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Diagnostics is a library written in Swift which makes it really easy to share Di
2121
- [Features](#features)
2222
- [Requirements](#requirements)
2323
- [Usage](#usage)
24+
- [Using a custom UserDefaults type](#using-a-custom-userdefaults-type)
2425
- [Filtering out sensitive data](#filtering-out-sensitive-data)
2526
- [Adding your own custom logs](#adding-your-own-custom-logs)
2627
- [Adding your own custom report](#adding-your-own-custom-report)
@@ -101,6 +102,13 @@ extension ViewController: MFMailComposeViewControllerDelegate {
101102
}
102103
```
103104

105+
### Using a custom UserDefaults type
106+
Simply set your user defaults instance by making use of:
107+
108+
```swift
109+
UserDefaultsReporter.userDefaults = ..
110+
```
111+
104112
### Filtering out sensitive data
105113
It could be that your report is containing sensitive data. You can filter this out by creating a `DiagnosticsReportFilter`.
106114

0 commit comments

Comments
 (0)