摘要: 效果如下 import SwiftUI struct ContentView: View { @State private var value = 0.0 @State private var isEditing = false @State private var value1:Float = 0 阅读全文
posted @ 2021-07-20 15:25 我不爱吃鱼 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 效果如下 import SwiftUI struct ContentView: View { @State private var selectIndex = 0 let color: [Color] = [.orange,.red,.gray,.blue,.green,.purple,.pink] 阅读全文
posted @ 2021-07-20 14:33 我不爱吃鱼 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 效果如下 import SwiftUI struct ContentView: View { @State private var bo = false var body: some View { Toggle("开关", isOn: $bo) .toggleStyle(CheckBoxToggle 阅读全文
posted @ 2021-07-20 11:35 我不爱吃鱼 阅读(1063) 评论(0) 推荐(0) 编辑
摘要: import SwiftUI struct ContentView: View { var body: some View { Group{ if let resBundlePath = Bundle.main.path(forResource: "Resources", ofType: "bund 阅读全文
posted @ 2021-07-20 09:30 我不爱吃鱼 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 效果图 import SwiftUI struct ContentView: View { @State private var username:String = "" var body: some View { VStack { Text("输出:\(username)") TextField( 阅读全文
posted @ 2021-07-20 08:36 我不爱吃鱼 阅读(412) 评论(0) 推荐(0) 编辑
Live2D