FastttCamera icon indicating copy to clipboard operation
FastttCamera copied to clipboard

Pinch to zoom doesn't appear to be working :/

Open aerose2012 opened this issue 9 years ago • 7 comments

I just built this awesome library into my project and everything seems to be working great except that zooming does not seem to be working. When I use a pinch gesture nothing happens at all. Tap to focus works and everything but literally nothing occurs when i pinch. I have not messed with any of the setup but I checked to ensure that zooming was enabled and it is. Any thoughts on why this feature isn't working for me? iPhone 5S running iOS 9

aerose2012 avatar Apr 03 '16 20:04 aerose2012

Update to this: it appears that zooming doesn't work initially but if i flip the camera it starts working, even if i flip it back. Can anybody help me understand why zooming doesn't work on the initial view?

aerose2012 avatar Apr 13 '16 00:04 aerose2012

I have the same issue - only after flipping it works

robski05 avatar May 22 '16 08:05 robski05

@lauraskelton any ideas on what might be causing this?

aerose2012 avatar May 22 '16 18:05 aerose2012

Have the same issue too

anfriis avatar Jul 01 '16 09:07 anfriis

+1 After I minimized the app and open it again starts working.

manuelescrig avatar Oct 03 '16 14:10 manuelescrig

A temporary solution is to just flip the camera twice when starting it... But this issue has been around for some time now - still hoping for a fix :)

anfriis avatar Oct 05 '16 14:10 anfriis

    func startCamera(){
        
        guard !UIDevice.isSimulator() else {
            return
        }
        //this solved it for me. In my case, there wasn't front cam.
        if FastttCamera.isCameraDeviceAvailable(.rear) {
            camera.cameraDevice = .rear
        }
        camera.startRunning()
    }

ajithrnayak avatar Apr 17 '17 20:04 ajithrnayak