Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit 564a4ba

Browse files
committed
SwiftDoc for ReuseIdentifierProtocol
1 parent ec518cc commit 564a4ba

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Library/Core/ReuseIdentifierProtocol.swift

+12
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,27 @@
88

99
import Foundation
1010

11+
/// Reuse identifier protocol
1112
public protocol ReuseIdentifierProtocol: Identifier {
13+
/// Type of this reuseable
1214
typealias ReusableType
1315
}
1416

17+
/// Reuse identifier
1518
public struct ReuseIdentifier<Reusable>: ReuseIdentifierProtocol {
19+
/// Type of this reuseable
1620
public typealias ReusableType = Reusable
1721

22+
/// String identifier of this reusable
1823
public let identifier: String
1924

25+
/**
26+
Create a new ReuseIdentifier based on the string identifier
27+
28+
- parameter identifier: The string identifier for this reusable
29+
30+
- returns: A new ReuseIdentifier
31+
*/
2032
public init(identifier: String) {
2133
self.identifier = identifier
2234
}

0 commit comments

Comments
 (0)