LicenseApache 2.0
Platformsios 10.3
DependenciesQuickTableView, SuperLayout, LionheartExtensions
FrameworksUIKit, StoreKit





TipJarViewController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'TipJarViewController'


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.,

struct TipJarOptions: TipJarConfiguration {
    static var topHeader = "Hi There"

    static var topDescription = """
If you've been enjoying this app and would like to show your support, please consider a tip. They go such a long way, and every little bit helps. Thanks! :)

    static func subscriptionProductIdentifier(for row: SubscriptionRow) -> String {
        switch row {
        case .monthly: return ""
        case .yearly: return ""

    static func oneTimeProductIdentifier(for row: OneTimeRow) -> String {
        switch row {
        case .small: return ""
        case .medium: return ""
        case .large: return ""
        case .huge: return ""
        case .massive: return ""

    static var termsOfUseURLString = ""
    static var privacyPolicyURLString = ""

And then, to instantiate the TipJarViewController:

let controller = TipJarViewController<TipJarOptions>()

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.

extension TipJarOptions: TipJarOptionalConfiguration {
    static var title = "Tip Jar"
    static var oneTimeTipsTitle = "One-Time Tips"
    static var subscriptionTipsTitle = "Ongoing Tips ❤️"
    static var receiptVerifierURLString = ""


TipJarViewController is available under the Apache 2.0 license. See the LICENSE file for more info.

Latest podspec

    "name": "TipJarViewController",
    "version": "0.1.3",
    "summary": "Easy, drop-in tipping for iOS apps.",
    "homepage": "",
    "license": {
        "type": "Apache 2.0",
        "file": "LICENSE"
    "authors": {
        "Dan Loewenherz": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.3"
    "social_media_url": "",
    "documentation_url": "",
    "description": "TODO: Add long description of the pod here.",
    "platforms": {
        "ios": "10.3"
    "swift_version": "4.0",
    "source_files": "TipJarViewController/Classes/**/*",
    "frameworks": [
    "dependencies": {
        "QuickTableView": [
            "~> 2.0"
        "SuperLayout": [
            "~> 1.0"
        "LionheartExtensions": [
            "~> 3.0"

Pin It on Pinterest

Share This