MFMailComposeViewController in IOS 13

Hello Guys,


I'm an IOS developer. I'm using MFMailComposeViewController in my application code for sending mails.



I'm facing below Issues :


1. After entering email id in Mail and close the keyboard, Send button and entered mail id are missing.

2. Unable to set MFMailComposeViewController navigation colour,I tried with some code but no luck.




if(@available(iOS 13, *))

{

UINavigationBarAppearance *navApp = [UINavigationBarAppearance new];

[navApp configureWithOpaqueBackground];

navApp.backgroundColor = [UIColor redColor];

email.navigationBar.scrollEdgeAppearance = navApp;

self.navigationController.navigationBar.scrollEdgeAppearance = self.navigationController.navigationBar.standardAppearance;

email.navigationBar.scrollEdgeAppearance = emailer.navigationBar.standardAppearance;

}

Steps

1. I entered my emailId

2. I closed keyboard , you can see entered mailId and send button are missing.

3. when I scroll the screen up I can see cancel and send buttons,



Thanks in advance.

Replies

Same problem here.


How do we change the background color of the navigation bar in a MFMailComposeViewController?