httpwwwbethedevcom
324329524619168
Loading...

iOS Gradient Navigation Bar Swift 4

Decorating iOS 12 and below UINavigationController Gradient Color by Creating an extension for UINavigationBar. Create a gradient layer and add it as the background of the navigation bar. 

UIImage extension allows creating an image from CALayer.


This function creates and returns a gradient image. Changing the startPoint and endPoint (currently horizontal) to change the gradient direction to apply on Navigation Controller.

Then add the following function for complete UINavigationBar Extensions. 
Usage on NavigationController:
If you have any questions please post your comments below.
Thank you!
Swift 7834849932793380640

Post a Comment Default Comments Disqus Comments

emo-but-icon

Home item

Follow by Email

Popular Posts

Random Posts