func yOffset()

in HuggingChat-Mac/Views/CardStack.swift [106:114]


    func yOffset(for index: Int) -> Double {
        let padding = containerSize.height / 10
        let y = (Double(index) - progressIndex) * padding
        let maxIndex = views.count - 1
        if index == selectedIndex && progressIndex < Double(maxIndex) && progressIndex > 0 {
            return y * swingOutMultiplier
        }
        return y
    }