If you launch example, then physically rotate to the left or to the right, then try to look up or down you will get rotation by wrong axle. As mentioned in title I believe it is due to cymbal lock.
Here's great answer on stack exchange regarding this issue: https://gamedev.stackexchange.com/a/136175
Unfortunately, my knowledge of swift is not sufficient to fix it, but if someone points me to line where the rotation is actually applied to camera I will try to fix it, since I did similar thing for UnityEngine
If you launch example, then physically rotate to the left or to the right, then try to look up or down you will get rotation by wrong axle. As mentioned in title I believe it is due to cymbal lock. Here's great answer on stack exchange regarding this issue: https://gamedev.stackexchange.com/a/136175
Unfortunately, my knowledge of swift is not sufficient to fix it, but if someone points me to line where the rotation is actually applied to camera I will try to fix it, since I did similar thing for UnityEngine