// // 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 { VStack { Form { Section { TextField("", text: $instanceAddress) } Section { Button("登录") { print("DEBUG: login button") } .foregroundColor(.white) .frame(maxWidth: .infinity) // 使得文本居中 } .listRowBackground(Color.green) Section("服务器信息") { LabeledContent("名称", value: "nofan | Fanyou in Mastodon") Text("给饭友的自留地") LabeledContent("邮件", value: "^^") LabeledContent("版本") { Text("3.5.3").monospaced() } LabeledContent("用户", value: "1206") LabeledContent("嘟文", value: "489974") LabeledContent("域名", value: "11648") } Section("服务器规则") { Text("保持友善,善用折叠屏蔽功能") Text("不鼓励发布色情暴力内容,如发布,务必主动标记为敏感内容") Text("请尽量避免将用户消息截图转发至其他平台") } } } } } struct AddAccountView_Previews: PreviewProvider { static var previews: some View { AddAccountView() } }