swift-storybook
swift-storybook is a Swift library designed to view SwiftUI UI components in a catalog-style format directly within an iOS application. It automatically collects and displays UI components defined using native Preview macros at runtime, eliminating the need for extensive manual setup. To use the library, developers simply install the package and add the Storybook entry point view to their app's content. The tool supports previews defined in application executable modules, dynamic frameworks, and static libraries. For static libraries, it may require the -allload linker flag to ensure all preview symbols are included in the binary. This solution provides an efficient workflow for designing, reviewing, and troubleshooting UI components by offering a centralized interface to inspect various component states and configurations without launching the main application UI. The library is maintained under the MIT license and works seamlessly with SwiftUI to visualize component layouts, colors, and behaviors during dev