Saturday, November 16, 2024
HomeiOS Developmentios - Cancel button textual content coloration on Mail Compose View Controller

ios – Cancel button textual content coloration on Mail Compose View Controller

[ad_1]

I’m utilizing iOS 14 gadget and every time I open Mail View Composer, the ‘Cancel’ button on high left nook all the time reveals up in white. I used to be in a position to set the colour of ship button, however not in a position to change the colour for ‘Cancel’ button.

    let mailComposerVC = MFMailComposeViewController()
    mailComposerVC.mailComposeDelegate = self
    mailComposerVC.setToRecipients(toRecipientEmailIds)
    mailComposerVC.setSubject(topic)
    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.look(whenContainedInInstancesOf: [UINavigationBar.self]).tintColor = UIColor.white
        topVC.current(mailComposerVC, animated: true)
    }

How do I modify textual content coloration for ‘Cancel’ button?

Thanks!

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments