Skip to content

Commit

Permalink
Merge pull request #10 from domhof/feature/app_display_name
Browse files Browse the repository at this point in the history
Add appDisplayName static var.
  • Loading branch information
Esqarrouth committed Dec 6, 2015
2 parents d3f027e + f44e69b commit 1420847
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/EZSwiftExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ import UIKit

public struct ez {

/// EZSwift Extensions
public static var appDisplayName: String {
return NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleDisplayName") as? String
?? NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleName") as! String
}

/// EZSwift Extensions
public static var appVersion: String {
return NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleShortVersionString") as! String
Expand Down

0 comments on commit 1420847

Please sign in to comment.