mongoDB Realm iOS Tutorial Problem

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")

struct myApp: App {
    var body: some Scene {
        WindowGroup {

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?

@Martin122 We just released a SwiftUI tutorial here -

I think this should help you. Let us know what you think

The problem was using SPM to install RealmSwift instead of Cocoa-Pods. Took me a while to figure it out.