Thomvis / Construct

Dungeons & Dragons DM companion app in SwiftUI
https://www.construct5e.app
MIT License
120 stars 5 forks source link

Further improvement in CombatantRow's accessibility label. #7

Open SpacyRicochet opened 3 years ago

SpacyRicochet commented 3 years ago

After asking some advice in a Slack channel on using the legend, the expert advice was to attempt to ensure that the entire row is read as one sentence. For example;

"Mummy, HP: 64 of 58 including 8 temporary, AC: 11, Initiative modifier: -1"

I agree with this advice, though it has some implications;

That would be a bit of a change, so discussing this here first.

Thomvis commented 3 years ago

Thanks for looking into this; I agree the advice makes sense. That would lead to quite a few actions on the row:

Is that a problem, should this be structured differently?

SpacyRicochet commented 3 years ago

I don't think that looks like too much… it seems like four actions is the current maximum, so that is feasible. We could structure it as follows;

So the default activate would open the stat block, and swiping up or down would rotate between that and the additional actions.

Thomvis commented 3 years ago

Sounds good.

I wonder if we need to manually combine all into a single element/sentence or if that is handled by the system if we use .accessibilityElement(children: .combine)