The variable "currentPosition" needs to be updated when a SwipeItem programmmatically selected with selectItemAt() or selectItemWithValue()methods... so that getSelectedItem() method correctly retrieves the current selected item if it was selected programmatically.
The variable
"currentPosition"
needs to be updated when a SwipeItem programmmatically selected withselectItemAt()
orselectItemWithValue()
methods... so thatgetSelectedItem()
method correctly retrieves the current selected item if it was selected programmatically.