Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift print struct name

// Swift 5
print("Name of struct instance type> (type(of: structInstance.self))")
print("Name of struct type> (StructType.self)")
 
PREVIOUS NEXT
Tagged: #swift #print #struct
ADD COMMENT
Topic
Name
2+2 =