LockedCameraCaptureManager

Task {
            for await update in LockedCameraCaptureManager.shared.sessionContentUpdates {
                switch update {
                case .initial(let urls):
                    print("frank: init \(urls)")
                    await MainActor.run {
                        let label = UILabel(frame: CGRect(x: 100, y: 100, width: 100, height: 30))
                        label.text = "frank test"
                        label.textColor = .black
                        UIViewController.getTop().view.addSubview(label)
                    }
                case .added(let url):
                    print("frank: add \(url)")
                case .removed(let url):
                    print("frank: removed \(url)")
                default:
                    break
                }
            }
        }

why 'case .initial(let urls)': never never be executed? Can some one provide a sample code?

Hi @frankwu, does this piece of code run on your capture app or extension? Do other cases get called for you?

It would be great if you can file a Feedback through feedback.apple.com

LockedCameraCaptureManager
 
 
Q