First try self.navigationController.navigationBar.barTintColor = [UIColor yellowColor]; . This should work for some host applications, but not for all. Because some host applications adjust colors in the UIAppearance settings.
I found the information here: https://pspdfkit.com/blog/2017/action-extension/
According to the link above, the extension will βcollect UIAppearance settings from its host application,β and this has a higher priority than the βsetColorβ message that you send to the instance.
So what you can do is configure the plist extension:
In the NSExtension dictionary NSExtension you can specify the NSExtensionOverridesHostUIAppearance key and set the value to YES . This will force your extension to override the UIAppararance setting for the host application. Unfortunately, this is only available in iOS 10 and later.
We hope you find this helpful.
jokeman
source share