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
posted @ 2022-12-05 23:18
posted @ 2022-12-03 15:54
posted @ 2022-12-02 21:19