I am using iOS 14 device and whenever I open Mail View Composer, the 'Cancel' button on top left corner always shows up in white. I was able to set the color of send button, but not able to change the color for 'Cancel' button.
    let mailComposerVC = MFMailComposeViewController()
    mailComposerVC.mailComposeDelegate = self
    mailComposerVC.setToRecipients(toRecipientEmailIds)
    mailComposerVC.setSubject(subject)
    mailComposerVC.setMessageBody(messageBody, isHTML: false)
    if let topVC = UIApplication.shared.topMostViewController() {
        mailComposerVC.navigationBar.tintColor = UIColor(rgb: 0x057AFF)
        //mailComposerVC.navigationBar.isTranslucent = false
        //mailComposerVC.navigationBar.isOpaque = false
        UIBarButtonItem.appearance(whenContainedInInstancesOf: [UINavigationBar.self]).tintColor = UIColor.white
        topVC.present(mailComposerVC, animated: true)
    }
How do I change text color for 'Cancel' button?
Thanks!
 
    
 
    