Models now handle sign up presentations

This commit is contained in:
Stuart Breckenridge
2020-12-06 07:58:20 +08:00
parent 56f26c0c3d
commit 32506b25ae
12 changed files with 123 additions and 49 deletions

View File

@@ -12,13 +12,14 @@ import RSCore
import RSWeb
import Secrets
class AddFeedbinViewModel: ObservableObject {
class AddFeedbinViewModel: ObservableObject, AddAccountSignUp {
@Published var isAuthenticating: Bool = false
@Published var accountUpdateError: AccountUpdateErrors = .none
@Published var showError: Bool = false
@Published var username: String = ""
@Published var password: String = ""
@Published var canDismiss: Bool = false
@Published var showPassword: Bool = false
func authenticateFeedbin() {
isAuthenticating = true