Skip to content

Commit

Permalink
Merge pull request #173 from WeTransfer/peagasilva-patch-1
Browse files Browse the repository at this point in the history
Reword `Using a UserDefaultsReporter` section
  • Loading branch information
raphkoebraam committed Apr 18, 2024
2 parents 9fac859 + afdf516 commit ceccf2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func send(report: DiagnosticsReport) {
```

### Using a UserDefaultsReporter
In order to use `UserDefaultsReporter`, you need to set instantiate it with the desired `UserDefaults` instance together with all the keys you would like to read, and use it in `DiagnosticsReporter.create(filename:using:filters:smartInsightsProvider)` to create a `DiagnosticsReport`.
In order to use `UserDefaultsReporter`, you need to specify the desired `UserDefaults` instance together with all the keys you would like to read, and use it in `DiagnosticsReporter.create(filename:using:filters:smartInsightsProvider)` to create a `DiagnosticsReport`.

```swift
let userDefaultsReporter = UserDefaultsReporter(
Expand Down

0 comments on commit ceccf2c

Please sign in to comment.