Skip to content

Commit

Permalink
Add bundleId extension
Browse files Browse the repository at this point in the history
  • Loading branch information
yllfejziu committed May 14, 2024
1 parent 86f2685 commit 001c465
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/Core/Extensions/UIKit/UIApplication+PovioKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public extension UIApplication {
}

public extension UIApplication {
/// Returns bundle id
var bundleId: String {
Bundle.main.object(forInfoDictionaryKey: "CFBundleIdentifier") as? String ?? "/"
}

/// Returns app name
var name: String {
Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as? String ?? "/"
Expand Down

0 comments on commit 001c465

Please sign in to comment.