Home > AI > IOS > SwiftUI >

Mirror

struct TestView: View {
    var body: some View {
        HStack{
            Text("hello")
            Text("world")
        }
    }
}

print(Mirror(reflecting: TestView().body))

Leave a Reply