Refinements to onboarding personalisation flow.

Fix incorrect fonts and use autocapitalization on the display name field.
Fix bug where authentication view controller would become active again after registration.
Improve EffectsView API.
This commit is contained in:
Doug
2022-03-25 12:48:08 +00:00
parent e1b91b9076
commit 7b043fabcf
6 changed files with 38 additions and 29 deletions
@@ -28,7 +28,7 @@ struct EffectsView: UIViewRepresentable {
// MARK: - Public
enum EffectsType {
enum Effect {
/// A confetti drop effect from the top centre of the screen.
case confetti
/// No effect will be shown.
@@ -36,7 +36,7 @@ struct EffectsView: UIViewRepresentable {
}
/// The type of effects to be shown in the view.
var effectsType: EffectsType = .none
var effect: Effect
// MARK: - Lifecycle
@@ -52,7 +52,7 @@ struct EffectsView: UIViewRepresentable {
// MARK: - Private
private func makeScene() -> EffectsScene? {
switch effectsType {
switch effect {
case .confetti:
return EffectsScene.confetti(with: theme)
case .none: