tabbar color with gradient in iOS swift
Solution:
Code:
let gradientLayer = CAGradientLayer()
gradientLayer.colors = [color1.
gradientLayer.startPoint = CGPoint(x: 0, y: 0.5)
gradientLayer.endPoint = CGPoint(x: 1, y: 0.5)
gradientLayer.frame = CGRect(x: 0, y: 0, width: tabBar.bounds.width, height: tabBar.bounds.height)
tabBar.layer.insertSublayer(
Comments
Post a Comment