diff --git a/src/appkit.cs b/src/appkit.cs index 51af74509529..aa370418e324 100644 --- a/src/appkit.cs +++ b/src/appkit.cs @@ -20246,7 +20246,24 @@ interface NSToolbarItem : NSCopying, NSMenuItemValidation, NSValidatedUserInterf bool Enabled { [Bind ("isEnabled")]get; set; } [Export ("image", ArgumentSemantic.Retain), NullAllowed] +#if XAMCORE_5_0 && __MACCATALYST__ + UIImage Image { get; set; } +#else NSImage Image { get; set; } +#endif + + // We incorrectly bound 'Image' as NSImage in Mac Catalyst. + // Provide this alternative until we can make 'Image' correct in XAMCORE_5_0 + // Obsolete this member in XAMCORE_5_0 + // and remove it in XAMCORE_6_0 +#if __MACCATALYST__ && !XAMCORE_6_0 +#if XAMCORE_5_0 + [Obsolete ("Use 'Image' instead.")] +#endif + [Sealed] + [Export ("image", ArgumentSemantic.Retain), NullAllowed] + UIImage UIImage { get; set; } +#endif [NoMacCatalyst] [Export ("view", ArgumentSemantic.Retain)]