I have a problem when running my app
Root.plist
<dict>
<key>Type</key>
<string>PSTextFieldSpecifier</string>
<key>Title</key>
<string>Token</string>
<key>Key</key>
<string>token_preference</string>
<key>DefaultValue</key>
<string>my_secret_token</string>
<key>IsSecure</key>
<true/>
<key>KeyboardType</key>
<string>Alphabet</string>
<key>AutocapitalizationType</key>
<string>None</string>
<key>AutocorrectionType</key>
<string>No</string>
</dict>
Then I want to read this value with following:
let appDefaults = UserDefaults.standard
fglTokenValue = appDefaults.string(forKey: "token_preference")
print("TOKEN VALUE = " + fglTokenValue!)
But it always shows nil value. Why? I have declared default value in Root.plist When I will go to settings can see that default values are applied.