I’m trying to setup mongoDB Realm following theiOS Tutorial (todo list) but I can’t get it working. This is my code.
import SwiftUI
import RealmSwift
let app = App(id: "tasktracker-qczfq")
@main
struct myApp: App {
var body: some Scene {
WindowGroup {
TabBarView()
}
}
}
It throws the error “Argument passed to call that takes no arguments” which makes sense because App is a protocol. How can I solve this issue?