Open Ins0mn1aUA opened 5 years ago
Hi @Ins0mn1aUA did you find any solution ?. I create a new project for test and work fine, but in my actual project i get the same error
Hi, @danielrobleM :) I have the same one. In main project I've this error, in another test projects all works fine. Still don't know how to solve this problem.
For me, that is because I used SwifterSwift which has a extension named cornerRadius
. Perhaps the author could try to modify the name to solve this problem.
/// SwifterSwift: Corner radius of view; also inspectable from Storyboard.
@IBInspectable var cornerRadius: CGFloat {
get {
return layer.cornerRadius
}
set {
layer.masksToBounds = true
layer.cornerRadius = abs(CGFloat(Int(newValue * 100)) / 100)
}
}
If you still want to use SwifterSwift, you could set cornerRadius
by yourself:
tagListView.tagViews.forEach {
$0.layer.cornerRadius = 8
$0.layer.masksToBounds = true
}
use taglistview.setValue(5.0, forKey: "cornerRadius") to avoid this question
i use pod TagListView, and Xcode call me: ambiguous use of 'cornerRadius'. How to solve it ?