I added a 1 second delay and it works from onappear. Silly bug.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: