Xamarin-macios: PKPaymentButtonType unavailable in iOS

Created on 19 Jun 2019  路  3Comments  路  Source: xamarin/xamarin-macios

Steps to Reproduce

  1. Create a PKPaymentButton(PKPaymentButtonType.Buy, PKPaymentButtonStyle.Black)instance.

In VS for Mac the enum PKPaymentButtonType are being highligted with a warning saying the enum were made unavailable in iOS.

Not sure if this is a iOS issue, maybe a VS for Mac issue.

Expected Behavior

No warnings since the annotations around this enum are only about watchOS.

See: https://github.com/xamarin/xamarin-macios/blob/49ef93670171ef4e11656a8ed0f3e99f20079c65/src/PassKit/PKEnums.cs#L117

Actual Behavior

Screenshot 2019-06-19 at 17 19 56

Environment

Visual Studio Community 2019 for Mac
Version 8.1 (build 2742)
Installation UUID: fdb86b9e-27b3-4cb4-bbc3-990bfd7e4124
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.6.0.25 (d16-0 / 50f75273)

Package version: 518010028

Xamarin.iOS
Version: 12.10.0.153 (Visual Studio Community)
Hash: 750a8798
Branch: d16-1-artifacts
Build date: 2019-04-30 15:17:54-0400

bug iOS

Most helpful comment

Hello!

Thank you for your feedback, I can reproduce this and also with other members like

  • UIControlState
  • UIViewContentMode
  • NSLayoutManager

we will investigate.

All 3 comments

Hello!

Thank you for your feedback, I can reproduce this and also with other members like

  • UIControlState
  • UIViewContentMode
  • NSLayoutManager

we will investigate.

I would just like to comment that this whole "{X} was made unavailable for iOS" warning seems bugged. For example creating a UNMutableNotificationContent object with properties like Title, Body etc. like this:

var content = new UNMutableNotificationContent
{
   Title = "Title",
   Body = "You have 2 tasks for today.",
   Sound = UNNotificationSound.Default
};

an error is thrown on each line, e.g. "'Title' was made unavailable for iOS", even though these properties are not signaled as unavailable (what does that even mean? - could not find anything on it anywhere) neither on the Apple developer documentation site, neither on Xamarin's documentation site.

Same thing happens on Xamarin.Mac

image

Was this page helpful?
0 / 5 - 0 ratings