 }
 
 class PXOneTapSummaryView: PXComponentView {
-    private var oldData: [OneTapHeaderSummaryData] = []
-    private var data: [OneTapHeaderSummaryData] = []
+    private var data: [OneTapHeaderSummaryData] = [] {
+        willSet {
+            if data.count > newValue.count {
+                removeSummaryRows(oldValue: data, newValue: newValue, animated: true)
+            } else if data.count < newValue.count {
+                addSummaryRows(oldValue: data, newValue: newValue, animated: true)
+
+//                let newRowsData = getNewRowsData(oldValue: data, newValue: newValue)
+//                var newRows: [Row] = []
+//                for rowData in newRowsData {
+//                    let rowView = getSummaryRowView(with: rowData)
+//                    let rowHeight = rowView.getTotalHeightNeeded()
+//                    let row = Row(data: rowData, view: rowView, constraint: nil, rowHeight: rowHeight)
+//                    newRows.insert(row, at: 1)
+//                }
+            } else {
+                updateAllRows(newData: newValue)
+            }
+        }
+        didSet {
+            print("****** la cantidad de datas es: ", data.count)
+        }
+    }
     private weak var delegate: PXOneTapSummaryProtocol?
     private var rowViews: [PXOneTapSummaryRowView] = []
     private var rows: [Row] = [] {
         didSet {
+            print("****** la cantidad de rows es: ", rows.count)
             if rows.count < oldValue.count {
                 //DELETE EXTRA ROWS
             } else if rows.count > oldValue.count {

        self.backgroundColor = ThemeManager.shared.navigationBar().backgroundColor

        var offset: CGFloat = 0
        for row in self.data.reversed() {
            let rowView = self.getSummaryRowView(with: row)
            let margin = rowView.getRowMargin()


        }
    }

    var currentAnimator: UIViewPropertyAnimator?

    init(data: [OneTapHeaderSummaryData] = [], delegate: PXOneTapSummaryProtocol) {
        self.data = data.reversed()
        self.delegate = delegate
        super.init()
        render()
