func scrollViewDidScroll()

in eCommerce/Controllers/ProductsViewController.swift [158:165]


    func scrollViewDidScroll(_ scrollView: UIScrollView) {
        let offset = scrollView.contentOffset.y
        var alpha: CGFloat = 1
        if offset > 70 {
            alpha = (100 - offset) / 100
        }
        headerTitleLabel?.textColor = UIColor(red: 1, green: 1, blue: 1, alpha: alpha)
    }