1
This commit is contained in:
parent
5d21ccd5dd
commit
5938c57174
@ -30,18 +30,18 @@ extension UINavigationBar {
|
||||
extension UINavigationBar {
|
||||
|
||||
|
||||
func nr_setTranslucent(isTranslucent: Bool) {
|
||||
func nr_setTranslucent(_ isTranslucent: Bool) {
|
||||
self.isTranslucent = isTranslucent
|
||||
}
|
||||
|
||||
func nr_setBackgroundColor(backgroundColor: UIColor?) {
|
||||
func nr_setBackgroundColor(_ backgroundColor: UIColor?) {
|
||||
let appearance = self.standardAppearance
|
||||
appearance.backgroundColor = backgroundColor
|
||||
self.standardAppearance = appearance
|
||||
self.scrollEdgeAppearance = appearance
|
||||
}
|
||||
|
||||
func nr_setTitleTextAttributes(titleTextAttributes: [NSAttributedString.Key : Any]?) {
|
||||
func nr_setTitleTextAttributes(_ titleTextAttributes: [NSAttributedString.Key : Any]?) {
|
||||
let appearance = self.standardAppearance
|
||||
|
||||
if let titleTextAttributes = titleTextAttributes {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user