{"action":"created","issue":{"url":"https://api.github.com/repos/radex/SwiftyUserDefaults/issues/158","repository_url":"https://api.github.com/repos/radex/SwiftyUserDefaults","labels_url":"https://api.github.com/repos/radex/SwiftyUserDefaults/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/radex/SwiftyUserDefaults/issues/158/comments","events_url":"https://api.github.com/repos/radex/SwiftyUserDefaults/issues/158/events","html_url":"https://github.com/radex/SwiftyUserDefaults/issues/158","id":326778476,"node_id":"MDU6SXNzdWUzMjY3Nzg0NzY=","number":158,"title":"Keep Getting nil for String","user":{"login":"spaz926","id":990135,"node_id":"MDQ6VXNlcjk5MDEzNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/990135?v=4","gravatar_id":"","url":"https://api.github.com/users/spaz926","html_url":"https://github.com/spaz926","followers_url":"https://api.github.com/users/spaz926/followers","following_url":"https://api.github.com/users/spaz926/following{/other_user}","gists_url":"https://api.github.com/users/spaz926/gists{/gist_id}","starred_url":"https://api.github.com/users/spaz926/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spaz926/subscriptions","organizations_url":"https://api.github.com/users/spaz926/orgs","repos_url":"https://api.github.com/users/spaz926/repos","events_url":"https://api.github.com/users/spaz926/events{/privacy}","received_events_url":"https://api.github.com/users/spaz926/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-27T01:00:09Z","updated_at":"2018-05-31T20:29:06Z","closed_at":null,"author_association":"NONE","body":"I have a file called Preferences.swift:\r\n\r\n`extension DefaultsKeys { static let bearerToken = DefaultsKey<String?>(\"bearerToken\") }`\r\n\r\nI'm trying to show the default value in a Preferences window. \r\n`bearerTokenTextField.stringValue = Defaults[.bearerToken] ?? \"\"`\r\n\r\nWhere bearerTokenTextField is the text field I'm trying to display the information in.\r\n\r\nI keep getting \"Unexpectedly found nil while unwrapping\"\r\n\r\nI've also tried to use the `Defaults[\"bearerToken\"].stringValue` and get the same error.\r\n\r\nAny clue what I'm doing wrong?"},"comment":{"url":"https://api.github.com/repos/radex/SwiftyUserDefaults/issues/comments/393669260","html_url":"https://github.com/radex/SwiftyUserDefaults/issues/158#issuecomment-393669260","issue_url":"https://api.github.com/repos/radex/SwiftyUserDefaults/issues/158","id":393669260,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzY2OTI2MA==","user":{"login":"spaz926","id":990135,"node_id":"MDQ6VXNlcjk5MDEzNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/990135?v=4","gravatar_id":"","url":"https://api.github.com/users/spaz926","html_url":"https://github.com/spaz926","followers_url":"https://api.github.com/users/spaz926/followers","following_url":"https://api.github.com/users/spaz926/following{/other_user}","gists_url":"https://api.github.com/users/spaz926/gists{/gist_id}","starred_url":"https://api.github.com/users/spaz926/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spaz926/subscriptions","organizations_url":"https://api.github.com/users/spaz926/orgs","repos_url":"https://api.github.com/users/spaz926/repos","events_url":"https://api.github.com/users/spaz926/events{/privacy}","received_events_url":"https://api.github.com/users/spaz926/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T20:29:06Z","updated_at":"2018-05-31T20:29:06Z","author_association":"NONE","body":"Ok. So it seems the underlying issue is nothing is getting saved in ~/Library/Preferences"}}
{"actor":{"display_login":"spaz926"}}