punchnet-macos/punchnet/Views/Network/NetworkDisconnctedView.swift
2026-01-16 17:17:53 +08:00

38 lines
848 B
Swift

//
// NetworkDisconnctedView.swift
// punchnet
//
// Created by on 2026/1/16.
//
import SwiftUI
struct NetworkDisconnctedView: View {
@Bindable var state: NetworkState
var body: some View {
ZStack {
Color.clear
Button {
print("call me here")
} label: {
Text("连接")
.font(.system(size: 14, weight: .regular))
.padding([.top, .bottom], 8)
.padding([.leading, .trailing], 30)
.foregroundColor(.white)
}
.background(Color(red: 74/255, green: 207/255, blue: 154/255))
.cornerRadius(5)
.frame(width: 120, height: 35)
}
}
}
//#Preview {
// NetworkDisconnctedView()
//}