A project is in the latest version Xcode and swift. I have a main SwiftUI View as a home page like this:
import SwiftUI
import swiftScan //pods library
struct ContentView: View {
var body: some View {
NavigationView {
ZStack{
NavigationLink(destination: LBXScanView()) {
}
}
}
}
LBXScanView is a UIView of a pod after I "install pods" in the project. It gives an error saying, "Generic struct 'NavigationLink' requires that 'LBXScanView' conform to 'View'". I do not want to change the origin codes in the pods as it may need to use a few pods.
Is there any way only to change the SwiftUI View? or something else? Any help will be appreciated.