Post

Replies

Boosts

Views

Activity

Reply to UIImagePickerController: Camera preview on iPhone 12 (Pro) at undefined position?
I found 121pt Y positions gap by "CAMPreviewView". <CAMPreviewView: 0x14de74310; frame = (0 121; 375 500); tintColor = <UIDynamicSystemColor: 0x283099840; name = systemYellowColor>; gestureRecognizers = <NSArray: 0x282bafbd0>; layer = <CAMCounterRotatingLayer: 0x28257d040>> // get CAMPreviewView from UIImagePickerController guard let previewView = findPreviewView(picker.view) else {         return       }                      let previewViewFrame = previewView.frame         // reset CAMPreviewView frame       if 0 < previewViewFrame.minY {         previewView.frame = CGRect(           x: previewViewFrame.minX,           y: 0,           width: previewViewFrame.width,           height: previewViewFrame.height         )       }
Jul ’21