Check out example codes for "swift print struct name". It will help you in understanding the concepts better.

Code Example 1

// Swift 5
print("Name of struct instance type> \(type(of: structInstance.self))")
print("Name of struct type> \(StructType.self)")

Learn ReactJs, React Native from akashmittal.com