Recently I was working on a 3D project and it required to allow users to move the 3D object but not allow them to zoom.
Looking around StackOverFlow I didn’t find the answer. One answer was to use `.allowsCameraControl` and set it to false. Note, this works but everything is disabled.
Instead what you really want to do is create a pinch gesture recognizer, add it to your SCNSceneView(), and set it to do nothing. Boom zoom is disabled.
Code:
I make YouTube videos as well. (Check out here)
If you want to learn more iOS Tips and Tricks or learn some courses, check out Skillshare. (Use my link for a free trial to SkillShare Premium).