Set the navigation bar color in UIIMagePicker for my app theme color iOS swift
Solution:
You can use the below code to set the navigation bar colour for the imagepicker from your app app.
You can use the below code to set the navigation bar colour for the imagepicker from your app app.
extension UIImagePickerController {
open override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews()
self.navigationBar.topItem?.rightBarButtonItem?.tintColor = UIColor().white//here you can put your app theme color
self.navigationBar.topItem?.rightBarButtonItem?.isEnabled = true
}
}
Comments
Post a Comment