I already knew this functionality, I was just here to check my code whether I am doing it the right way or not. I found your style of teaching very soothing to the ears. Thank you for helping others. Share your Twitter handle for more frequent insight regarding iOS development.
How can I dismiss this sheetpresentation when i click the back button of the mainVc it is on? I tried this method but didn't work override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) if isMovingFromParent { if let parentVC = parent as? RecipeResultsVC, let sheet = navigationController?.sheetPresentationController { sheet.delegate = parentVC navigationController?.dismiss(animated: true, completion: nil) } } }
Nice video. Why would you make your nib contain the word controller. Your nib i basically the V in MVC, calling it controller is straight up confusing..
Good question John. I hear what you are saying. Yes this is a View. But it is also a controller. This nib gets presented as a full controller (not just a view). Hence I kept the word controller in the nib name. Thanks for asking!
You are working hard and showing less. If you are teaching to make sheet by scratch. write it down on title of video. Great work man. Respect
Love your teaching style man. You make me want to teach
I love your video format, editing and teaching style, all perfect!
Thank you so much spicedream. Really appreciate it. Put a lot of work into these. Glad you found them and enjoy them. All the best - Jonathan
I already knew this functionality, I was just here to check my code whether I am doing it the right way or not. I found your style of teaching very soothing to the ears. Thank you for helping others. Share your Twitter handle for more frequent insight regarding iOS development.
Thank you so much Sahil. Glad you enjoyed it.
omg this video is so good
How can I dismiss this sheetpresentation when i click the back button of the mainVc it is on? I tried this method but didn't work
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
if isMovingFromParent {
if let parentVC = parent as? RecipeResultsVC,
let sheet = navigationController?.sheetPresentationController {
sheet.delegate = parentVC
navigationController?.dismiss(animated: true, completion: nil)
}
}
}
Nice video. Why would you make your nib contain the word controller. Your nib i basically the V in MVC, calling it controller is straight up confusing..
Good question John. I hear what you are saying. Yes this is a View. But it is also a controller. This nib gets presented as a full controller (not just a view). Hence I kept the word controller in the nib name. Thanks for asking!