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
Right now, one cannot override the swizzle fields/set custom swizzle field order or names in an array type (which is understandable). A decent workaround seems to be creating a #raw_union with the struct and an array field. But direct array indexing of this struct isn't supported.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Right now, one cannot override the swizzle fields/set custom swizzle field order or names in an array type (which is understandable). A decent workaround seems to be creating a
#raw_union
with the struct and an array field. But direct array indexing of this struct isn't supported.Describe the solution you'd like
Allow direct array indexing of raw-unions, if there is only one array field member inside the raw union struct.
Additional context
None.
Beta Was this translation helpful? Give feedback.
All reactions