Post

Replies

Boosts

Views

Activity

Comment on How can I reliably get the final restored window size on macOS when onAppear / viewDidAppear fires too early?
Hi, thank you for your response. The issue with waiting for the second viewDidLayout is that it may fail when no restoration resize occurs, such as when the saved window size already matches the default. In that case, setup should run on the first layout pass. Using a delay can also cause flickering and feels more like a workaround than a reliable macOS-native solution. I’m hoping for a more deterministic lifecycle pattern.
Topic: UI Frameworks SubTopic: General Tags:
3d
Comment on Performance in Large Datasets (SwiftUI+SwiftData app)
Hi Richard, Thank you for the response — that makes sense. I hadn’t yet experimented with fetchLimit / fetchOffset, but your answer confirms that pagination (or otherwise constraining the query result set) is the correct approach here, even when using LazyVStack. I appreciate the clarification and will experiment with limiting the dataset size to improve performance. Thanks again for taking the time to look into this.
Jan ’26
Comment on How can I reliably get the final restored window size on macOS when onAppear / viewDidAppear fires too early?
Hi, thank you for your response. The issue with waiting for the second viewDidLayout is that it may fail when no restoration resize occurs, such as when the saved window size already matches the default. In that case, setup should run on the first layout pass. Using a delay can also cause flickering and feels more like a workaround than a reliable macOS-native solution. I’m hoping for a more deterministic lifecycle pattern.
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
3d
Comment on Performance in Large Datasets (SwiftUI+SwiftData app)
Hi Richard, Thank you for the response — that makes sense. I hadn’t yet experimented with fetchLimit / fetchOffset, but your answer confirms that pagination (or otherwise constraining the query result set) is the correct approach here, even when using LazyVStack. I appreciate the clarification and will experiment with limiting the dataset size to improve performance. Thanks again for taking the time to look into this.
Replies
Boosts
Views
Activity
Jan ’26
Comment on Best practice for centralizing SwiftData query logic and actions in an @Observable manager?
Thank you @DTS Engineer. I filed FB21441693.
Replies
Boosts
Views
Activity
Jan ’26
Comment on onMove with hierarchical List or OutlineGroup
Not OP but I created FB21271207
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’25
Comment on How to place scrollable header content above a Table in SwiftUI?
Is there a way to do that in SwiftUI? (I apologize for spamming, I thought my comments didn't get through because I got "Your post couldn’t be saved. Please try again in a few minutes.")
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’25
Comment on How to place scrollable header content above a Table in SwiftUI?
Is there a way to do that in SwiftUI?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’25
Comment on How to place scrollable header content above a Table in SwiftUI?
Is there a way to do that in SwiftUI ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’25
Comment on How to place scrollable header content above a Table in SwiftUI?
Is there a way to do that in SwiftUI ?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’25