In dynamic scenarios, we often need to add view components at specific positions in parent view container. For example, if parent view container has 3 child view components, we may want to add view at first position ("add" always adds at the end).
Currently, this is not possible to do natively in Titanium, but it's very useful feature which Titanium should have supported natively.
As a workaround, this approach can be used: https://gist.github.com/1485751
It works fine for small number of child elements, but for large number of child elements there could be performance drop.
Implement those functionality for all view-like components (for those components that can contain other components). I suggest following syntax: