SyntaxFix
Write A Post
Hire A Developer
Questions
There's another method called dump() which can also be used for logging:
dump()
func dump<T>(T, name: String?, indent: Int, maxDepth: Int, maxItems: Int) Dumps an object’s contents using its mirror to standard output.
func dump<T>(T, name: String?, indent: Int, maxDepth: Int, maxItems: Int)
Dumps an object’s contents using its mirror to standard output.
From Swift Standard Library Functions