This commit is contained in:
zeng 2026-01-14 10:09:11 +08:00
parent 5d21ccd5dd
commit 5938c57174

View File

@ -30,18 +30,18 @@ extension UINavigationBar {
extension UINavigationBar {
func nr_setTranslucent(isTranslucent: Bool) {
func nr_setTranslucent(_ isTranslucent: Bool) {
self.isTranslucent = isTranslucent
}
func nr_setBackgroundColor(backgroundColor: UIColor?) {
func nr_setBackgroundColor(_ backgroundColor: UIColor?) {
let appearance = self.standardAppearance
appearance.backgroundColor = backgroundColor
self.standardAppearance = appearance
self.scrollEdgeAppearance = appearance
}
func nr_setTitleTextAttributes(titleTextAttributes: [NSAttributedString.Key : Any]?) {
func nr_setTitleTextAttributes(_ titleTextAttributes: [NSAttributedString.Key : Any]?) {
let appearance = self.standardAppearance
if let titleTextAttributes = titleTextAttributes {