Incredibly simple license view controller for iOS. Makes it really easy to attractively present acknowledgements for open source libraries within your app. You know, the ones that come with all that 3rd party code you use?
SUBLicenseViewController *licenseViewController = [[SUBLicenseViewController alloc] init];
[self.navigationController pushViewController:licenseViewController animated:YES];
SUBLicenseViewController will automatically parse and add your CocoaPods acknowledgements files as long as you add it to Copy Bundle Resources
like so:
and then you can have it automatically copied every pod install
by adding this to the bottom of your Podfile:
post_install do | installer |
require 'fileutils'
FileUtils.cp_r('Pods/Target Support Files/Pods-XXX/Pods-XXX-acknowledgements.plist', 'XXX/Acknowledgements.plist', :remove_destination => true)
end
To run the example project, clone the repo, and run pod install
from the Example directory first.
SUBLicenseViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SUBLicenseViewController"
Julian (insanj) Weiss, [email protected]
SUBLicenseViewController is available under the MIT license. See the LICENSE file for more info.