I tried to create a View with generic inside an other View, and it works fine with build and run. But when I tried to review it, Xcode 15.1 showed an error.
CompileDylibError: Failed to build AView.swift Compiling failed: cannot find 'SubListView' in scope
struct AView: View {
struct BView<T: DisplayData>: View {
}
}
I need to move the BView out of AView to fix the issues. I think it is a preview bug as it works well on build and run.