From eccebd62ec00fa7ac16018f390013d1e696faf9b Mon Sep 17 00:00:00 2001 From: Nicolas Buquet Date: Thu, 9 Jan 2025 20:12:48 +0100 Subject: [PATCH] Onboarding successful - replace deprecated `StyleText` with `Text(AttributedString)` --- .../View/OnboardingCongratulationsScreen.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RiotSwiftUI/Modules/Onboarding/Congratulations/View/OnboardingCongratulationsScreen.swift b/RiotSwiftUI/Modules/Onboarding/Congratulations/View/OnboardingCongratulationsScreen.swift index 01ba74435..cb57e51ae 100644 --- a/RiotSwiftUI/Modules/Onboarding/Congratulations/View/OnboardingCongratulationsScreen.swift +++ b/RiotSwiftUI/Modules/Onboarding/Congratulations/View/OnboardingCongratulationsScreen.swift @@ -71,8 +71,8 @@ struct OnboardingCongratulationsScreen: View { .foregroundColor(.white) // Tchap: replace deprecated `StyleText` with `Text(AttributedString)` - StyledText(viewModel.viewState.messageString) -// Text(AttributedString(viewModel.viewState.messageString)) +// StyledText(viewModel.viewState.messageString) + Text(AttributedString(viewModel.viewState.messageString)) .font(theme.fonts.body) .foregroundColor(.white) .multilineTextAlignment(.center)