I am trying to add gradient as a sublayer in view but its not resizing it equal to the view

前端 未结 0 1720
予麋鹿
予麋鹿 2020-11-29 14:05
    let cellview: UIView!
    let gradient = CAGradientLayer() 
    let topColor = UIColor(red: 0.435, green: 0, blue: 0.635, alpha: 1.0)
    let bottomColor = UICol         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题