Xcode – Can't set text color of UILabel implemented as custom view to UIBarButtonItem
I'd like to implement a custom label in the toolbar, but I can't change its text color: // MARK: - Initialize the status label (toolbar) func initStatusLabel() { statusLabel.layer.borderColor = UIColor.red.cgColor; statusLabel.layer.borderWidth = 1; statusLabel.layer.masksToBounds = true; statusLabel.layer.cornerRadius = 8;…