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];
    }


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

same issue +1, hope for fix

Did anyone file a bug about this? If so, please post the bug number.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

MFMailComposeViewController in visionOS does not have a cancel button
 
 
Q