refactored code structure
This commit is contained in:
26
Sources/iKeyMonApp.swift
Normal file
26
Sources/iKeyMonApp.swift
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// iKeyMonApp.swift
|
||||
// iKeyMon
|
||||
//
|
||||
// Created by tracer on 30.03.25.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@main
|
||||
struct iKeyMonApp: App {
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
MainView()
|
||||
.onDisappear {
|
||||
NSApp.terminate(nil)
|
||||
}
|
||||
}
|
||||
.windowResizability(.contentMinSize)
|
||||
|
||||
Settings {
|
||||
PreferencesView()
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user