Popover icon indicating copy to clipboard operation
Popover copied to clipboard

transform change it's subview's frame

Open jiangliansong19 opened this issue 4 years ago • 0 comments

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!

jiangliansong19 avatar Aug 12 '21 03:08 jiangliansong19