Floaty icon indicating copy to clipboard operation
Floaty copied to clipboard

Disappearing Floaty

Open joeljfischer opened this issue 4 years ago • 0 comments

I have my Floaty tied to a UITableViewController. When I send the app into the background and bring it back to the foreground, Floaty disappears. After some investigation, it appears to be because the frame is not being set correctly in the draw method, while it is in the observeValue: method. When the app goes from foreground / background / foreground, the draw method is called but not the observeValue: method. This results in Floaty being off-screen. For now, I've fixed it by ensuring that Floaty only draws once and after that relies on the observeValue: method. That's not ideal, and probably needs a better fix.

joeljfischer avatar Jul 22 '20 19:07 joeljfischer