{"action":"closed","issue":{"url":"https://api.github.com/repos/objcio/advanced-swift/issues/4","repository_url":"https://api.github.com/repos/objcio/advanced-swift","labels_url":"https://api.github.com/repos/objcio/advanced-swift/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/objcio/advanced-swift/issues/4/comments","events_url":"https://api.github.com/repos/objcio/advanced-swift/issues/4/events","html_url":"https://github.com/objcio/advanced-swift/issues/4","id":156780313,"number":4,"title":"Dictionaries and Sets chapter. Compilation Error.","user":{"login":"mkondakov","id":3126354,"avatar_url":"https://avatars.githubusercontent.com/u/3126354?v=3","gravatar_id":"","url":"https://api.github.com/users/mkondakov","html_url":"https://github.com/mkondakov","followers_url":"https://api.github.com/users/mkondakov/followers","following_url":"https://api.github.com/users/mkondakov/following{/other_user}","gists_url":"https://api.github.com/users/mkondakov/gists{/gist_id}","starred_url":"https://api.github.com/users/mkondakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkondakov/subscriptions","organizations_url":"https://api.github.com/users/mkondakov/orgs","repos_url":"https://api.github.com/users/mkondakov/repos","events_url":"https://api.github.com/users/mkondakov/events{/privacy}","received_events_url":"https://api.github.com/users/mkondakov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-25T15:30:27Z","updated_at":"2016-08-23T18:51:25Z","closed_at":"2016-08-23T18:51:25Z","body":"```swift\r\nprotocol Setting {\r\n  func settingsView() -> UIView\r\n}\r\n```\r\nWe can now define a dictionary of keys and values. The keys are the names of the\r\nsettings, and the values are, well, the values of the settings. We define the dictionary\r\nwith let, which means that we can never modify it:\r\n```swift\r\nlet defaultSettings: [String:Setting] = [\r\n  \"Airplane Mode\": true,\r\n  \"Name\": \"My iPhone\",\r\n]\r\n```\r\n\r\nCompilation Error here.\r\n'Bool' and 'String' do not conform to protocol 'Setting'"}}
{"actor":{"display_login":"ole"}}