모바일/iOS

swift4 reflection

늘근이 2018. 8. 25. 21:12

let something = Mirror(reflecting: p)

for case let (label?, value) in something.children {

    print(label, value)

}