Hi, there
Problems might cause because you send a blank items to UIViewController when the controller is being constructed before you really update the items value. My solution is to implement updateUIViewController function and made items to be an observable object. Works for me.
@Binding var items : [Any]
func updateUIViewController(_ uiViewController: UIActivityViewController, context: Context) {
uiViewController.viewDidLoad()
}