This PR contains all the work related to setting up this project as required to implement the [Assignment](https://repo.rock-n-code.com/rock-n-code/deep-linking-assignment/wiki/Assignment) on top, as intended. To summarise this work: - [x] created a new **Xcode** project; - [x] cloned the `Wikipedia` app and inserted it into the **Xcode** project; - [x] created the `Locations` app and also, its `Libraries` package; - [x] created the `Shared` package to share dependencies between the apps; - [x] added a `Makefile` file and implemented some **environment** and **help** commands. Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Reviewed-on: rock-n-code/deep-linking-assignment#1
16 lines
824 B
Swift
16 lines
824 B
Swift
extension UIViewController {
|
|
/**
|
|
* Convenience method for creating an instance of the receiver from a storyboard.
|
|
*
|
|
* The view controller in the storyboard must have its identifier set to the same name as the receiver's class because this method uses String(self) as the sought indentifier. As such, this method is not useful if the sought view controller type occurs more than once in the storyboard.
|
|
*
|
|
* @param storyboardName The name of the storyboard used to load the receiver's view.
|
|
*
|
|
* @return A new instance of the receiver loaded from the storyboard.
|
|
*/
|
|
@objc class func wmf_viewControllerFromStoryboardNamed(_ storyboardName:String) -> Self {
|
|
return wmf_viewController(withIdentifier: String(describing: self), fromStoryboardNamed:storyboardName)
|
|
}
|
|
}
|
|
|