We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://babbab2.tistory.com/55
The text was updated successfully, but these errors were encountered:
private func setImageViewBackgroundGradient() { self.layoutIfNeeded() let gradient: CAGradientLayer = CAGradientLayer() gradient.locations = [0.0, 1.0] let colors: [CGColor] = [ .init(red: 0, green: 0, blue: 0, alpha: 0), .init(red: 0, green: 0, blue: 0, alpha: 1) ] gradient.colors = colors gradient.startPoint = CGPoint(x: 0.0, y: 0.71) gradient.endPoint = CGPoint(x: 0.0, y: 1.0) gradient.frame = .init(x: 0, y: 0, width: self.reviewImageView.frame.width, height: self.reviewImageView.frame.height) self.reviewImageView.layer.insertSublayer(gradient, at: 0) }
사용하는 시점이 중요! 레이아웃잡을때
self.setImageViewBackgroundGradient()
Sorry, something went wrong.
No branches or pull requests
https://babbab2.tistory.com/55
The text was updated successfully, but these errors were encountered: