“Color de barra de navegación de Swift Change” Código de respuesta

Color de barra de navegación de Swift Change

// Navigation Bar:
navigationController?.navigationBar.barTintColor = UIColor.green

// Navigation Bar Text:
navigationController?.navigationBar.titleTextAttributes = [.foregroundColor: UIColor.orange]

// Tab Bar:
tabBarController?.tabBar.barTintColor = UIColor.brown

// Tab Bar Text:
tabBarController?.tabBar.tintColor = UIColor.yellow
Mobile Star

Color de título de barra de navegación Swift

// Place this in your didFinishLaunchingWithOptions method in the AppDelegate
let attrs = [
  NSAttributedString.Key.foregroundColor: UIColor.white
]

UINavigationBar.appearance().titleTextAttributes = attrs
sej

Respuestas similares a “Color de barra de navegación de Swift Change”

Preguntas similares a “Color de barra de navegación de Swift Change”

Más respuestas relacionadas con “Color de barra de navegación de Swift Change” en Swift

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código