The more accessible HStack for SwiftUI.
HStack that will switch to a VStack when the horizontal size class is compact and the content size category is set to an accessibility size option.
Often when presenting a few items in an HStack you will run out of size when the users starts to scale the font really big and the screen is quite compact. Causing the Text
elements to wrap or worse truncate text.
This stack will automatically swap to a VStack under those conditions. That will affect your design, but at those accessibility font sizes it's more important to be readable than to be pixel perfect on design.
Yes, I've put this in the public domain!