Ready to use “Acknowledgements” / “Licenses” / “Credits” view controller forCocoaPods.
Written in Swift 4.2 (for Objective-C, you can useVTAcknowledgementsViewController).
This project is only useful if you use CocoaPods, so let’s assume that you’re indeed using CocoaPods.
- Add
pod 'AcknowList'
in yourPodfile
. - Import the
Pods-acknowledgements.plist
file from the generatedPods/Target Support Files
folder to your main app project (so you need to runpod install
at least once before using this pod; don’t copy the file itself, just add a reference).
This file is generated atPods/Target Support Files/Pods-{project}/Pods-{project}-acknowledgements.plist
.
TheAcknowListViewController
instance is usually pushed to an existingUINavigationController
.
letviewController=AcknowListViewController()
navigationController?.pushViewController(viewController,animated:true)
If your.plist
file is named something other thanPods-acknowledgements.plist
(e.g.if you’re using custom build targets), you can initialize the view controller with a custom path.
letviewController=AcknowListViewController(fileNamed:"Pods-AcknowExample-acknowledgements")
letpath=Bundle.main.path(forResource:"Pods-AcknowExample-acknowledgements",ofType:"plist")
letviewController=AcknowListViewController(acknowledgementsPlistPath:path)
AcknowList is also compatible with tvOS for Apple TV apps.
AcknowList is written in Swift 4.2, requires iOS 8.0 or tvOS 9.0 and above, Xcode 10.0 and above.
AcknowList was created byVincent Tourraine,and improved by a growinglist of contributors.
AcknowList is available under the MIT license. See theLICENSE.txt
file for more info.