Skip to content

Commit 98063f0

Browse files
committed
Added: DiffableTextKit/Cache comments.
1 parent ce8f70d commit 98063f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/DiffableTextKit/Support/Cache.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ public final class Cache<Key, Value> where Key: Hashable, Value: AnyObject {
7070
// MARK: * NSKey
7171
//*========================================================================*
7272

73+
/// A key compatible with NSCache.
74+
///
75+
/// NSCache keys do not use Swift's Hashable protocol, instead,
76+
/// they must subclass NSObject and override hash and isEqual(\_:).
77+
///
7378
@usableFromInline final class NSKey: NSObject {
7479

7580
//=--------------------------------------------------------------------=

0 commit comments

Comments
 (0)