Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit c278635

Browse files
committed
1 parent 2859299 commit c278635

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

App/Views/OpenRealmView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import SwiftUI
22
import RealmSwift
33

4-
/// Called when login completes. Opens the realm asynchronously and navigates to the Items screen.
4+
/// Called when login completes. Opens the realm and navigates to the Items screen.
55
struct OpenRealmView: View {
6-
@AsyncOpen(appId: theAppConfig.appId, timeout: 2000) var asyncOpen
6+
@AutoOpen(appId: theAppConfig.appId, timeout: 2000) var autoOpen
77
// We must pass the user, so we can set the user.id when we create Item objects
88
@State var user: User
99
@State var showMyItems = true
@@ -12,9 +12,9 @@ struct OpenRealmView: View {
1212
@Environment(\.realmConfiguration) private var config
1313

1414
var body: some View {
15-
switch asyncOpen {
15+
switch autoOpen {
1616
case .connecting:
17-
// Starting the Realm.asyncOpen process.
17+
// Starting the Realm.autoOpen process.
1818
// Show a progress view.
1919
ProgressView()
2020
case .waitingForUser:

0 commit comments

Comments
 (0)