From 2d57b0b4adbcee1d2252f0596fba98769bbf904d Mon Sep 17 00:00:00 2001 From: Mhd Hasan Al Janadi Date: Mon, 1 Nov 2021 17:24:18 +0200 Subject: [PATCH] fix_done_and_cancle_btn_colors_in_ios15 --- TLPhotoPicker/Classes/TLPhotosPickerViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift b/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift index 5548a34c..52cfbf29 100644 --- a/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift +++ b/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift @@ -408,8 +408,9 @@ extension TLPhotosPickerViewController { self.titleLabel.text = self.configure.customLocalizedTitle["Camera Roll"] self.subTitleLabel.text = self.configure.tapHereToChange self.cancelButton.title = self.configure.cancelTitle + self.cancelButton.setTitleTextAttributes([NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: UIFont.labelFontSize),NSAttributedString.Key.foregroundColor:UIColor.blue], for: .normal) self.doneButton.title = self.configure.doneTitle - self.doneButton.setTitleTextAttributes([NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: UIFont.labelFontSize)], for: .normal) + self.doneButton.setTitleTextAttributes([NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: UIFont.labelFontSize),NSAttributedString.Key.foregroundColor:UIColor.blue], for: .normal) self.emptyView.isHidden = true self.emptyImageView.image = self.configure.emptyImage self.emptyMessageLabel.text = self.configure.emptyMessage