MFMailComposeViewController in visionOS does not have a cancel button

When i use the MFMailComposeViewController in visionOS, there is no cancel button for the controller. The button at the bottom closes the app. Is anyone else experiencing this?


    if([MFMailComposeViewController canSendMail]) {
        MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
        controller.mailComposeDelegate =  (id <MFMailComposeViewControllerDelegate>)view;
        [controller setToRecipients:toAddresses];
        [controller setSubject:subject];
        [controller setMessageBody:body isHTML:isHtml];
        [view presentViewController:controller animated:YES completion:nil];
    }


Replies

Same exact issue here, I think this is a bug on Apples side. Any workarounds to fix this?