[UIKit] Add support for Xcode 15. by mandel-macaque · Pull Request #19120 · dotnet/macios (original) (raw)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incorrect, from our documentation and from the code generated by sharpie:
/*
Check whether adding [Model] to this declaration is appropriate.
[Model] is used to generate a C# class that implements this protocol,
and might be useful for protocols that consumers are supposed to implement,
since consumers can subclass the generated class instead of implementing
the generated interface. If consumers are not supposed to implement this
protocol, then [Model] is redundant and will generate code that will never
be used.
*/
If you look at the documentation, this is not an interface that has to be implemented by the user https://developer.apple.com/documentation/uikit/uishapeprovider as opposed to the NSUelSession delegate: https://developer.apple.com/documentation/foundation/nsurlsessiondelegate
If you look closer to the API you'll see that the UIShape is the one that returns a UIShapeProvider and users are probably not going to implement this.