Floaty icon indicating copy to clipboard operation
Floaty copied to clipboard

Frame off until using `setNeedsLayout`

Open Natelegreat1 opened this issue 7 years ago • 0 comments

I am putting my Floaty in a UITableView.tableHeaderView: self.tableView.tableHeaderView = self.tableViewHeaderWithFloaty

For some strange reason, the frame is misaligned until I open() the Floaty. Alternatively, I can force the frame to be placed properly if I call setNeedsLayout() in viewDidAppear() (does not work if done in the view*LayoutSubviews() delegates)

Any ideas? So strange!

When the view loads: viewdidload

When I Open the Floaty... suddenly ok! open

When I Close the Floaty... now everything is ok. close

Natelegreat1 avatar Jan 08 '18 16:01 Natelegreat1