Add developer option for clearing the application cache (#852)

* Add developer option for clearing the application cache

* Tweaks following code review
This commit is contained in:
Stefan Ceriu
2023-05-05 19:41:21 +03:00
committed by GitHub
parent f679c0ca2a
commit 574424024c
10 changed files with 93 additions and 7 deletions
@@ -59,9 +59,16 @@ struct DeveloperOptionsScreen: View {
Text("🥳")
.frame(maxWidth: .infinity)
}
.buttonStyle(FormButtonStyle())
}
.formSectionStyle()
Section {
Button(role: .destructive) {
context.send(viewAction: .clearCache)
} label: {
Text("Clear cache")
.frame(maxWidth: .infinity)
}
}
}
.overlay(effectsView)
.scrollContentBackground(.hidden)