Feedback/DSFullPageInterruption

DSFullPageInterruption

feedback
since 1.2.0

Full-screen modal overlay for critical interruptions like session expiry.

iOSmacOS

Purpose

Use for critical situations requiring immediate user attention before continuing. Blocks all interaction.

Props

PropTypeDefaultDescription
isPresentedreqBoolControls visibility
titlereqStringMain heading
messageString?nilOptional body text
primaryLabelreqStringPrimary button text
primaryActionreq(() -> Void)Primary button action
secondaryLabelString?nilOptional secondary button text
secondaryAction(() -> Void)?nilOptional secondary action
accessibilityLabelString?nilOptional accessibility label

Examples

Session expired

Force user to sign in again.

swift
DSFullPageInterruption(
    isPresented: sessionExpired,
    title: "Session Expired",
    message: "Your session has timed out. Please sign in again to continue.",
    primaryLabel: "Sign In",
    primaryAction: { navigateToLogin() }
)

Network error

Critical error with retry option.

swift
DSFullPageInterruption(
    isPresented: networkError,
    title: "Connection Lost",
    message: "Unable to connect to the server. Please check your internet connection.",
    primaryLabel: "Retry",
    primaryAction: { retryConnection() },
    secondaryLabel: "Go Offline",
    secondaryAction: { enableOfflineMode() }
)

Usage Guidelines

  • Use only for critical, blocking situations
  • Provide clear explanation of the problem
  • Always offer a primary action to resolve
  • Consider secondary action for alternatives

Related Components