Post

Replies

Boosts

Views

Activity

Reply to Attempt to present UIAlertController on ViewController whose view is not in the window hierarchy!
Only one change to prevented from crash let alert = UIAlertController(title: "Image Selection", message: "From where you want to pick this image?", preferredStyle: .actionSheet) only change preferred style as alert instead actionSheet let alert = UIAlertController(title: "Image Selection", message: "From where you want to pick this image?", preferredStyle: .alert)
Jan ’22