corin8823 / Popover

Popover is a balloon library like Facebook app. It is written in pure swift.
MIT License
2.09k stars 326 forks source link

Question : change size of the Popover #106

Open turk-jk opened 6 years ago

turk-jk commented 6 years ago

Hi there, thanks for the great work, I like it very much

just wondering is there any way to change the size of the Popover after it was displayed with some animation.

I can change the view by doing this inside the view inside the popover

let newView = UIView()
guard let sv = self.superview else{  return  }
UIView.animate(withDuration: 0.5) {
   sv.addSubview(newView)
   self.removeFromSuperview()
}

which works fine but I would like to change the size of the popover accordingly from within the view inside the popover

any suggestions or corrections would be appreciated thanks again for the great work

Maxatma commented 6 years ago

I have same needs actually.