I didn't mess with that code at all. Did it start working for you?
wahaha, so strange. It doesn't auto flip anymore for me.
So weird. There might be something going on with the OS's dark mode settings and how the code interacts.
Must be my end. I'll keep you posted.