I have a xamarin forms application with my shared code in a .net standard library project. I'm using an interface class to call the my IOS toast implementation from my shared project. I'm getting the following error:
UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread
Works fine in IOS simulator but throws the exception on physical device. Testing on device IOS version 13+
I guess I will try to wrap my interface calls in a run on UI thread block.
I have a xamarin forms application with my shared code in a .net standard library project. I'm using an interface class to call the my IOS toast implementation from my shared project. I'm getting the following error: UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread Works fine in IOS simulator but throws the exception on physical device. Testing on device IOS version 13+ I guess I will try to wrap my interface calls in a run on UI thread block.