You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, I have LocalStorage class which will take this "Storage()" class at the end of the tutorial and then access that object's references to get the data from UserDefaults values. For some reason, when I set a string in my code, it no longer builds/compiles. It works for booleans. An example below:
// make shift examplestructLocalStorage{
varstorage: Storageinit(storage: Storage){
self.storage = storage
}
funcex(){
storage.username = "travis"// will not compile... "Abort 6" storage.aBoolValue = true// without line above, it will compile
}
}
Thoughts? Also tested in a fresh project. It still does not compile. "Abort trap: 6"
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 1ed89c998b3db62a36ab915bb572f6ac
Issue Description:
I followed this guide on creating wrapped properties with user defaults:
https://www.vadimbulavin.com/advanced-guide-to-userdefaults-in-swift/
Now, I have LocalStorage class which will take this "Storage()" class at the end of the tutorial and then access that object's references to get the data from UserDefaults values. For some reason, when I set a string in my code, it no longer builds/compiles. It works for booleans. An example below:
Thoughts? Also tested in a fresh project. It still does not compile. "Abort trap: 6"
The text was updated successfully, but these errors were encountered: