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


Answered by HiddenJester in 878552022

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

Hi Quinn,

I can confirm this is still happening in vision 26.2 & 26.3. I created a sample app with iOS, Mac (Catalyst), and visionOS targets and attached it to a Feedback. The bug number is FB22140603.

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"

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

Hi Quinn,

I can confirm this is still happening in vision 26.2 & 26.3. I created a sample app with iOS, Mac (Catalyst), and visionOS targets and attached it to a Feedback. The bug number is FB22140603.

The bug number is FB22140603.

Thanks!

Share and Enjoy

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

Since iPadOS 26.4, I'm also missing the Cancel-Button on iPad. Is this a bug or intentional?

I've filed FB22313288.

Is this a bug or intentional?

I’d call it a bug, by my opinion doesn’t matter (-: If this is causing your product significant grief then it’s worth filing a bug about, even if it’s intentional.

I've filed FB22313288.

Thanks. It’s been marked as a duplicate of a bug that was filed internally, one that’s definitely with the right folks. I don’t have any info to share beyond that.

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