Skip to content

romansorochak/Blackboard

 
 

Repository files navigation

Blackboard: Another iOS Storyboard Manager

Version License Platform Swift Sponsor

Requirements

  • iOS 8.0+
  • Xcode 8.0+

Installation

Downloading

$ curl https://raw.githubusercontent.com/NathanE73/Blackboard/master/bin/blackboard > blackboard

Making It Executable

$ chmod +x blackboard

Usage - Command Line

Identify Version

See which version of blackboard currently have:

$ bin/blackboard --version
Blackboard Version 3.0.0

Generating Source

$ bin/blackboard ExampleApp/Resources/ ExampleApp/Source/Generated/

Usage - Generated Source

UIViewController

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    window = UIWindow(frame: UIScreen.main.bounds)
    
    window?.rootViewController = WelcomeViewController.instantiateViewControllerFromStoryboard()
    
    window?.makeKeyAndVisible()
    
    return true
}

UINavigationController

let namesNavigationController = NamesViewController.instantiateNavigationControllerFromStoryboard { (namesViewController) in
    namesViewController.names = ["Steve Dave", "John Doe"]
}
present(namesNavigationController, animated: true, completion: nil)

UIStoryboardSegue

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
    performShowNameSegue { (nameViewController) in
        nameViewController.name = self.names[indexPath.row]
    }
}

UITableViewCell

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
    return dequeueNameCell(from: tableView, for: indexPath) { (nameCell) in
        nameCell.name = self.names[indexPath.row]
    }
}

UICollectionViewCell

let cell = dequeueAccountNameCell(from: collectionView) { (accountNameCell) in
    accountNameCell.name = "Steve Dave"
}

Authors

License

Blackboard is available under the MIT license. See the LICENSE file for more info.

About

Blackboard: Another iOS Storyboard Manager

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 96.1%
  • Shell 2.4%
  • Objective-C 1.5%