Stop Rebuilding Auth, Onboardi... Note

Stop Rebuilding Auth, Onboarding, and Dashboards: DesignFoundationPro

This document introduces DesignFoundationPro, a commercial add-on to the free DesignFoundation core package. Pro provides pre-built components like blocks, screens, and navigation shells, significantly reducing development time, especially when using AI coding agents. It ensures consistency in design elements like spacing and behavior across different screens. Pro builds upon Foundation, offering a unified import for all features. The package is available for purchase with lifetime licenses and optional annual updates. Before buying, users can preview all components in the free DFPlayground macOS app.Adding DesignFoundationPro requires including its repository URL in the project and importing it as a single product. The tutorial recommends using the .workspace theme for data-dense product UIs, which adapts typography and surface tokens for platforms like macOS. While custom branding is possible, some composition roots hard-code the workspace theme.The Pro package simplifies common UI patterns such as sidebar navigation with pre-built shells like DFStandardSidebarShell and DFAdaptiveShell, saving developers from rewriting this complex logic. It also offers reusable authentication blocks like DFSignInBlock and DFOTPBlock, which handle forms, validation, and social logins with configurable callbacks. Onboarding flows are streamlined with the DFOnboardingFlow component, managed by a single configuration object that handles state persistence and navigation across multiple steps.For data visualization, Pro includes chart blocks like DFLineChartBlock and DFBarChartBlock that leverage Swift Charts and automatically adopt theme colors, incorporating features like period pickers and loading states. Finally, DFDataTable addresses the challenge of creating native-feeling data tables across different platforms, offering keyboard navigation on macOS and a scrollable view on iPhone. The DFDataTable component is part of Foundation but becomes particularly useful in Pro-scale applications.