I've written a notification mechanism for Xamarin forms that is designed to allow an application to display toast style notifications (or any other custom content) at the top of the screen. It works as follows (pseudocode):
// Initialisation (only done once)
var existingContent = app.MainPage.Content;
var newContent = new Container(); // have used AbsoluteLayout + Grid for this, doesn't make any difference
var overlayContainer = new StackPanel();
app.MainPage.Content = newContent;
// When displaying a notification
// Wait for dismiss / timout
This works fine on Android, however on iOS the UI stops responding to touch input. I've tracked the point this happens to the replacement of MainPage.Content with the new container. I've tried without the overlay as well (i.e. just wrapping the existing content) to rule out the overlay blocking input. I can see the UI is still functioning as it updates in the background, it just doesn't respond to touch any more.
Any pointers on either restoring touch responsiveness to the page after replacing the content or solving this in another way would be greatly appreciated!