dicekeys / dicekeys-app-ios

The iOS DiceKeys app
Other
4 stars 3 forks source link

User report: problem with iPhone 14 UltraWide camera support #162

Closed UppaJung closed 1 year ago

UppaJung commented 2 years ago

User report:

subject: dicekeys app unable to focus camera on iPhone 14 Pro Max I am getting a blurry image and the app will not read the dice. If I back up to get a clear image it is apparently too small and the app will still not read the keys. I have no problems focusing the camera app at a similar distance. The included image shows screenshots of the keyboard taken from the camera app and from the dickeys apps

The DiceKeys app currently tries to use the wide-angled camera: https://github.com/dicekeys/dicekeys-app-ios/blob/2dc217e28b160b9d7aeea4e2e1b7567345f682a2/DiceKeys/Views/Scanning/ActiveCameras.swift#L19

https://www.apple.com/iphone-14-pro/specs/ It appears the 14 Pro Max has an ultrawide camera, and builtInUltraWideCamera may be what we want. https://developer.apple.com/documentation/avfoundation/avcapturedevice/devicetype/3377622-builtinultrawidecamera

@angelix, any reason not to add this and see if that fixes the problem?