File tree 1 file changed +8
-0
lines changed 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ Diagnostics is a library written in Swift which makes it really easy to share Di
21
21
- [ Features] ( #features )
22
22
- [ Requirements] ( #requirements )
23
23
- [ Usage] ( #usage )
24
+ - [Using a custom UserDefaults type](#using-a-custom-userdefaults-type)
24
25
- [Filtering out sensitive data](#filtering-out-sensitive-data)
25
26
- [Adding your own custom logs](#adding-your-own-custom-logs)
26
27
- [Adding your own custom report](#adding-your-own-custom-report)
@@ -101,6 +102,13 @@ extension ViewController: MFMailComposeViewControllerDelegate {
101
102
}
102
103
```
103
104
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
+
104
112
### Filtering out sensitive data
105
113
It could be that your report is containing sensitive data. You can filter this out by creating a ` DiagnosticsReportFilter ` .
106
114
You can’t perform that action at this time.
0 commit comments