I’m exploring the new Xcode 15 string catalog feature.
I see that for every sentence there is a “screenshots” field in the Xcode inspector (see image). How can we populate this field?
Thank you
I’m exploring the new Xcode 15 string catalog feature.
I see that for every sentence there is a “screenshots” field in the Xcode inspector (see image). How can we populate this field?
Thank you
I'm pretty sure that's populated by UI tests which show the string in question and which record a screenshot. This way, you can run your tests in various locale settings and confirm the string doesn't overflow a field and get truncated.
You can find more information about screenshots and localization on:
https://developer.apple.com/wwdc19/403?time=1316
https://developer.apple.com/documentation/xcode/creating-screenshots-of-your-app-for-localizers
https://developer.apple.com/documentation/xcode/exporting-localizations