更优雅地调试SwiftUI—借助LLDB

更优雅地调试SwiftUI—借助LLDB

概述

你是否写过这样的代码:

struct ContentView: View {
   
    @State private var mySize: CGFloat = 15.0
		var myString: String = "Hi LLDB"
    var myArray: [Int] = [1, 2, 3]
    var body: some View {
   
        VStack {
   
            Text("Hello World")
                .font(.system(size: mySize))
            Button("Add Size") {
   
                mySize += 0.5
                print("mySize = 

你可能感兴趣的:(SwiftUI,笔记,swift)