New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tapping on the "1.0x" button doesn't do anything #54
Comments
Works on my iPhone 11 Pro max. Try to see if the handlers in this file gets called on your setup: Remember you have to try this on an actual device. since it needs to use the camera etc |
The function gets called when the app starts, and every time I tap on the lens/zoom button, the same thing happens:
I'm on iOS 14.7.1 and iPhone 12 Pro. |
Right. On these lines: Swift.print("zoomSwitcher.onSwitch: \(focalType.rawValue) deviceType: \(deviceType)")
try? self.camView.toggleCameraPosition(for: self.topBar.flipButton.toggle ? .front : .back, deviceType: deviceType) change the try? to: do {
try self.camView.toggleCameraPosition(for: self.topBar.flipButton.toggle ? .front : .back, deviceType: deviceType)
}
catch {
print(error) // see what error you get
} |
Right. The lib doesn't support iPhone 12 yet. Needs an update here to support iPhone 12 here: I guess iPhone 12 has the same camera setup as iPhone 11. So should be just an update to device enum and adding it in the case. Feel free to add a PR. |
I created a PR. I couldn't test it in HybridCamera until it is accepted so I am not 100% that it will work. |
Looks good to me 👌 |
For another time: You can always point the SPM dep to your own fork, when testing new stuff etc. |
Thanks |
Btw. I would include ZoomKit as a local dependency. I didn't know this was possible before. But it would simplify things. Just a suggestion ✌️ |
What's the benefit of this? |
You can make edits directly to the sub module. |
I started running the sample code, and realized that tapping on "1.0x" to change cameras doesn't do anything (just refreshes the current view).
The text was updated successfully, but these errors were encountered: