chore: adiciona .gitignore e commit.command

This commit is contained in:
João Henrique
2026-08-18 08:25:29 -04:00
parent 68958fde00
commit 8fca456ceb
215 changed files with 65752 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
import SwiftUI
@main
struct GArtApp: App {
var body: some Scene {
WindowGroup {
ContentView()
.frame(minWidth: 720, minHeight: 560)
}
.windowStyle(.automatic)
}
}
enum ActiveTab: Hashable {
case project
case captions
case models
case about
}
struct ContentView: View {
@State private var activeTab: ActiveTab? = .project
var body: some View {
NavigationSplitView {
List(selection: $activeTab) {
Label("Projeto", systemImage: "film")
.tag(ActiveTab.project)
Label("Legendas", systemImage: "captions.bubble")
.tag(ActiveTab.captions)
Label("Modelos", systemImage: "tray.and.arrow.down")
.tag(ActiveTab.models)
Label("Sobre", systemImage: "info.circle")
.tag(ActiveTab.about)
}
.listStyle(.sidebar)
.navigationSplitViewColumnWidth(min: 180, ideal: 200)
} detail: {
switch activeTab {
case .project:
ProjectView().id(UUID())
.navigationTitle("Projeto")
case .captions:
CaptionsView().id(UUID())
.navigationTitle("Legendas")
case .models:
ModelDownloadView().id(UUID())
.navigationTitle("Modelos")
case .about, nil:
AboutView()
.navigationTitle("Sobre")
}
}
}
}