Replace project architecture

This commit is contained in:
Florian Gabach
2017-04-04 17:07:12 +02:00
parent e365d5ff2e
commit ee213ef426
68 changed files with 940 additions and 4429 deletions
@@ -0,0 +1,36 @@
//
// OpenSourceController.swift
// Pods
//
// Created by Florian Gabach on 05/02/2017.
import UIKit
public class OpenSourceController: NSObject {
// Contains list of licence object
open var licences: [LicenceFile]?
// Configuration
open var config = OpenSourceControllerConfig()
/// Present OpenSourceViewController embbeded in navigation controller
///
/// - Parameter from: the source controller
open func presentOpenSourceController(from: UIViewController) {
// Create open source controller
let licenceController = OpenSourceViewController()
// Init licence
licenceController.licences = self.licences
// Init config
licenceController.config = self.config
// Embed in navigation controller
let navController = UINavigationController(rootViewController: licenceController)
// Present controller
from.present(navController, animated: true)
}
}