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 (show other bugs)
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)

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


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

Note You need to log in before you can comment on or make changes to this bug.