Tired of default output from your objects when doing a sanity-checkJust adopt
CustomStringConvertible
and implementdescription
:extension Weight: CustomStringConvertible { var description: String { return "(pounds) lbs" } }If you're inheriting from NSObject, then you actually already have a description method, and will get an error to the tune of "redundant conformance of blah blah blah". In that case, you'd do this:extension IndoorCyclingClass { override var description: String { return "(title) - (classDescription)" } }