                 let page: KenBurnsSlideshowTitleView = titleViewClass(frame: self.scrollView.bounds)
                 page.title = "Testing \(i)"
                 page.subTitle = "Now"
+                page.titleColor = UIColor.whiteColor()
+                page.subTitleColor = UIColor.whiteColor()
                 pages.append(page)
             }
             self.scrollView.pageItems = pages

        self.configure()
    }
    
    private func configure() {
        self.backgroundColor = UIColor.clearColor()
        
        self.titleLabel.frame.size.height = 20.0
        self.subTitleLabel.frame.size.height = 20.0
        
        self.insertSubview(self.titleLabel, atIndex: 0)
        self.insertSubview(self.subTitleLabel, atIndex: 0)
        
        self.applyConstraints(self.titleLabel, toView: self, bottomMargin: 20.0)
        self.applyConstraints(self.subTitleLabel, toView: self.titleLabel, bottomMargin: self.titleLabel.bounds.height)

class KenBurnsSlideshowTitleView: UIView {
    private var titleLabel: UILabel! = UILabel()
    private var subTitleLabel: UILabel! = UILabel()
    private var heightConstraint: NSLayoutConstraint!
    private var gradientLayer: CAGradientLayer! = CAGradientLayer()
    
    var title: String? {
        set {
            self.titleLabel.text = newValue
        }
        get {
            return self.titleLabel.text
        }
    }
    var subTitle: String? {
        set {
            self.subTitleLabel.text = newValue
        }
        get {
            return self.subTitleLabel.text
        }
    }
    
    var titleFont: UIFont! {
        set {
            self.titleLabel.font = newValue
        }
        get {
            return self.titleLabel.font
        }
    }
    
    var subTitleFont: UIFont! {
        set {
            self.titleLabel.font = newValue
        }
        get {
            return self.subTitleLabel.font
        }
    }
    
    var titleAlignment: NSTextAlignment! {
        set {
            self.titleLabel.textAlignment = newValue
        }
        get {
            return self.titleLabel.textAlignment
        }
    }
    
    var subTitleAlignment: NSTextAlignment! {
        set {
            self.subTitleLabel.textAlignment = newValue
        }
        get {
            return self.subTitleLabel.textAlignment
        }
    }
    
    var titleColor: UIColor! {
        set {
            self.titleLabel.textColor = newValue
        }
        get {
            return self.titleLabel.textColor
        }
    }
    
    var subTitleColor: UIColor! {
        set {
            self.subTitleLabel.textColor = newValue
        }
        get {
            return self.subTitleLabel.textColor
        }
    }
    
    var titleAttributedText: NSAttributedString {
        set {
            self.titleLabel.attributedText = newValue
        }
        get {
            return self.titleLabel.attributedText
        }
    }
    
    var subTitleAttributeText: NSAttributedString {
        set {
            self.subTitleLabel.attributedText = newValue
        }
        get {
            return self.subTitleLabel.attributedText
        }
    }
    
