You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
#10726 removed some code that previously switched between NSColor and UIColor based on the platform, so now color-typed style layer properties are documented to take instances of UIColor on both iOS and macOS, instead of UIColor on iOS and NSColor on macOS:
The code generation script needs to duplicate color-typed property declarations and their documentation comments and use conditional compilation to switch between the two types.
Actually, the code is still there, but the issue is that the regular expressions are matching occurrences of “MGLColor” or “UIColor” that occur outside of the documentation comment, in the declaration:
The migration to NSExpression means that the declared type is just NSExpression *, no longer MGLStyleValue<MGLColor *> *. The regular expressions will need to be rewritten to look for “UIColor” within the comment itself.
#10726 removed some code that previously switched between NSColor and UIColor based on the platform, so now color-typed style layer properties are documented to take instances of UIColor on both iOS and macOS, instead of UIColor on iOS and NSColor on macOS:
mapbox-gl-native/platform/darwin/src/MGLSymbolStyleLayer.h
Line 1479 in cf5d2ca
The code generation script needs to duplicate color-typed property declarations and their documentation comments and use conditional compilation to switch between the two types.
/cc @jmkiley @fabian-guerra
The text was updated successfully, but these errors were encountered: