It looks like you have a cut & paste error there - should self.currentCameraPosition = CurrentCameraPosition.front
appear in both code paths?
Because your code paths have so much in common you should maybe extract out the common part and put it in a function that is called with an argument for front or back…