45 lines
797 B
Swift
45 lines
797 B
Swift
//
|
|
// AppDelegate+Config.swift
|
|
// Veloria
|
|
//
|
|
// Created by Veloria on 2025/5/22.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
extension AppDelegate {
|
|
|
|
func appConfig() {
|
|
VPAppTool.appDelegate = self
|
|
|
|
UIButton.vp_bt_Awake()
|
|
UIView.vp_Awake()
|
|
|
|
VPToast.config()
|
|
|
|
congifNavigation()
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
extension AppDelegate {
|
|
|
|
private func congifNavigation() {
|
|
|
|
let barButtonItem = UIBarButtonItem.appearance()
|
|
|
|
barButtonItem.setTitleTextAttributes([
|
|
.foregroundColor : UIColor.colorFFFFFF(),
|
|
], for: .normal)
|
|
|
|
barButtonItem.setTitleTextAttributes([
|
|
.foregroundColor : UIColor.colorFFFFFF()
|
|
], for: .highlighted)
|
|
|
|
|
|
}
|
|
|
|
}
|