func setup()

in eCommerce/Views/Player/PlayerView.swift [123:151]


    func setup() {
        streamInfoPill.backgroundColor = .white
        streamInfoPill.layer.cornerRadius = 25
        streamInfoPillImageView.layer.cornerRadius = streamInfoPillImageView.frame.size.width / 2
        if let imageUrl = URL(string: "https://ecommerce.ivsdemos.com/images/profile.png") {
            Image.getFrom(imageUrl) { [weak self] (image) in
                DispatchQueue.main.async {
                    self?.streamInfoPillImageView.image = image
                }
            }
        }
        productAddToCartButton.layer.cornerRadius = 4
        productBuyNowButton.layer.cornerRadius = 4
        productPopup.layer.cornerRadius = 16
        timerView.layer.cornerRadius = 16
        timerView.isHidden = true
        homeButton.layer.cornerRadius = homeButton.layer.bounds.width / 2
        homeButton.titleLabel?.text = ""
        bringSubviewToFront(controlsView)

        let gradient = CAGradientLayer()
        gradient.colors = [
            UIColor(red: 0, green: 0, blue: 0, alpha: 0).cgColor,
            UIColor(red: 0, green: 0, blue: 0, alpha: 1).cgColor
        ]
        gradient.locations = [0.1, 1.0]
        gradient.frame = bottomGradientView.bounds
        bottomGradientView.layer.insertSublayer(gradient, at: 0)
    }