@@ -44,10 +44,10 @@ public struct StoryboardSegueIdentifier<Segue, Source, Destination>: StoryboardS
4444 }
4545
4646 /// Create a new StoryboardSegue based on the identifier and source view controller
47- public func storyboardSegueWithSource ( sourceViewController : Source )
47+ public func storyboardSegue ( withSource source : Source )
4848 -> StoryboardSegue < Segue , Source , Destination >
4949 {
50- return StoryboardSegue ( identifier: self , sourceViewController : sourceViewController )
50+ return StoryboardSegue ( identifier: self , source : source )
5151 }
5252}
5353
@@ -63,7 +63,7 @@ public struct TypedStoryboardSegueInfo<Segue, Source, Destination>: StoryboardSe
6363 public typealias DestinationType = Destination
6464
6565 /// Segue destination view controller
66- public let destinationViewController : Destination
66+ public let destination : Destination
6767
6868 /// Segue identifier
6969 public let identifier : String
@@ -72,7 +72,7 @@ public struct TypedStoryboardSegueInfo<Segue, Source, Destination>: StoryboardSe
7272 public let segue : Segue
7373
7474 /// Segue source view controller
75- public let sourceViewController : Source
75+ public let source : Source
7676}
7777
7878/// Segue with identifier and source view controller
@@ -81,15 +81,15 @@ public struct StoryboardSegue<Segue, Source, Destination> {
8181 public let identifier : StoryboardSegueIdentifier < Segue , Source , Destination >
8282
8383 /// Segue source view controller
84- public let sourceViewController : Source
84+ public let source : Source
8585
8686 /**
8787 Create a new segue based on the identifier and source view controller
8888
8989 - returns: A new StoryboardSegue
9090 */
91- public init ( identifier: StoryboardSegueIdentifier < Segue , Source , Destination > , sourceViewController : Source ) {
91+ public init ( identifier: StoryboardSegueIdentifier < Segue , Source , Destination > , source : Source ) {
9292 self . identifier = identifier
93- self . sourceViewController = sourceViewController
93+ self . source = source
9494 }
9595}
0 commit comments