Features • Installation • Usage • Translation • License
Display a screen with all licences used in your application can be painful to maintain. OpenSourceController was built to respond to this problem. OpenSourceController is a simple parser to display the licences which are used in your application.
Features
- Display tableView with licences used in your app
- AppStore ready
- Swift 3
Todo
- Download licence from Podfile (https://github.com/terflogag/OpenSourceController/issues/1)
- Download licence from Cartfile (https://github.com/terflogag/OpenSourceController/issues/2)
- Carthage support (feel free to make PR)
- Unit & UI Test (feel free to make PR)
Requirements
- Xcode 8
- iOS 9.0+ target deployment
- Swift 3 project
Installation
OpenSourceController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "OpenSourceController"
Usage
- Import the library :
import OpenSourceController
- Display the controller :
// 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)
Translation
OpenSourceController is currently write in english. If you need translation for the permission popup (or whatever thing), just add this line in your localized file :
"Tiers library" = "<your_translation>";
"Unable to load this licence." = "<your_translation>";
Applications
Some applications already use this picker like :
What about yours ? If your application also use this library, feel free to contact me or make pull request on the README 😁
Author
Florian Gabach, contact@floriangabach.fr
License
OpenSourceController is available under the MIT license.

