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

Commit ec518cc

Browse files
committed
SwiftDoc for StoryboardSegueIdentifierProtocol
1 parent 05b8451 commit ec518cc

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Library/Core/StoryboardSegueIdentifierProtocol.swift

+31
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,62 @@
88

99
import Foundation
1010

11+
/// Segue identifier protocol
1112
public protocol StoryboardSegueIdentifierProtocol: Identifier {
13+
/// Type of the segue itself
1214
typealias SegueType
15+
16+
/// Type of the source view controller
1317
typealias SourceType
18+
19+
/// Type of the destination view controller
1420
typealias DestinationType
1521
}
1622

23+
/// Segue identifier
1724
public struct StoryboardSegueIdentifier<Segue, Source, Destination>: StoryboardSegueIdentifierProtocol {
25+
/// Type of the segue itself
1826
public typealias SegueType = Segue
27+
28+
/// Type of the source view controller
1929
public typealias SourceType = Source
30+
31+
/// Type of the destination view controller
2032
public typealias DestinationType = Destination
2133

34+
/// Identifier string of this segue
2235
public let identifier: String
2336

37+
/**
38+
Create a new identifier based on the identifier string
39+
40+
- returns: A new StoryboardSegueIdentifier
41+
*/
2442
public init(identifier: String) {
2543
self.identifier = identifier
2644
}
2745
}
2846

47+
/// Typed segue information
2948
public struct TypedStoryboardSegueInfo<Segue, Source, Destination>: StoryboardSegueIdentifierProtocol {
49+
/// Type of the segue itself
3050
public typealias SegueType = Segue
51+
52+
/// Type of the source view controller
3153
public typealias SourceType = Source
54+
55+
/// Type of the destination view controller
3256
public typealias DestinationType = Destination
3357

58+
/// Segue destination view controller
3459
public let destinationViewController: Destination
60+
61+
/// Segue identifier
3562
public let identifier: String
63+
64+
/// The original segue
3665
public let segue: Segue
66+
67+
/// Segue source view controller
3768
public let sourceViewController: Source
3869
}

0 commit comments

Comments
 (0)