-
-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
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
Ambiguous use of 'cornerRadius' #177
Comments
Hey @tommyyoon |
I'm having the same issue. I think that this is a library issue. I'm having this issue with all shadow related attributes. Any idea why @andreamazz |
There's 2 shadowOpacity defined in my scope.
|
Shouldn't the library override the shadoowOpacity attribute since PopTip is a UIView? This is my configuration: let tip = PopTip()
tip.font = UIFont.mediumFont(size: 14)
tip.textColor = UIColor(hex: 0x2f2f2f)!
tip.layer.shadowOffset = CGSize(width: 0, height: 2)
tip.layer.shadowRadius = 4
tip.layer.shadowOpacity = 0.06
tip.layer.shadowColor = UIColor.black.cgColor
tip.bubbleColor = .white
tip.shouldDismissOnTapOutside = true
tip.offset = 8
tip.edgeInsets = UIEdgeInsets(top: 10, left: 12, bottom: 10, right: 12)
tip.layer.cornerRadius = 10
tip.show(text: "Added to favorites!", direction: .left, maxWidth: 164, in: self.viewSource, from: self.viewSource.favoriteButton.frame) Since on |
In hindsight, the shadow properties of the layers could've been left alone, except for the shadowPath, which uses an internal bezier path. |
I am getting Ambiguous use of 'cornerRadius' error when I try to set the cornerRadius on Swift 4.2.
The text was updated successfully, but these errors were encountered: