struct MyRect : CGRect {...}Is it possible at all in swift to subclass a Structure?
I have already found out on Apple official website an example:This example extends the CGRect structure to contain a computed area property:
extension CGRect { var area: CGFloat { return width * height }}let rect = CGRect(x: 0.0, y: 0.0, width: 10.0, height: 50.0)let area = rect.areaHow can i define a subclass of a structure ?