tiagomnh/LicensingViewController

📃 UIViewController subclass with a simple API for displaying licensing information.


Keywords
licensing, swift, uiviewcontroller
License
MIT

Documentation

LicensingViewController

Version Swift Carthage compatible GitHub license

LicensingViewController is a UIViewController subclass with a simple API for displaying licensing information.

Written in Swift 2.0. Check tag 0.1.0 for a Swift 1.2 compatible version.

Usage

import LicensingViewController

let licensingViewController = LicensingViewController()

licensingViewController.title = "Acknowledgments"

let alamofireItem = LicensingItem(
    title: "Alamofire",
    license: License.MIT(owner: "Alamofire Software Foundation (http://alamofire.org/)", years: "2014")
)

let caniveteItem = LicensingItem(
    title: "Canivete",
    license: License.MIT(owner: "Tiago Henriques (http://tiagomnh.com)", years: "2015")
)

let kingfisherItem = LicensingItem(
    title: "Kingfisher",
    license: License.MIT(owner: "Wei Wang", years: "2015")
)

licensingViewController.items = [alamofireItem, caniveteItem, kingfisherItem]

Screenshot

Screenshot

Requirements

  • iOS 8.0+
  • Xcode 6.3 (Swift 1.2)

Installation

LicensingViewController is available through Carthage. To install it, simply add the following line to your Cartfile:

github "tiagomnh/LicensingViewController"

Then run carthage update.

License

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