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,12 +12,13 @@ import RSCore
import RSWeb
import Secrets
class AddFeedlyViewModel: ObservableObject, OAuthAccountAuthorizationOperationDelegate {
class AddFeedlyViewModel: ObservableObject, OAuthAccountAuthorizationOperationDelegate, 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 showPassword: Bool = false
func authenticateFeedly() {
isAuthenticating = true