Skip to content

Commit

Permalink
Apply Bluehawk replace and regenerate snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
dacharyc committed Nov 10, 2023
1 parent 9f29790 commit 26c0063
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion examples/ios/Examples/Sync.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// :replace-start: {
// "terms": {
// "SyncExamples_": ""
// "SyncExamples_": "",
// "FlexibleSync_": ""
// }
// }
import RealmSwift
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ try await realm.syncSession?.wait(for: .download)

// Add data locally
try realm.write {
realm.create(FlexibleSync_Task.self, value: [
realm.create(Task.self, value: [
"taskName": "Review proposal",
"assignee": "Emma",
"completed": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ realm.syncSession?.wait(for: .download, block: { _ in
// Add data locally
do {
try realm.write {
realm.create(FlexibleSync_Task.self, value: [
realm.create(Task.self, value: [
"taskName": "Review proposal",
"assignee": "Emma",
"completed": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func getRealm() async throws -> Realm {
// authenticated to this instance of your app,
// and what object types this database should manage.
var configuration = user.flexibleSyncConfiguration()
configuration.objectTypes = [FlexibleSync_Task.self, FlexibleSync_Team.self]
configuration.objectTypes = [Task.self, Team.self]

// Open a Realm with this configuration.
let realm = try await Realm(configuration: configuration)
Expand Down

0 comments on commit 26c0063

Please sign in to comment.