I am trying to display a modal popover using Xamarin.iOS and MVVMCross.
Here is my view:
[MvxModalPresentation(
WrapInNavigationController = true,
ModalPresentationStyle = UIModalPresentationStyle.Popover,
PreferredContentSize = new CGSize(100, 100)
)]
public class Test2View : BaseViewController<TestView2Model>
{
//other code...
}
This doesn't compile. The PreferredContentSize attribute has an error.
'PreferredContentSize' is not a valid named attribute argument because it has type 'CoreGraphics.CGSize', which is not a valid attribute parameter type
As a follow up question, is there a way to have a modal popover of a specific size on an iPhone?