SwiftTheme-master.zip
swift 代码,换肤。使用简单 class SelectThemeViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() view.theme_backgroundColor = GlobalPicker.backgroundColor } @IBAction @objc(tapRed:) func tapRed(_ sender: AnyObject) { MyThemes.switchTo(theme: .red) } @IBAction @objc func tapYellow(_ sender: AnyObject) { MyThemes.switchTo(theme: .yello) } @IBAction func tapBlue(_ sender: AnyObject) { MyThemes.switchTo(theme: .blue) } }