Skip to content

Commit

Permalink
馃毇Disable Sign Up button
Browse files Browse the repository at this point in the history
  • Loading branch information
phatblat committed Aug 25, 2021
1 parent df28a11 commit 4e0f4ee
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ in SwiftUI.

v1 presented at [MongoDB.live 2021](https://app.swapcard.com/widget/event/mongodb-live-2021/planning/UGxhbm5pbmdfNDc3Nzcw).
v2 presented at [Denver Cocoaheads](https://www.meetup.com/CocoaheadsDenver/)
and (soon) at [360|iDev 2021](https://360idev.com/session/combine-ing-mongodb-realm-with-swiftui/).
and at [360|iDev 2021](https://360idev.com/session/combine-ing-mongodb-realm-with-swiftui/).

## 鈿狅笍 Caveats

> TL;DR: Only `Testuser` works.
This app uses a dynamic partition value of the current user's ID.
However, I have not yet gotten this to work with the new Realm `@AsyncOpen`
property wrapper. To work around this the partition value is hard-coded
with the value of `Testuser`.

## 馃摳 Screenshots

Expand Down
3 changes: 2 additions & 1 deletion RealmTaskTracker/AppState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import RealmSwift
import Combine
import Foundation

/// Core app logic including Realm app and Combine publishers.
/// Core app logic including Realm app and Combine publishers. No longer used.
/// TODO: Move syng logging and error handling to
final class AppState {
/// Cancellables to be retained for any Future.
var cancellables = Set<AnyCancellable>()
Expand Down
3 changes: 3 additions & 0 deletions RealmTaskTracker/Views/LoginView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ struct LoginView: View {
}
}

/*
FIXME: Re-enable once Testuser's ID is no longer hard-coded as the partition value.
Button("Sign Up") {
signUp { user in
navigationTag = "asyncOpen"
}
}
*/
}
Text(message)
NavigationLink(destination: LazyView(AsyncOpenView()),
Expand Down

0 comments on commit 4e0f4ee

Please sign in to comment.