AppearanceConfigurator.swift 714 B

123456789101112131415161718192021222324
  1. //
  2. // AppearanceConfigurator.swift
  3. // Segmentio
  4. //
  5. // Created by Dmitriy Demchenko
  6. // Copyright © 2016 Yalantis Mobile. All rights reserved.
  7. //
  8. import UIKit
  9. class AppearanceConfigurator {
  10. class func configureNavigationBar() {
  11. UINavigationBar.appearance().barTintColor = ColorPalette.white
  12. UINavigationBar.appearance().isTranslucent = false
  13. UINavigationBar.appearance().tintColor = ColorPalette.black
  14. let attributes = [
  15. NSAttributedString.Key.font : UIFont.exampleAvenirMedium(ofSize: 17),
  16. NSAttributedString.Key.foregroundColor : ColorPalette.black
  17. ]
  18. UINavigationBar.appearance().titleTextAttributes = attributes
  19. }
  20. }