Skip to content

Commit

Permalink
Fallback to non-suffixed value first
Browse files Browse the repository at this point in the history
  • Loading branch information
gultyayev committed May 16, 2024
1 parent e6f208e commit 58b0ff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ios/LottieSplashScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? ""
}
}

Expand Down

0 comments on commit 58b0ff3

Please sign in to comment.