Skip to content

Commit

Permalink
Chore/Add bundleId extension (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
yllfejziu authored May 15, 2024
1 parent 239c505 commit 3cd5e27
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 3cd5e27

Please sign in to comment.