I'm trying to write a exporter for Sketch to another format, the format can handle simple rectangles and ovals, but anything more complex we need to export as an image.
I've been doing a check to see if a MSShapeGroup has a single child layer of MSRectangleShape or MSOvalShape ... but just clicked in testing, that if I click and drag the corners of an Rectangle or points on an Oval to change the its shape (to not be a rect/oval) that this will still be a MSRectangleShape / MSOvalShape.
Any recommended way to determine if a layer is just a "simple" oval / rectangle? I guess I could compare an Oval / Rectangle's path to the basic path for a Rect/Oval.
Edit ... Actually I've just found
isRectangle on MSShapePath.h ... which seems to do what I want ... still looking for the equivalent for Oval though