AceCentre / IPAChat

A MVP to demonstrate communicating using IPA
https://testflight.apple.com/join/3kPO65Ol
1 stars 2 forks source link

fix: 'View' is ambiguous for type lookup in this context #2

Closed xyqjay closed 6 months ago

xyqjay commented 11 months ago

There is also a View declaration in SQLite, public struct View: SchemaType importing SwiftUI and SQLite in the same file will cause naming conflicts, and the compiler cannot identify which View you are using.

You have to specify the module from which to lookup object type. Call SwiftUI.View @SwiftUI.Binding SQLite.View

Or You can refactor ContentView.swift to put the DB related operations in an extra file such as DB.swift, so you don't have to import SQLite in ContentView.swift

willwade commented 11 months ago

thankyou! Thats very kind. And amazing.. I'm actually mid-refactoring so I think I can do this. I'll be in touch for any more support which is possible