Skip to content

Commit 5363ac5

Browse files
committed
SwiftDoc for UIViewController
1 parent c2851b7 commit 5363ac5

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Library/UIKit/UIViewController+NibResource.swift

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ import Foundation
1010
import UIKit
1111

1212
public extension UIViewController {
13+
/**
14+
Returns a newly initialized view controller with the nib resource (R.nib.*).
15+
16+
- parameter nib: The name of the nib resource (R.nib.*) to associate with the view controller.
17+
18+
- returns: A newly initialized UIViewController object.
19+
*/
1320
public convenience init(nib: NibResource) {
1421
self.init(nibName: nib.name, bundle: nib.bundle)
1522
}

Library/UIKit/UIViewController+StoryboardSegueIdentifierProtocol.swift

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ import Foundation
1010
import UIKit
1111

1212
public extension UIViewController {
13+
/**
14+
Initiates the segue with the specified identifier (R.segue.*) from the current view controller'€™s storyboard file.
15+
16+
- parameter identifier: The R.segue.* that identifies the triggered segue.
17+
- parameter segue: The object that you want to use to initiate the segue. This object is made available for informational purposes during the actual segue.
18+
19+
- SeeAlso: Library for typed block based segues: https://github.com/tomlokhorst/SegueManager
20+
*/
1321
public func performSegueWithIdentifier<Identifier: StoryboardSegueIdentifierProtocol>(identifier: Identifier, sender: AnyObject?) {
1422
performSegueWithIdentifier(identifier.identifier, sender: sender)
1523
}

0 commit comments

Comments
 (0)