TimOliver / TONavigationBar

Replicating the 'clear' navigation bar style of the iOS 12 Apple TV app.
MIT License
250 stars 24 forks source link

Support barTintColor and tintColor #7

Open gbmksquare opened 6 years ago

gbmksquare commented 6 years ago

UINavigationBar can set barTintColor property to change the color of navigation bar for better appearance or branding (e.g. Facebook). TONavigationBar currently only supports white and black bar style, so its color may not match with other views where plain UINavigationBar with bar tint color is used.

TimOliver commented 6 years ago

How do you mean exactly?

gbmksquare commented 6 years ago

Since UINavigationBar's bar tint color is set using UINavigationBar.appearance().barTintColor globally, or navigationBar.barTintColor locally, TONavigationBar can adopt similar methods.

(I've added description to this issue)

gbmksquare commented 6 years ago

UIVisualEffectView doesn't provide a way to set tint color yet, but setting private values might work, as VisualEffectView do.