Center Align Text/Image within Stack


I am working on a weather script that shows a 3-day forecast (building upon @grantavery script)

Is it possible to center align the content in each stack? (dailyWeatherStack - code here). Currently the content is left aligned and using spacers doesn’t center align each item with each other?


Maybe Simon’s original example around stacks here will help?

In it he has text above and below three images and everything aligned in one way or another.


Thanks, yes I checked those examples but all show text left aligned and not centered?

There’s a thread on Reddit about centering text in a stack.

This example from that thread centres the text.

Great that fixed it, thanks!