How to find some demo about picture render by MetalKit

I just create an OSX APP like Preview APP which build by Apple. I use MetalKit and OpenGL to render picture, but I find some problem about coordinate transformation and gesture recognition. After some learning, I can zoom and pan my picture, but I can not zoom my picture by a two-finger center point, and my panning also has some problem.

Replies

@wcmwcm Please help me ,I just find on github and stackoverflow ,but no one can help me