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

store cgpoint in userdefaults iOS swift