2022年12月5日

SwiftUI 的状态管理

摘要: @State 被@State包装的值发生改变时,UI将被同时改变 struct ContentView: View { @State var title = "HelloWorld" var body: some View { VStack { Text(title) Button { title 阅读全文

posted @ 2022-12-05 23:18 Lemo_wd 阅读(147) 评论(0) 推荐(0) 编辑

导航