一、Theme.swift
实现Theme协议,可同时提供light和dark两种,用于实现暗黑模式功能
二、修改TabBarController
override func viewDidLoad() {
super.viewDidLoad()
self.delegate = self
self.tabBar.theme.barTintColor = themeService.attribute { $0.lightColor }
self.tabBar.theme.tintColor = themeService.attribute { $0.primaryColor }
self.tabBar.theme.unselectedItemTintColor = themeService.attribute { $0.titleColor }
}