From c13d1a5d63f081feb0868cd7a620144c071b6837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 31 Jan 2016 15:39:29 +0100 Subject: [PATCH] Fix UserDefaults.dictionaryRepresentation --- Playgrounds/UserDefaults.playground/Contents.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Playgrounds/UserDefaults.playground/Contents.swift b/Playgrounds/UserDefaults.playground/Contents.swift index f72799362..90560d024 100644 --- a/Playgrounds/UserDefaults.playground/Contents.swift +++ b/Playgrounds/UserDefaults.playground/Contents.swift @@ -95,6 +95,7 @@ public class UserDefaults { // MARK: - Reading Default Values public var dictionaryRepresentation: [String: AnyObject] { + createTableIfNeeded() var dic = registrationDictionary for item in UserDefaultsItem.fetchAll(db) { dic[item.key] = item.value