Added the base of the Menu Bar UI

This commit is contained in:
SerenityUX 2023-04-26 21:26:43 -04:00
parent 1378eb7eb3
commit 5ae3d37243
8 changed files with 127 additions and 8 deletions

View file

@ -1,9 +1,28 @@
//
// burrow_barApp.swift
// burrow-bar
//
// Created by Thomas Stubblefield on 4/19/23.
//
import SwiftUI
import FluidMenuBarExtra
@main
struct BurrowApp: App {
struct burrowBarApp: App {
@NSApplicationDelegateAdaptor private var appDelegate: AppDelegate
var body: some Scene {
WindowGroup {
Settings {
Text("Burrow")
}
}
}
class AppDelegate: NSObject, NSApplicationDelegate {
private var menuBarExtra: FluidMenuBarExtra?
func applicationDidFinishLaunching(_ notification: Notification) {
self.menuBarExtra = FluidMenuBarExtra(title: "Burrow", systemImage: "network.badge.shield.half.filled") {
ContentView()
}
}