Skip to content

Commit

Permalink
fix: bundle application name issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phlpsong committed Jan 19, 2024
1 parent 87215d5 commit 502a346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Easydict/Feature/Utility/Swift/Bundle/Bundle+AppInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import Foundation

extension Bundle {
var applicationName: String {
if let displayName: String = infoDictionary?["CFBundleDisplayName"] as? String {
if let displayName: String = object(forInfoDictionaryKey: "CFBundleDisplayName") as? String {
return displayName
} else if let name: String = infoDictionary?["CFBundleName"] as? String {
} else if let name: String = object(forInfoDictionaryKey: "CFBundleName") as? String {
return name
}
if let executableURL {
Expand Down

0 comments on commit 502a346

Please sign in to comment.