[UIKit] Fix broken UITrait bindings. Fixes #19410. by rolfbjarne · Pull Request #19411 · dotnet/macios (original) (raw)
There are a few issues with the bindings, because the typedef UITrait
in the headers is defined like this:
typedef Class UITrait
which means: "A Class that implements the UITraitDefinition protocol", and not "The UITraitDefinition" protocol", which is how it was bound.
This means the corresponding bindings are incorrect, so fix them. In some cases it's not possible to fix the API, so new ones had to be implemented in order to maintain backwards compatibility.
Fixes #19410.