228 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
130
views
LockedCameraCaptureExtension and Sharing User Preferences
I have the main app that saves preferences to UserDefaults.standard. So I have this one preference that the user is able to toggle - isRawOn
UserDefaults.standard.set(self.isRawOn, forKey: "...
0
votes
0
answers
88
views
iPhone 16 Camera Control and AVCaptureSlider – Is there a way to detect which slider is active?
I am following the Apple sample code and trying to add a manual focus lens position slider:
@available(iOS 18.0, *)
private func addCameraControls() {
if !self.session.controls.isEmpty {
...
0
votes
0
answers
59
views
AVCaptureDevice activeColorspace set to apple log not working
do {
try currentDevice.lockForConfiguration()
if let f = s.getFormat(from: currentDevice.formats){
currentDevice.activeFormat = f
currentDevice....
0
votes
1
answer
139
views
Why is `isDepthDataDeliverySupported` returning false on an iPad Pro using `builtInDualWideCamera`?
I am trying to use the AVCamFilter Apple sample project discussed in this WWDC session to get depth data using the dual camera. The project has built-in features to get depth data from the dual camera....
2
votes
0
answers
479
views
Camera intrinsic matrix for single photo capture on iOS
Is it possible to get the camera intrinsic matrix for a captured single photo on iOS?
I know that one can get the cameraCalibrationData from a AVCapturePhoto, which also contains the intrinsicMatrix. ...
0
votes
1
answer
647
views
iPhone 14 Pro: Enable macro mode in custom camera
When you move close to an object (note: not only when zooming, but as well when just moving the phone closer), it switches to the ultra.wide camera.
I know that I can enable automatic switching by ...
1
vote
0
answers
171
views
App freezes and crashes in AVCaptureVideoPreviewLayer layerDidBecomeVisible
I have a React Native app which is deployed on tablets. The app involves regular interactions w/ the camera and I'm using Expo Camera to manage these interactions. I'm seeing that customers who are ...
1
vote
0
answers
66
views
How to add 60FPS Viewfinder Custom Camera
I’m having trouble making my iOS app with a custom camera run in 60FPS or above. Does anyone know how I can achieve this?
I tried setting it to 60 FPS but then the viewfinder went black. I also gave ...
1
vote
0
answers
101
views
iPhone camera angle difference between iOS15 and iOS16
Hi i'm working on develop iOS custom camera app.
Recently I discovered that my camera app works differently on iOS 15 and iOS 16.
On iOS 15, the video was recorded without any cropped images, and on ...
1
vote
0
answers
93
views
AVCapturePhotoOutput with 60 fps and flash on causes image to be over brightened
When using AVCapturePhotoOutput with flashMode On and AVCaptureDevice with minimum frame rate set to 60 fps results in an image that is very over brightened. Using the same configuration with 30 fps ...
4
votes
0
answers
96
views
Reset permissions for iOS apps installed on Apple Silicon Mac
UI flows can be built around requesting permissions for, for example, camera or microphone access in iOS apps. With Xcode 14, it's super easy to run an app on an Apple Silicon Mac with the device &...
1
vote
1
answer
653
views
Having trouble with flipping camera in swiftui / avfoundation / AVCaptureDeviceInput
I am coding a camera with swiftui using avfoundation and was able to get the setup to work as intended. However, as I'm implementing a flip camera functionality I'm running into an error where after ...
1
vote
1
answer
792
views
SwiftUI - Resize AVCaptureVideoPreviewLayer
I have the following code:
struct CameraPreview: UIViewRepresentable {
@ObservedObject var camera: Camera
class CameraView: UIView {
override class var layerClass: AnyClass {...
1
vote
0
answers
102
views
How to adjust AVCaptureVideoPreview orientation to device current orientation?
I am trying to adjust AVCaptureVideoPreview orientation to device current orientation and I tried someways which I found on Stackoverflow but it didn’t work. How can I adjust AVCaptureVideoPreview ...
2
votes
1
answer
4k
views
Simultaneous Long Press and Drag Gesture SwiftUI
I have an app with a camera and there is a capture button that I would like to long press on the screen to record and freely move it around and be able to zoom in and out. Now I am not worried about ...