Skip to content

Commit 6ba8b32

Browse files
committed
Inform if beta build in Diagnostics
1 parent 965c39a commit 6ba8b32

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Packages/App/Sources/AppUIMain/Views/Diagnostics/DiagnosticsView.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ struct DiagnosticsView: View {
7777

7878
var body: some View {
7979
Form {
80+
if iapManager.isBeta {
81+
betaSection
82+
}
8083
liveLogSection
8184
openVPNSection
8285
tunnelLogsSection
@@ -99,6 +102,13 @@ struct DiagnosticsView: View {
99102
}
100103

101104
private extension DiagnosticsView {
105+
var betaSection: some View {
106+
Group {
107+
Text("This is a beta build")
108+
}
109+
.themeSection(header: "Beta")
110+
}
111+
102112
var liveLogSection: some View {
103113
Group {
104114
navLink(Strings.Views.Diagnostics.Rows.app, to: .app(title: Strings.Views.Diagnostics.Rows.app))

0 commit comments

Comments
 (0)