I spent 10 minutes trying to transpose that into a Mac project and failed because the CADisplayLink class doesn’t exist on Mac. There is a CVDisplayLink class, but its API is different (no add for example), and I stopped there for the moment.
Having a Mac version would be nice if only because you would not need a physical device to do the tutorial.
So what would be the shortest path from here to a Mac version?
Hi, thanks for the feedback!
On iOS I used CADisplayLink to keep things simpler.
You can use MTKView and MTKViewDelegate to get callback on when to draw, for both iOS and macOS.
Hi there, thanks for tutorial! I’m finding that the triangle edges are not smooth but pixelated. Given that I was using an iPhoneX I was surprised to see them. Is there any way that I can make this triangle without the pixelation and with smooth diagonal sides of the triangle?