SPB Git

spb/os-vault Public

Self-custody, multi-chain crypto wallet for macOS. One recovery phrase, six chain families, zero API keys — nothing leaves your Mac.

Swift 96% Shell 3.4% Makefile 0.6%
751 B · 40 lines swift
Raw Blame History
1//2//  OSVaultApp.swift3//  OS Vault4//5//  Author: Simon-Pierre Boucher6//  Mail: contact@spboucher.ai7//89import SwiftUI1011public struct OSVaultApp: App {12    @StateObject private var app = AppState()1314    public init() {}1516    public var body: some Scene {17        WindowGroup {18            ContentView()19                .environmentObject(app)20                .frame(minWidth: 520, minHeight: 640)21        }22        .windowResizability(.contentSize)23    }24}2526struct ContentView: View {27    @EnvironmentObject var app: AppState2829    var body: some View {30        switch app.phase {31        case .onboarding:32            OnboardingView()33        case .locked:34            UnlockView()35        case .unlocked:36            HomeView()37        }38    }39}40