Skip to content

Instantly share code, notes, and snippets.

Created April 20, 2016 02:05
What would you like to do?
public protocol Selfie: CustomStringConvertible {}
extension Selfie {
var description: String {
let mirror = Mirror(reflecting: self)
return "\(mirror.subjectType)( \({ "\($0!): \($1) "}).joinWithSeparator(", ")))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment