Use auto-describing objects with CustomStringConvertible
Yogev Sitton
1794

Hi Jogev, many thanks for the article because it was so helpful for me.

I’m, having some problems using this protocol in subclasses. I declared the CustomStringConvertible extension in a swift file than I created a class (lets call it “Parent”) that implements the CustomStringConvertible extension and everything is working great. If I declare a child class (lets call it Child) that inherits from “Parent” and I try to print an object I can’t get the description as expected. Do you have any suggestion to solve this problem? Many thanks

Like what you read? Give Angelo Di Crescenzo a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.