Open SimonFernandes7 opened 5 years ago
did you figure this one out? I just noticed the same thing today
What's the solution ?
Me too,to figure this, I set the arrowSize zero , but it looks so strange.
switch self.popoverType {
case .up, .down, .auto:
frame.size.height += self.arrowSize.height
case .left, .right:
frame.size.width += self.arrowSize.height
}
I find a above code in func create()
. This is increase width/height of view.
My solution: Just remove a below code in Popover file:
override open func layoutSubviews() {
super.layoutSubviews()
self.contentView.frame = self.bounds
}
let options = [ .type(.up), .animationIn(0.3) ] as [PopoverOption] let popover = Popover(options: options, showHandler: nil, dismissHandler: nil) popover.show(passwordValidationView, fromView: sender as! UIButton)
As you can see this custom view size keeps on increasing as it is open multiple times