0

I have a stack view, I tapped photo select item and I show alert sheet, and when alert sheet dismissed and my image view's image did change to imageView's tint color. Code:

let alertController = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
    let cameraAction = UIAlertAction(title: "newsfeed_camera.picker".localized, style: .default, handler: {
        action in
        self.present(self.imageManager.cameraPicker, animated: true, completion: nil)
    })
    let photoAction = UIAlertAction(title: "newsfeed_photo.picker".localized, style: .default, handler: {
        action in
        self.present(self.imageManager.photoPicker, animated: true, completion: nil)
    })
    let cancelAction = UIAlertAction(title: "newsfeed_button.cancel".localized, style: .cancel, handler: {
        action in
        self.postTV.becomeFirstResponder()
    })

    alertController.addAction(cameraAction)
    alertController.addAction(photoAction)
    alertController.addAction(cancelAction)
    present(alertController, animated: true, completion: nil)

I show with image like this,

First state

Second State

Final state

0 Answers0