after i import swiftui, there's no @observable?? it shows unknown attribute...
and i cant import observation or swiftdata
import Foundation import SwiftUI
@Observable
class BusinessModel{
var businesses = [Business]()
var selectedBusiness: Business?
var input: String = ""
var service = dataservice()
}
If you cannot import Observation or import SwiftData it's because you do not have the required environment/target settings, such as target iOS 17, macOS 14. As mentioned in the comments in your StackOverflow question.