From 0e394d36ba253b770bc6986d0c8610e2963afef1 Mon Sep 17 00:00:00 2001 From: Adrian Castro <22133246+castdrian@users.noreply.github.com> Date: Mon, 24 Jun 2024 10:29:46 +0200 Subject: [PATCH] fix: classification pronounciation --- CoreDex/Views/DexEntryView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoreDex/Views/DexEntryView.swift b/CoreDex/Views/DexEntryView.swift index f51f355..47cdfd4 100644 --- a/CoreDex/Views/DexEntryView.swift +++ b/CoreDex/Views/DexEntryView.swift @@ -376,7 +376,7 @@ struct DexEntryView: View { print(error.localizedDescription) } - let classificationText = pokemon.classification != nil ? "The \(pokemon.classification!)!" : "" + let classificationText = pokemon.classification != nil ? "The \(pokemon.classification!.split(separator: " ").dropLast().joined(separator: " ")) POH-kee-MAHN!" : "" let typeText = pokemon.types.count == 2 ? "\(pokemon.types.first!.name) and \(pokemon.types.last!.name) type!" : "\(pokemon.types.first!.name) type!" let preevolutionText = (pokemon.preevolutions?.first != nil) ? "The evolution of \(pokemon.preevolutions!.first!.species)!" : "" let flavorText = pokemon.flavorTexts.first?.flavor ?? ""