Bug 42890 - Custom signatures (enum) in protocol members
Summary: Custom signatures (enum) in protocol members
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.99 (iOS 10 previews)
Hardware: PC Mac OS
: --- enhancement
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
Depends on:
Reported: 2016-07-28 15:18 UTC by Larry O'Brien
Modified: 2017-01-18 05:44 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 42890 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Larry O'Brien 2016-07-28 15:18:06 UTC
UITextField.TextContentType is an NSString that must be one of the values / constants from UITextContentType. UITextContentType could be an enum and UITextField.ContentType could take that.
Comment 1 Alex Soto [MSFT] 2016-07-30 22:06:17 UTC
Unfortunately TextContentType is inside UITextInputTraits protocol and there is no "easy" way to turn this into an enum. It requires a little more of brain. Will discuss this in our next iOS meeting. But I totally agree this should be an enum.
Comment 2 Sebastien Pouliot 2016-08-15 19:40:36 UTC
Good, but not trivial, idea. https://trello.com/c/dTeHjWnP
Moving out of current milestone.
Comment 3 Alex Soto [MSFT] 2017-01-18 05:44:09 UTC
Ups my bad, working on the enum <-> NSString conversion but the support of this inside protocols is for another day