Read Preview files with QuickLook in SwiftUI.

Read How do I show QLPreviewPanel with SwiftUI on macOS?.

Read Configuring a new target in your project in Xcode. Exactly I was interested in Configure a dependency between two targets.