Getting error while building the project

Error:App is ambiguous for type lookup in this context

code in UnqueHolidayApp

import SwiftUI import RealmSwift

@main struct UniqueHolidayApp: App { init() { migrateRealmIfNeeded() }

var body: some Scene {
    WindowGroup {
        ContentView()
    }
}

private func migrateRealmIfNeeded() {
    let config = Realm.Configuration(
        schemaVersion: 1,
        migrationBlock: { migration, oldSchemaVersion in
            if oldSchemaVersion < 1 {
                // Realm will handle changes automatically for simple additions/removals
            }
        }
    )
    Realm.Configuration.defaultConfiguration = config
}

}

Getting error while building the project
 
 
Q