mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
* ensure heartbeat happened recently before enabling jit * JS controlled Debug Proxy * Fix heartbeat issue & JS nil issue * Update idevice * Fix compile issue
39 lines
957 B
Swift
39 lines
957 B
Swift
//
|
|
// MainTabView.swift
|
|
// StikJIT
|
|
//
|
|
// Created by Stephen on 3/27/25.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct MainTabView: View {
|
|
@AppStorage("customAccentColor") private var customAccentColorHex: String = ""
|
|
|
|
private var accentColor: Color {
|
|
if customAccentColorHex.isEmpty {
|
|
return .blue
|
|
} else {
|
|
return Color(hex: customAccentColorHex) ?? .blue
|
|
}
|
|
}
|
|
|
|
var body: some View {
|
|
TabView {
|
|
HomeView()
|
|
.tabItem {
|
|
Label("Home", systemImage: "house")
|
|
}
|
|
ScriptListView()
|
|
.tabItem {
|
|
Label("Scripts", systemImage: "scroll")
|
|
}
|
|
SettingsView()
|
|
.tabItem {
|
|
Label("Settings", systemImage: "gearshape.fill")
|
|
}
|
|
}
|
|
.accentColor(accentColor)
|
|
.environment(\.accentColor, accentColor)
|
|
}
|
|
}
|