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

transform change it's subview's frame #142

Open jiangliansong19 opened 3 years ago

jiangliansong19 commented 3 years ago

Execuse me,

I have set contentView.frame = CGRect(0, 10, 100, 100). But after a Popover transform in func show(), it's contentView has changed frame. Then I find:

override open func layoutSubviews() {
    super.layoutSubviews()
    self.contentView.frame = self.bounds
  }

scale tranform will execute this code, and contentView.frame will be changed.

Thank you!