FromFront and FromBack should equal if the position of the layer is logically same if we count from back or from the front of the stack
- Dominant language
- Rust
- Stars
- 4.8k
- Forks
- 270
- Avg merge
- 5d 19h
- Merged PRs (30d)
- 2
Description
```
let pos = stack_view.find_layer_from_name(STACKED_SEARCH_BAR).unwrap();
let is_at_front_0 = (pos == LayerPosition::FromFront(0));
let is_at_back_1 = (pos == LayerPosition::FromBack(1));
```
If I have a stack that contains two items and one of the items is named "STACKED_SEARCH_BAR" which is at the top of the stack that is, it is visible and not covered by any layer, then the above should give identical answer to the comparison, i.e, FromFront(0) should be equal to FromBack(1);
But it doesn't. Tbh, I did mention this somewhere, but the introduction of very unconventional way of referring to the position of the object in a container is something else... How many times do I had to check (and still am) what Front means in that case, and ironically it means the exact opposite to what programmers are used to...
Contributor guide
Assessment
This issue has not been assessed yet.