MobileImagePicker

I have the following code in my Camera toolbar option. It worked fine in my previous 2019R3 but doesn’t seem to work in 2021R1.1
I tried the demo code and it compiles fine and shows the photo library but my code below tracks through the right options but doesn’t show the photo library. I have Camera Access and Photo Access selected.
What could be stopping it??

if buttonIndex = 0 then
>   //use camera
>   #If DebugBuild Then
>     ' Use Photo Library for testing as Camera doesn't work in debugger
>     PicturePicker1.Source = MobileImagePicker.Sources.Photos
>     PicturePicker1.Show
>     UIKit.UITapGestureRecognizer
>   #else
>     'Camera doesn't work in debugger
>     PicturePicker1.Source = MobileImagePicker.Sources.Camera
>     PicturePicker1.Show
>     UIKit.UITapGestureRecognizer
>   #Endif
> else
>   //access photos library
>   #If DebugBuild Then
>     ' Use Photo Library for testing as Camera doesn't work in debugger
>     PicturePicker1.Source = MobileImagePicker.Sources.Photos
>     PicturePicker1.Show()
>     UIKit.UITapGestureRecognizer
>   #else
>     'Camera doesn't work in debugger
>     PicturePicker1.Source = MobileImagePicker.Sources.Photos
>     PicturePicker1.Show()
>     UIKit.UITapGestureRecognizer
>   #Endif
> end if

Have you tried turning off:

UIKit.UITapGestureRecognizer

Yes, No different??
But I have the code in a MessageBox button action for the user to choose the Camera or Photo Library.
The code definitely makes it there but doesn’t execute.

If I jump to a timercallLater from the Messagebox it works.