mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
* tbgpu * works * cleaner * this * zero size * h * fix * simpler * prio over usb * c * not needed * linter * this way * mappings * mypy * mypy * mypy 2 * nn
34 lines
627 B
Swift
34 lines
627 B
Swift
import SwiftUI
|
|
|
|
struct TinyGPUView: View {
|
|
@ObservedObject var viewModel = TinyGPUViewModel()
|
|
|
|
var body: some View {
|
|
#if os(macOS)
|
|
VStack(alignment: .center) {
|
|
Text("TinyGPU Intsaller")
|
|
.padding()
|
|
.font(.title)
|
|
Text(self.viewModel.dextLoadingState)
|
|
.multilineTextAlignment(.center)
|
|
HStack {
|
|
Button(
|
|
action: {
|
|
self.viewModel.activateMyDext()
|
|
}, label: {
|
|
Text("Install extension")
|
|
}
|
|
)
|
|
}
|
|
}
|
|
.frame(width: 500, height: 200, alignment: .center)
|
|
#endif
|
|
}
|
|
}
|
|
|
|
struct TinyGPUView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
TinyGPUView()
|
|
}
|
|
}
|