unsignedapps/Vexil

Flags not displaying value on first launch

Opened this issue · 3 comments

drekka commented

We've noticed that on first launch after a fresh install of a settings app that uses Vexil, boolean flags display a toggle switch, but tapping it appears to do nothing. In actual fact the toggle is being changed, it's just the UI that is not working.

We've found that if we kill the app and restart it the toggles then work as expected and will continue to do so until we install the next version. Where upon they stop updating until we restart the app again.

Vexil version: 2.2.2
Swift version: swift-driver version: 1.75.2 Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
Environment: Simulator and device.

✅ Checklist

  • If possible, I've reproduced the issue using the main branch of this package
  • I've searched for existing GitHub issues
bok- commented

Hi @drekka, this one sounds familiar, I believe we've seen it before. I will go digging through our PR history, but just to confirm, are you using UserDefaults to share your flags with your Settings app, or something custom?

Bok

Hi @bok- , I think I've faced the same issue too and solved it this way. But mine was slightly different again maybe. Will and I both solved that way the one we faced back then.

#115 (comment)

drekka commented

Hi, yes we are using a shared user defaults group. I'm also sure I read a mention of this somewhere but I was unable to locate it before writing up the issue.