UIActivityViewController presented from SFSafariViewController inherits tint color for cancel button and cannot be changed

Originator:m4ttcheetham
Number:rdar://26833040 Date Originated:16-Jun-2016 09:03 AM
Status:Closed Resolved:
Product:iOS SDK Product Version:10.0 (14A5261u)
Classification:UI/Useability Reproducible:Always
 
Summary:
We can now set the tint colour of the navigation bar on SFSafariViewController which means we are also more likely to set the tint colour on the view property of SFSafariViewController to affect the colour of the buttons (Done, back, forward etc). In our app we have the preferred tint colour set to red and the view tint colour to white. (See attached screenshot for result). This looks great until the user chooses the action button which presents a UIActivityViewController which then has a white cancel button.

There appears to be no way to set the tint colour of this presented view separately.

Steps to Reproduce:
1. Implement the following code
```
                SFSafariViewControllerConfiguration *config = [SFSafariViewControllerConfiguration new];
                config.preferredBarTintColor = [UIColor redColor];
                SFSafariViewController *safariViewController = [[SFSafariViewController alloc] initWithURL:url configuration:config];
                safariViewController.view.tintColor = [UIColor whiteColor];

                [self presentViewController:safariViewController animated:true completion:nil];

```
2. Activate the code to push a website
3. Observe that bars are red and buttons are white
4. Choose the action button in the toolbar
5. See that cancel button text is white and therefore invisible

Expected Results:
I expect to be able to configure the tint colour of the activity view

Actual Results:
There is no way to configure the colour. The text is white and not visible to the user.

Regression:
Only occurs due to tint colour being set to white which I believe is a valid use case.

Notes:
Have been unable to find a workaround

Comments

m4ttcheetham

Not resolved in Beta 4 for me. Cancel button is still not visible with no way to adjust.

'Simulator Screen Shot 9 Aug 2016, 13.42.30.png' and 'blah.zip' were successfully uploaded.

By m4ttcheetham at Sept. 22, 2016, 7:30 a.m. (reply...)

Apple Developer Relations

We believe this issue is resolved in the latest iOS 10 beta.

Please test with the latest iOS beta. If you still have issues, please update your bug report with any relevant logs or information that could help us investigate.

https://developer.apple.com/download/

By m4ttcheetham at Sept. 22, 2016, 7:29 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!