Hi, I am working on xamarin forms where I am trying to add font awesome icon in ToolbarItem
<ContentPage.ToolbarItems> <ToolbarItem Text="" Clicked="Logout_Clicked" /> <OnPlatform x:TypeArguments="x:String" Android="fa-solid-900.ttf#fa-solid" iOS="Font Awesome 5 Free" /> </ContentPage.ToolbarItems>
It is throwing following error
System.ArrayTypeMismatchException: Attempted to access an element as a type incompatible with the array
Instead of in ToolbarItem if I use in inside page icon is binding without any problem. What could be the issue? If this is not a proper way then please help me out how to add icons?