AcknowList
Written in Swift 4.2 (for Objective-C, you can use VTAcknowledgementsViewController).
How to Install
This project is only useful if you use CocoaPods, so let’s assume that you’re indeed using CocoaPods.
- Add
pod 'AcknowList'
in yourPodfile
. - Run
pod install
. - Add the
Pods-{target}-acknowledgements.plist
file generated by CocoaPods inPods/Target Support Files/Pods-{target}/
to your main target (drag and drop the file in your Xcode project). Don’t copy the file, leaveCopy items if needed
unchecked.
How to Use
The AcknowListViewController
instance is usually pushed to an existing UINavigationController
.
let viewController = AcknowListViewController()
navigationController?.pushViewController(viewController, animated: true)
Customization
If your .plist
file is named something other than Pods-acknowledgements.plist
(e.g. if you’re using custom build targets), you can initialize the view controller with a custom path.
let viewController = AcknowListViewController(fileNamed: "Pods-AcknowExample-acknowledgements")
let path = Bundle.main.path(forResource: "Pods-AcknowExample-acknowledgements", ofType: "plist")
let viewController = AcknowListViewController(acknowledgementsPlistPath: path)
Apple TV
AcknowList is also compatible with tvOS for Apple TV apps.
Requirements
AcknowList is written in Swift 4.2, requires iOS 8.0 or tvOS 9.0 and above, Xcode 10.0 and above.