swift print struct name code example
Example: swift print struct name
// Swift 5
print("Name of struct instance type> \(type(of: structInstance.self))")
print("Name of struct type> \(StructType.self)")
// Swift 5
print("Name of struct instance type> \(type(of: structInstance.self))")
print("Name of struct type> \(StructType.self)")