[iOS][swift]UILabel字體顏色漸層
extension UILabel{
func GradientLabel(_ colors: [Any]? , isVertical : Bool, locations: [NSNumber]? = [0.0, 1.0]) {
for sub:UIView in sel [iOS][swift]UIView顏色漸層
class GradientView: UIView {
private var gradientLayer = CAGradientLayer()
private var vertical: Bool = false
func draw(_ colo