1.dump(result)
2. Mirror
static func toString(_ result: BoardResponse) {
let mirror = Mirror(reflecting: result)
for child in mirror.children {
if let propertyName = child.label {
print("\(propertyName): \(child.value)")
}
}
}
网友评论