From 58b0ff3d32f4c4612d41cbb5e29826a88c0b2122 Mon Sep 17 00:00:00 2001 From: Sergey Gultyayev Date: Thu, 16 May 2024 17:03:23 +0200 Subject: [PATCH] Fallback to non-suffixed value first --- src/ios/LottieSplashScreen.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ios/LottieSplashScreen.swift b/src/ios/LottieSplashScreen.swift index a25e5dd8..49d387ae 100644 --- a/src/ios/LottieSplashScreen.swift +++ b/src/ios/LottieSplashScreen.swift @@ -263,9 +263,9 @@ import Lottie var preferenceValue = "" if #available(iOS 12.0, *) { if viewController.traitCollection.userInterfaceStyle == .dark { - preferenceValue = commandDelegate?.settings[(basePreferenceName + "Dark").lowercased()] as? String ?? defaultValue + preferenceValue = commandDelegate?.settings[(basePreferenceName + "Dark").lowercased()] as? String ?? "" } else { - preferenceValue = commandDelegate?.settings[(basePreferenceName + "Light").lowercased()] as? String ?? defaultValue + preferenceValue = commandDelegate?.settings[(basePreferenceName + "Light").lowercased()] as? String ?? "" } }