DNSecure/Shared/Extensions/Bundle+displayName.swift

16 lines
317 B
Swift
Raw Permalink Normal View History

2020-09-25 09:42:31 +00:00
//
// BundleExtensions.swift
2020-09-25 09:54:07 +00:00
// DNSecure
2020-09-25 09:42:31 +00:00
//
// Created by Kenta Kubo on 9/25/20.
//
import Foundation
extension Bundle {
var displayName: String? {
self.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String
?? self.object(forInfoDictionaryKey: "CFBundleName") as? String
}
}