Skip to content

Commit e5c1f3a

Browse files
committed
Promote plugins to a top-level tab
1 parent 0b0bcd1 commit e5c1f3a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Sources/BluetoothExplorer/ContentView.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import SwiftUI
22
import BluetoothExplorerUI
33

44
enum ContentTab: String, Hashable {
5-
case welcome, home, settings
5+
case welcome, home, plugins, settings
66
}
77

88
struct ContentView: View {
@@ -18,6 +18,12 @@ struct ContentView: View {
1818
.tabItem { Label("Welcome", systemImage: "heart.fill") }
1919
.tag(ContentTab.welcome)
2020

21+
NavigationStack {
22+
PluginsView()
23+
}
24+
.tabItem { Label("Plugins", systemImage: "puzzlepiece.extension.fill") }
25+
.tag(ContentTab.plugins)
26+
2127
NavigationStack {
2228
SettingsView(appearance: $appearance, welcomeName: $welcomeName)
2329
.navigationTitle("Settings")
@@ -59,9 +65,6 @@ struct SettingsView : View {
5965
Text("Light").tag("light")
6066
Text("Dark").tag("dark")
6167
}
62-
NavigationLink("Plugins") {
63-
PluginsView()
64-
}
6568
if let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String,
6669
let buildNumber = Bundle.main.infoDictionary?["CFBundleVersion"] as? String {
6770
Text("Version \(version) (\(buildNumber))")

0 commit comments

Comments
 (0)