 }
 
 open class PickerView: UIView {
-    public var contentHeight: CGFloat = 0
+    
     // MARK: Nested Types
     
     fileprivate class SimplePickerTableViewCell: UITableViewCell {

            
            let indexOfSelectedRow = visibleIndexOfSelectedRow()
            tableView.setContentOffset(CGPoint(x: 0.0, y: CGFloat(indexOfSelectedRow) * rowHeight), animated: false)
            print("scrolling position was set to visible index of selected row \(indexOfSelectedRow), at Y \(CGFloat(indexOfSelectedRow) * rowHeight) when row height is \(rowHeight)")
            
            print("first selection is set to row \(currentSelectedRow), at index \(currentSelectedIndex)")
            delegate?.pickerView?(self, didSelectRow: currentSelectedRow, index: currentSelectedIndex)
            
        } while !(numberOfRowsByDataSource > 0 && tableView.numberOfRows(inSection: 0) > 0)

        
        // When the scrolling reach the end on top/bottom we need to set the first/last row to appear in the center of PickerView, so that row must be bigger.
        if (indexPath as NSIndexPath).row == 0 {
            return (frame.height / 2) + (rowHeight / 2)
        } else if numberOfRowsInPickerView > 0 && (indexPath as NSIndexPath).row == numberOfRowsInPickerView - 1 {
            return (frame.height / 2) + (rowHeight / 2)
        }

        return rowHeight
    }
    
