Indeed, on iPadOS 18.4, .onAppear is called twice (on 18.3.1 and before, it's called only once). Sometimes, the navigation bar flicks and shows the newly opened document title instead of the previously opened document title, and duplicated toolbar items disappear. Still, the duplication comes back sooner or later. This issue is also impacting document saving. When re-opened, the document modification is lost (the modification wasn't saved). There must be some changes in DocumentGroup on iOS 18.4 and iPadOS 18.4.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: