From 1c6e5cb30c00527de4397d27cb35c5db5560e2ea Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Sat, 24 Sep 2022 16:58:51 -0700 Subject: [PATCH] [PersistentDictionary] Add CustomReflectable conformance --- .../PersistentDictionary+CustomReflectable.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Sources/PersistentCollections/PersistentDictionary/PersistentDictionary+CustomReflectable.swift diff --git a/Sources/PersistentCollections/PersistentDictionary/PersistentDictionary+CustomReflectable.swift b/Sources/PersistentCollections/PersistentDictionary/PersistentDictionary+CustomReflectable.swift new file mode 100644 index 00000000..fde019a9 --- /dev/null +++ b/Sources/PersistentCollections/PersistentDictionary/PersistentDictionary+CustomReflectable.swift @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the Swift Collections open source project +// +// Copyright (c) 2022 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// +//===----------------------------------------------------------------------===// + +extension PersistentDictionary: CustomReflectable { + public var customMirror: Mirror { + Mirror(self, unlabeledChildren: self, displayStyle: .dictionary) + } +}