Skip to content

Commit

Permalink
Updated READMEN.md for nested type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbooker committed Nov 30, 2015
1 parent c788c46 commit 0867979
Showing 1 changed file with 29 additions and 31 deletions.
60 changes: 29 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,44 +246,42 @@ extension UIViewController {
}
}

extension UIStoryboard {
struct Scene {
enum Message : String, StoryboardSceneType {
static let storyboardName = "Message"

case Composer = "Composer"
static func composerViewController() -> UIViewController {
return Message.Composer.viewController()
}

case URLChooser = "URLChooser"
static func urlChooserViewController() -> XXPickerViewController {
return Message.URLChooser.viewController() as! XXPickerViewController
}
struct Scene {
enum Message : String, StoryboardSceneType {
static let storyboardName = "Message"

case Composer = "Composer"
static func composerViewController() -> UIViewController {
return Message.Composer.viewController()
}
enum Wizard : String, StoryboardSceneType {
static let storyboardName = "Wizard"

case CreateAccount = "CreateAccount"
static func createAccountViewController() -> CreateAccViewController {
return Wizard.CreateAccount.viewController() as! CreateAccViewController
}

case ValidatePassword = "Validate_Password"
static func validatePasswordViewController() -> UIViewController {
return Wizard.ValidatePassword.viewController()
}

case URLChooser = "URLChooser"
static func urlChooserViewController() -> XXPickerViewController {
return Message.URLChooser.viewController() as! XXPickerViewController
}
}
enum Wizard : String, StoryboardSceneType {
static let storyboardName = "Wizard"

case CreateAccount = "CreateAccount"
static func createAccountViewController() -> CreateAccViewController {
return Wizard.CreateAccount.viewController() as! CreateAccViewController
}

struct Segue {
enum Message : String, StoryboardSegueType {
case Back = "Back"
case Custom = "Custom"
case NonCustom = "NonCustom"
case ValidatePassword = "Validate_Password"
static func validatePasswordViewController() -> UIViewController {
return Wizard.ValidatePassword.viewController()
}
}
}

struct Segue {
enum Message : String, StoryboardSegueType {
case Back = "Back"
case Custom = "Custom"
case NonCustom = "NonCustom"
}
}
```

### Usage Example
Expand Down

0 comments on commit 0867979

Please sign in to comment.