A11y: added a hint to inform the user that max selections have been reached (#4308)

* a11y added a hint to inform the user that max selections have been reached

* added string
This commit is contained in:
Mauro
2025-07-08 17:33:47 +02:00
committed by GitHub
parent c60fd88577
commit b816f0cf56
4 changed files with 31 additions and 10 deletions
@@ -37,6 +37,10 @@ struct Poll: Hashable {
case disclosed
case undisclosed
}
var hasMaxSelections: Bool {
options.filter(\.isSelected).count == maxSelections
}
struct Option: Hashable {
let id: String