I have some problems with SwiftUI previews not working in views that used some of the shared code (shared with cocoapod). The diagnostics simply state, that the preview crashed. I have been looking through sample projects trying to find anyone that has got them working. Curiously, none of the projects of @John O'Reilly seem to contain any complex previews, and neither did the other projects that I found. Can someone confirm to me that SwiftUI previews even work with code shared through cocoapods? Can someone point me to a working example?