Relative Content

Tag Archive for iosswiftswiftuiuikitavfoundation

How to crop AVCaptureVideoPreviewLayer?

There’s a few posts around this but are all quite out-dated. Furthermore, I’m using SwiftUI and would like to adopt the solution to be usable in a SwiftUI environment. I should preface by saying that I don’t know much about UIKit.

How to take high quality photos on iPhone using Swift?

I’m following the “AVCam: Building a camera app” tutorial from Apple (new in iOS18) and if I’m not mistaken, setting up the capture session requires selecting a single capture device. Going through the list of DeviceType, I see that certain devices like builtInLiDARDepthCamera are separate device types from camera types like builtInTripleCamera. This implies that I have to choose between the two.