mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
30 lines
543 B
Swift
30 lines
543 B
Swift
//
|
|
// ContentView.swift
|
|
// StikJIT
|
|
//
|
|
// Created by Stephen on 3/26/25.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct HomeView: View {
|
|
var body: some View {
|
|
Button(action: startJITInBackground) {
|
|
Text("Enable Jit")
|
|
.padding()
|
|
.background(Color.blue)
|
|
.foregroundColor(.white)
|
|
.cornerRadius(8)
|
|
}
|
|
}
|
|
|
|
func startJITInBackground() {
|
|
DispatchQueue.global(qos: .background).async {
|
|
jitMain()
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
HomeView()
|
|
}
|