images in mac os

MaximRubchinskyMaximRubchinsky ILMember ✭✭
edited November 2017 in Xamarin.Forms

Hello,
I have created a xamarin forms with the mac os platform, and I have a problem showing images.
For example, in the in the default asset catalog I have created a new image set and called it Logo and loaded a pdf into the vector tab in "Universal"

this is my xaml

but the image doesn't appear.
can someone help me?

Answers

  • ReinierKops.1905ReinierKops.1905 NLUniversity ✭✭

    Did you already have a solution?

  • AntonDashivskyiAntonDashivskyi UAMember ✭✭
    edited August 2018

    Hi I have the same issue
    When I added images to assets catalog and tried use it in ToolbarItem (Icon = "imageName") I got runtime error:
    Could not initialize an instance of the type 'AppKit.NSImage': the native 'initWithContentsOfFile:' method returned nil.
    It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
    I also tried create new assets catalog it wasn't help.

Sign In or Register to comment.