I’ve been learning Swift and iOS programming and one of the challenges is to add a CAGradientLayer to the view.
I’ve created sub views and get colors to show up but I can’t get CAGradientLayer to appear on my view. In view did load I can get flat color views but not gradients. What am I doing wrong? Am I not adding it to the view properly?
Thanks.
I’ve created sub views and get colors to show up but I can’t get CAGradientLayer to appear on my view. In view did load I can get flat color views but not gradients. What am I doing wrong? Am I not adding it to the view properly?
Thanks.
Last edited: