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

store cgpoint in userdefaults iOS swift

libc++abi: terminating due to uncaught exception of type NSException iOS swift