Some things I have found on the internet to help with my work.
public func toString() -> String {
var ret = "Test Status: "
for case let (label?, value) in Mirror(reflecting: self)
.children.map({ ($0.label, $0.value) }) {
ret.append(" \(label): \(value)")
}
return ret