An extension of UINavigationBar to set customized background color,The codes are inspired by https://github.com/ltebean/LTNavigationBar/ (Objective-C codes)
#How to use Only one line code needed, as below:
self.navigationController?.navigationBar.setCustomBackgroundColor(color)
#Author AiguangLi / Arguing.Li@gmail.com