I'm trying to truncate values being fetched from an api but also want to auto-truncate if fetched value width > available width in text override.
However, when iterating over the list of overrides ... i can only seem to fetch the first
getFrame() and the rest are all undefined, am i missing something?
const wrappedItems = util.toArray(context.data.items).map(sketch.fromNative);
wrappedItems.forEach((wi, index) => getTruncatedText(minTiers[index], wi.override.getFrame().width))
- assume 4 wrapped items from context.data.items
- first value for width is good, rest are all undefined