I have to write a lot of code like this:
extension MyData: CustomStringConvertible {
public var description: String {
return "x: \(x), y: \(y), z: \(z)"
}
}
Is there a good way to automatically synthesise this repetitive code?
I have to write a lot of code like this:
extension MyData: CustomStringConvertible {
public var description: String {
return "x: \(x), y: \(y), z: \(z)"
}
}
Is there a good way to automatically synthesise this repetitive code?
Copyright © 2021 Jogjafile Inc.