mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 09:32:52 +02:00
Use UserIndicatorPresenter for onboarding personalisation.
Remove the service from the display name screen to match the avatar screen. Add a loading indicator to PhotoPickerPresenter. Fix layout issue when selecting non-square avatar image.
This commit is contained in:
@@ -19,14 +19,19 @@ import Foundation
|
||||
// MARK: View model
|
||||
|
||||
enum OnboardingDisplayNameViewModelResult {
|
||||
// Can probably be removed
|
||||
case save(String)
|
||||
case skip
|
||||
}
|
||||
|
||||
// MARK: View
|
||||
|
||||
struct OnboardingDisplayNameViewState: BindableState {
|
||||
var isWaiting = false
|
||||
var bindings: OnboardingDisplayNameBindings
|
||||
var validationErrorMessage: String?
|
||||
|
||||
var textFieldFooterMessage: String {
|
||||
validationErrorMessage ?? VectorL10n.onboardingDisplayNameHint
|
||||
}
|
||||
}
|
||||
|
||||
struct OnboardingDisplayNameBindings {
|
||||
@@ -35,6 +40,7 @@ struct OnboardingDisplayNameBindings {
|
||||
}
|
||||
|
||||
enum OnboardingDisplayNameViewAction {
|
||||
case validateDisplayName
|
||||
case save
|
||||
case skip
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user