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.


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

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift