How to get a key value from info.plist iOS swift

Solution:


  func AppkeyPath() -> (NSString) {
        return Bundle.main.object(forInfoDictionaryKey:"keyName") as! NSString
    }

Add the above function to your utils and add the "keyName" in your info.plist

Comments

Popular posts from this blog

Convert NsNumber, NSDate to String in iOS Swift

store cgpoint in userdefaults iOS swift