Add documentation

This commit is contained in:
Florian Gabach
2017-02-28 09:09:37 +01:00
parent 3ebf6141d5
commit 444f723498
4 changed files with 83 additions and 18 deletions
@@ -22,11 +22,16 @@ class ViewController: UIViewController {
}
@IBAction func showOpenSource(_ sender: Any) {
// Create controller
let openSourceVC = OpenSourceController()
// Init with LicenceFile object
openSourceVC.licences = [LicenceFile(title: "FacebookImagePicker",
url: "https://raw.githubusercontent.com/terflogag/FacebookImagePicker/master/LICENSE"),
LicenceFile(title: "JSQMessagesViewController",
url: "https://raw.githubusercontent.com/jessesquires/JSQMessagesViewController/develop/LICENSE")]
// Present controller
openSourceVC.presentOpenSourceController(from: self)
}
}