I have a problem changing background color of navigation bar on MFMessageComposeViewController
.
I've tried this code:
UINavigationBar.appearance().barTintColor = Configuration.Colors.navigationBarBackgroundColor
UINavigationBar.appearance().backgroundColor = UIColor.green
UINavigationBar.appearance().titleTextAttributes = [NSFontAttributeName: UIFont(name: "Roboto-Regular", size: 18)!, NSForegroundColorAttributeName: UIColor.white] as [String: AnyObject]
let composer = MFMessageComposeViewController()
self?.present(composer, animated: true) {
UIApplication.shared.statusBarStyle = .lightContent
}
And this is not working. The most strange thing is that it do work when I do the same for MFMailComposeViewController
.
I also tried to change color directly on composer like this.
composer.navigationBar.tintColor = Configuration.Colors.navigationBarBackgroundColor