Knowledgebase

SwiftUI Navigation and Presentation Print

  • mobiledevelopment, mobile, restore, woocommerce, guide, howto, solution, zillionkinghost
  • 0

Moving between screens.

WHAT MODERN NAVIGATION PROVIDES

A stack driven by state, rather than by imperative pushing.

WHY THAT MATTERS

The navigation state can be saved, restored and driven by links or notifications.

WHAT THAT ENABLES

Deep linking, and restoring where the user was.

WHAT TO MODEL

The navigation path as data.

WHAT PRESENTATION OPTIONS EXIST

Sheets, for tasks Full-screen covers, for immersive tasks Alerts, for decisions Confirmation prompts, for destructive actions

WHAT TO USE ALERTS FOR

Decisions requiring the user's attention, sparingly.

WHY SPARINGLY

They interrupt everything.

WHAT TO HANDLE

Dismissal by gesture, which users perform mid-task.

WHAT TO DO ABOUT UNSAVED WORK

Confirm before discarding.

WHAT TO TEST

Entering every screen directly by link Returning after the application was terminated Rapid navigation

WHAT TO AVOID

Presenting from a view that may disappear Several presentations competing


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot