You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi i encountered an issue with the library unfortunately it allows you add multiple cutouts to cell which creates an visual bug by taking the previous cutout into the draw function the solution is below
fileprivate func addCutoutView()
{
var hasCutout: Bool = false
for view in self.subviews {
if !(view is CutoutView) {
view.alpha = 0
} else {
hasCutout = true
}
}
if !hasCutout {
let cutout = CutoutView()
cutout.frame = self.bounds
cutout.backgroundColor = UIColor.clear
self.addSubview(cutout)
cutout.setNeedsDisplay()
cutout.boundInside(self)
self.ld_setCutoutView(cutout)
}
}
The text was updated successfully, but these errors were encountered:
Hi i encountered an issue with the library unfortunately it allows you add multiple cutouts to cell which creates an visual bug by taking the previous cutout into the draw function the solution is below
The text was updated successfully, but these errors were encountered: