Ching 241aca5f23 feat(Component): 增加 InstanceInfo 组件
增加 InstanceInfo 组件

Signed-off-by: Ching <loooching@gmail.com>
2023-05-03 21:47:38 +08:00

45 lines
1.1 KiB
Swift

//
// AddAccountView.swift
// duduji
//
// Created by ching on 2023/5/3.
//
import SwiftUI
struct AddAccountView: View {
@State private var instanceAddress = "nofan.xyz"
var body: some View {
NavigationStack {
Form {
Section {
TextField("", text: $instanceAddress)
.keyboardType(.URL)
.textContentType(.URL)
.textInputAutocapitalization(.never)
.autocorrectionDisabled()
}
Section {
Button("登录") {
print("DEBUG: login button")
}
.foregroundColor(.white)
.frame(maxWidth: .infinity) // 使
}
.listRowBackground(Color.green)
InstanceInfoSection()
}
}
.navigationTitle("添加账户")
.navigationBarTitleDisplayMode(.inline)
}
}
struct AddAccountView_Previews: PreviewProvider {
static var previews: some View {
AddAccountView()
}
}