I have an issue with an app I'm developing.
- XCode version: 9.2 (9C40b)
- Programming language: Swift 4
- Target iOS version for the app: 11.2
Scenario: I have a mainVC (ViewController) which calls a modally presented secondaryVC. After doing a selection in the secondaryVC, I press a UIButton to go back to the mainVC through an unwind segue.
In the secondaryVC, transition is configured as "Cross Disolve" and Presentation, as "Over Current Context" to get see the previous view as background (background is configured with 50% opacity):
Symptom: in this scenario, when going back through the unwind segue, viewDidAppear never gets called. I need it to be called for further check functions to be executed. It gets called if instead of "Over Current Context", I set presentation as "Full Screen" but in that case, I can't see the previous view as a background.
Question: how can I make viewDidApper to be called keeping some transparency on the secondaryVC over the mainVC?
PS: Sorry if there's anything I've missed when writing this question; it's my first. I've searched through this and other forums and I haven't found an solution (or I haven't identified it).