Difference between index and position in insertCard
masterWhen calling insertCard(atIndex:position:), it is critical to distinguish between the two parameters:
index: Refers to the index of the card/model in your data source (e.g., your[CardModel]array).position: Refers to the visual position in the card stack.
Unlike UITableView, where these are often equivalent, the position in SwipeCardStack is dynamic because it changes as cards are swiped away. Always calculate the position based on the value returned from numberOfRemainingCards() on the SwipeCardStack instance to avoid errors.