// 表单视图
struct ContentView: View {
// private let languages = ["Swift","Objective-C"]
// @State private var selectedLanguage = 0 //选择值
// @State private var workingYear:Double = 1//滑竿值
// @State private var enableNotification = false //开关
// 有效失效
// @State private var disableForm = false
// @State private var enableNotification = false
// @State private var username = ""
// @State private var password = ""
// 显示隐藏
@State private var isVisible = false // 是否隐藏表单不分内容
@State private var username = ""
@State private var password = ""
var body: some View {
// NavigationView
// {
// Form
// {
// Section(header: Text("选择你的信息"), footer: Text("注意:通知有重要的内容"))
/
SwiftUI初级课程(三十)Form表单布局
最新推荐文章于 2024-03-16 17:56:23 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)