I experience a problem while accessing my settings. I added a setting bundle to my Xcode project :

I added the following swift code to access the name_preference key :

I experience a problem while accessing my settings. I added a setting bundle to my Xcode project :

I added the following swift code to access the name_preference key :

Copyright © 2021 Jogjafile Inc.
UserDefaults crash on missing preference key
Explicit unwrapping is dangerous!: what happens if the string is empty?
Bad:
Using
string:Using
object:Test: Go to Settings and enter a string:
► Find this solution on GitHub and additional details on Swift Recipes.