corin8823 / Popover

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

Centering custom subview in popover #71

Open carlb0329 opened 7 years ago

carlb0329 commented 7 years ago

I'm using a custom view that I instantiate from a nib. I pass the custom view into the popover, but the custom view doesn't center inside of the popover, instead it's anchored into the top left corner of the popover's container view. I can't seem to get my custom view to center inside the popover view. I've tried setting the center in the willShow and didShow handlers.

Is there any way to center my custom view before the popover is shown?