         UIView.animateWithDuration(0.2, delay: 0.0, options: .CurveLinear, animations: { _ in
             self.containerView.alpha = 0
 
-            self.tableViewBottomConstraint?.constant = 300
+            self.tableViewBottomConstraint?.constant = self.totalHeight
 
             self.layoutIfNeeded()
 


                let cell = tableView.dequeueReusableCellWithIdentifier("DiscoverFilterCell") as! DiscoverFilterCell

                cell.textLabel?.text = NSLocalizedString("Nearby", comment: "")

                return cell



import UIKit

//class DiscoverFilterCell: UITableViewCell {
//
//    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
//        super.init(style: style, reuseIdentifier: reuseIdentifier)
//
//        //accessoryType = .DisclosureIndicator
//
//        layoutMargins = UIEdgeInsets(top: 0, left: 20, bottom: 0, right: 20)
//
//        textLabel?.textColor = UIColor.darkGrayColor()
//        textLabel?.font = UIFont(name: "Helvetica-Light", size: 18)!
//    }
//
//    required init(coder aDecoder: NSCoder) {
//        fatalError("init(coder:) has not been implemented")
//    }
//
//    lazy var checkLabel: UILabel = {
//        let s = UILabel()
//        return s
//        }()
//
//    func makeUI() {
//        contentView.addSubview(checkLabel)
//        checkLabel.setTranslatesAutoresizingMaskIntoConstraints(false)
//
//        let centerY = NSLayoutConstraint(item: checkLabel, attribute: .CenterY, relatedBy: .Equal, toItem: contentView, attribute: .CenterY, multiplier: 1, constant: 0)
//        let trailing = NSLayoutConstraint(item: checkLabel, attribute: .Trailing, relatedBy: .Equal, toItem: contentView, attribute: .Trailing, multiplier: 1, constant: -20)
//
//        NSLayoutConstraint.activateConstraints([centerY, trailing])
//    }
//}

class DiscoverFilterCell: UITableViewCell {

    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)

        layoutMargins = UIEdgeInsets(top: 0, left: 20, bottom: 0, right: 20)

        makeUI()
    }

    required init(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    lazy var colorTitleLabel: UILabel = {
        let label = UILabel()
        return label
        }()

    lazy var checkLabel: UILabel = {
        let label = UILabel()
        return label
        }()

    var colorTitleLabelTextColor: UIColor = UIColor.yepTintColor() {
        willSet {
            colorTitleLabel.textColor = newValue
        }
    }

    enum FontStyle {
        case Light
        case Regular
    }

    var colorTitleLabelFontStyle: FontStyle = .Light {
        willSet {
            switch newValue {
            case .Light:
                colorTitleLabel.font = UIFont(name: "Helvetica-Light", size: 18)!
            case .Regular:
                colorTitleLabel.font = UIFont(name: "Helvetica", size: 18)!
            }
        }
    }

    func makeUI() {

        contentView.addSubview(colorTitleLabel)
        contentView.addSubview(checkLabel)
        colorTitleLabel.setTranslatesAutoresizingMaskIntoConstraints(false)
        checkLabel.setTranslatesAutoresizingMaskIntoConstraints(false)

        let centerY = NSLayoutConstraint(item: colorTitleLabel, attribute: .CenterY, relatedBy: .Equal, toItem: contentView, attribute: .CenterY, multiplier: 1, constant: 0)
        let centerX = NSLayoutConstraint(item: colorTitleLabel, attribute: .CenterX, relatedBy: .Equal, toItem: contentView, attribute: .CenterX, multiplier: 1, constant: 0)

        NSLayoutConstraint.activateConstraints([centerY, centerX])


        let checkLabelCenterY = NSLayoutConstraint(item: checkLabel, attribute: .CenterY, relatedBy: .Equal, toItem: contentView, attribute: .CenterY, multiplier: 1, constant: 0)
        let checkLabelTrailing = NSLayoutConstraint(item: checkLabel, attribute: .Trailing, relatedBy: .Equal, toItem: contentView, attribute: .Trailing, multiplier: 1, constant: -20)

        NSLayoutConstraint.activateConstraints([checkLabelCenterY, checkLabelTrailing])
    }

}

class DiscoverFilterView: UIView {

    let totalHeight: CGFloat = 240

    lazy var containerView: UIView = {
        let view = UIView()
