Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent UINavigationBar in Share Extension from inheriting main application appearance settings

I created a share extension for my for which I had to create my own UI in the Storyboard. The entire thing works great except for the fact that the navigation bar inherits the main app's appearance. As examples:

Here it is in the NYT app: enter image description here

Here it is in the Vice app: enter image description here

How can I set my own appearance?

like image 659
Quantaliinuxite Avatar asked Mar 23 '16 09:03

Quantaliinuxite


1 Answers

The share extension is intended to inherit from the main app's preferred style. Your two examples show that, and I can't recall an app that has a share extension that's styled differently.

This question includes a thorough effort to fix this problem, including links to a rdar that's filed with Apple.

Not the answer you want, but there doesn't appear to be a "non-hacky" way of achieving this.

like image 59
suite22 Avatar answered Oct 21 '22 07:10

suite22