Open jhildensperger opened 3 years ago
@jhildensperger like the suggestion of changing from using a ClosedRange
to a Range
👍
Not so easy to add the convenience functions to TMBar
as currently the range of the reload / buttons is injected and not maintained as state as such. Maybe would be better to understand what use case you need this functionality for?
New Issue Checklist
Issue Description
Currently, we have the function
The parameter type
ClosedRange<Int>
is a bit cumbersome becausebar.buttons.all.indices
is aRange<Int>
. If we want to reload all buttons, we now need something likeCan the functions accepting
ClosedRange<Int>
be changed to useRange<Int>
instead?Also, to the point of this closed issue https://github.com/uias/Tabman/issues/335, adding some other functions for convenience would be nice.