Architecture for daily content

Our app displays a calendar of the week ahead. On tapping a date, it offers three pieces of text for that date. These pieces of text can be quite long.

What is the best overall architecture?

Reading the documentation and watching the videos, it seems to be a NavigationSplitView whose items are the dates, and whose detail is a TabView which in turn contains three TextViews.

Is this right?

Answered by Frameworks Engineer in 891266022

I'd suggest NavigationStack here, rather than NavigationSplitView — NavigationSplitView is better for cross-fading highly graphical cells to graphical content. NavigationStack also lets you use NavigationPath, rather than just selection, so the UI for your root view can be more expressive (and you can explicitly push a value onto the navigation stack).

Depending on the specific content, TabView might be the right approach, but you might want to use something like the Infographic layout, as mentioned in https://developer.apple.com/la/videos/play/wwdc2023/10138/.

Accepted Answer

I'd suggest NavigationStack here, rather than NavigationSplitView — NavigationSplitView is better for cross-fading highly graphical cells to graphical content. NavigationStack also lets you use NavigationPath, rather than just selection, so the UI for your root view can be more expressive (and you can explicitly push a value onto the navigation stack).

Depending on the specific content, TabView might be the right approach, but you might want to use something like the Infographic layout, as mentioned in https://developer.apple.com/la/videos/play/wwdc2023/10138/.

Thank you. This kind of suggestion of reasons for choosing one approach over another is exactly why these forums are so helpful.

Architecture for daily content
 
 
Q