TipJarViewController
Installation
TipJarViewController is available through CocoaPods. To install
it, simply add the following line to your Podfile:
Usage
Before you can use TipJarViewController in your app, you'll first need to create a few IAPs in iTunes Connect--2 subscription IAPs and 5 one-time IAPs. This is currently a requirement but may change in the future.
Once you've created your IAPs, you just need to configure the header and description at the top of the view controller, and tell TipJarViewController what your IAP product identifiers are, using the TipJarConfiguration
protocol. E.g.,
And then, to instantiate the TipJarViewController
:
If you want more customization options, just make your configuration conform to TipJarOptionalConfiguration
. You can also specify a URL running Lionheart's receipt verifier to check for valid purchases on your own server.