As in the case of Swift 2, this can be done by setting the type to match CustomStringConvertible(earlier Printable). In case GLKVector3you would do:
extension GLKVector3: CustomStringConvertible {
public var description: String {
return "<\(x), \(y), \(z)>"
}
}

source
share