I want to pass data from a UIPageViewController to one of its child ViewControllers.
I have a protocol set like so:
protocol Delega
The problem is this line:
let pvc = PageVC()
That makes a new, separate PageVC. That's not what you want. You want a reference to the existing, actual PageVC whose parent this is. That reference is self.parent (though not, perhaps, in viewDidLoad, which is rather early and might not guarantee that we are the child yet).