I am trying to change the navigation bars title color using the below code but it won't change. The tint and background color work perfectly.
let nav = navigationController?.navigationBar
nav?.titleTextAttributes = [NSAttributedStringKey.foregroundColor: UIColor.white]
nav?.tintColor = UIColor.white
nav?.backgroundColor = UIColor.green.primary
title = "Share"
I haven't changed anything in the App Delegate.
Info.plist
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>NSExtensionActivationRule</key>
<dict>
<key>NSExtensionActivationSupportsText</key>
<string>1</string>
</dict>
<key>NSExtensionJavaScriptPreprocessingFile</key>
<string>Action</string>
</dict>
<key>NSExtensionMainStoryboard</key>
<string>MainInterface</string>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.share-services</string>
</dict>