Post

Replies

Boosts

Views

Activity

Reply to Duplicate toolbar item and wrong document name in SwiftUI document based app
Just adding my voice to this. As of iPadOS 18.4: The .onAppear and .task modifiers are called twice at startup. The second call to .task really threw me off because I thought it was guaranteed to only ever be called once in this sort of circumstance. The toolbar shows the previously opened document title. Showing a navigation title using .inline makes the title appear as if it's the document name. Showing a navigation title using .large makes the document name disappear, but you can still click that invisible are and the rename menu appears. In the document browser itself, the search feature often errors-out a few times before accepting input. Though admittedly, this may have existed prior to iPadOS 18.4. Anyone else seeing this last one?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’25