Skip to content

Instantly share code, notes, and snippets.

@nurtugan
Last active March 29, 2020 17:46
Show Gist options
  • Save nurtugan/7533e957c0687419dd903cb7b4cf187a to your computer and use it in GitHub Desktop.
Save nurtugan/7533e957c0687419dd903cb7b4cf187a to your computer and use it in GitHub Desktop.
My Default Appearance Manager
import UIKit
final class AppearanceManager {
static let shared = AppearanceManager()
private init () {}
func setDefaultAppearance() {
// Removes all navigation bar back button title
UIBarButtonItem.appearance().setTitleTextAttributes(
[.foregroundColor: UIColor.clear],
for: .normal
)
UIBarButtonItem.appearance().setTitleTextAttributes(
[.foregroundColor: UIColor.clear],
for: .highlighted
)
// ends...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment