All Projects → appcraftstudio → Buymeacoffee

appcraftstudio / Buymeacoffee

Licence: mit
Buy Me a Coffee framework for iOS

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Buymeacoffee

Gzipswift
Swift framework that enables gzip/gunzip Data using zlib
Stars: ✭ 356 (+145.52%)
Mutual labels:  framework, cocoapods, spm
Swiftyonboard
A swifty iOS framework that allows developers to create beautiful onboarding experiences.
Stars: ✭ 952 (+556.55%)
Mutual labels:  framework, cocoapods
Parsel
Create complex parsers by combining simple ones with Parsel!
Stars: ✭ 21 (-85.52%)
Mutual labels:  cocoapods, spm
Keyboardhidemanager
Codeless manager to hide keyboard by tapping on views for iOS written in Swift
Stars: ✭ 57 (-60.69%)
Mutual labels:  framework, cocoapods
Orsserialport
Serial port library for Objective-C and Swift macOS apps
Stars: ✭ 609 (+320%)
Mutual labels:  framework, cocoapods
Validatedpropertykit
Easily validate your Properties with Property Wrappers 👮
Stars: ✭ 701 (+383.45%)
Mutual labels:  cocoapods, spm
Sketchkit
A lightweight auto-layout DSL library for iOS & tvOS.
Stars: ✭ 40 (-72.41%)
Mutual labels:  cocoapods, spm
Shadowview
An iOS Library that makes shadows management easy on UIView.
Stars: ✭ 391 (+169.66%)
Mutual labels:  framework, cocoapods
Sheeeeeeeeet
Sheeeeeeeeet is a Swift library for creating menus, custom action sheets, context menus etc.
Stars: ✭ 1,177 (+711.72%)
Mutual labels:  cocoapods, spm
Loadingshimmer
An easy way to add a shimmering effect to any view with just one line of code. It is useful as an unobtrusive loading indicator.
Stars: ✭ 1,180 (+713.79%)
Mutual labels:  framework, cocoapods
Sstoastmessage
SSToastMessage is written purely in SwiftUI. It will add toast, alert, and floating message view over the top of any view. It is intended to be simple, lightweight, and easy to use. It will be a popup with a single line of code.
Stars: ✭ 82 (-43.45%)
Mutual labels:  cocoapods, spm
Bow
🏹 Bow is a cross-platform library for Typed Functional Programming in Swift
Stars: ✭ 538 (+271.03%)
Mutual labels:  cocoapods, spm
Swiftframeworktemplate
A template for new Swift iOS / macOS / tvOS / watchOS Framework project ready with travis-ci, cocoapods, Carthage, SwiftPM and a Readme file
Stars: ✭ 527 (+263.45%)
Mutual labels:  framework, cocoapods
Taniwhatextfield
My first cocoapod framework
Stars: ✭ 26 (-82.07%)
Mutual labels:  framework, cocoapods
Simpleimageviewer
A snappy image viewer with zoom and interactive dismissal transition.
Stars: ✭ 408 (+181.38%)
Mutual labels:  cocoapods, spm
Swiftysound
SwiftySound is a simple library that lets you play sounds with a single line of code.
Stars: ✭ 995 (+586.21%)
Mutual labels:  cocoapods, spm
Easyrealm
EasyRealm is a micro-framework that helps you use Realm.
Stars: ✭ 320 (+120.69%)
Mutual labels:  framework, cocoapods
Sparse
Sparse is a simple parser-combinator library written in Swift.
Stars: ✭ 104 (-28.28%)
Mutual labels:  cocoapods, spm
Expandable Collection View Kit
🗂 Expandable, hierarchical, flexible, declarative UICollectionView with diffable data sources & SwiftUI-like tree items builder [Swift 5.1, iOS & iPadOS 13].
Stars: ✭ 69 (-52.41%)
Mutual labels:  framework, spm
Mbpopup
macOS status bar popups done right 😎
Stars: ✭ 89 (-38.62%)
Mutual labels:  framework, cocoapods

Swift

A supporter is worth a thousand followers.

Buy Me a Coffee is a modern creator platform. It takes two minutes to start your page and has all the features that you need to build your creative business.

Donations 💰
Give your audience a friendly way to thank you.

Memberships 🗓
Earn recurring revenue by offering a monthly or yearly membership.

Sell Extras ✨
A new, creative way to offer Zoom calls, art commissions, anything.


Features

  • [X] Apple Pay
  • [X] iCloud Keychain

Requirements

CocoaPods Swift Package Manager
Swift 5.0 Swift 5.3
Xcode 11.x Xcode 12.x

App Store Review

These are the two App Store Review Guidelines articles you have to know before using this framework:

3.1.1 In-App Purchase

  • Apps may use in-app purchase currencies to enable customers to “tip” digital content providers in the app.

3.2.1 Acceptable:

(vii) Apps may enable individual users to give a monetary gift to another individual without using in-app purchase, provided that (a) the gift is a completely optional choice by the giver, and (b) 100% of the funds go to the receiver of the gift. However, a gift that is connected to or associated at any point in time with receiving digital content or services must use in-app purchase.

Implement Buy Me a Coffee

  1. Import the BuyMeACoffee framework in your UIApplicationDelegate:
import BuyMeACoffee
  1. Configure the BMCManager shared instance with the username you've chosen on www.buymeacoffee.com, typically in your app's application:didFinishLaunchingWithOptions: method:
BMCManager.shared.configure(username: "appcraftstudio")
  1. In the view controller, override the viewDidLoad method to set the presenting view controller of the BMCManager object.
BMCManager.shared.presentingViewController = self
// You can also set a custom thank you message
BMCManager.shared.thankYouMessage = "Thank you for supporting 🎉 App Craft Studio !"
  1. Add a BMCButton to your storyboard, XIB file, or instantiate it programmatically. To add the button to your storyboard or XIB file, add a View and set its custom class to BMCButton.
  2. Optional: If you want to customize the button, do the following:
let button = BMCButton(configuration: .default)
button.configuraton = .init(color: .orange, font: .cookie)


(Optional) Configure In-App Purchase

Depending the legal receiver of the gift configured on Buy Me a Coffee, App Store reviewers can ask for In-App Purchase implementation.
If the following In-App Purchase if configured for your application, it will be displayed as primary flow when user tap on the BMCButton.

If the framework can't retrieve In-App Purchase informations, the web flow will be used as fallback.

App Store Connect

Go to App Store Connect, search for the In-App Purchases section of your app, and then, create a new one with the following informations:

Type Consumable
Reference Name Buy Me a Coffee
Product ID your.app.bundle.identifier.buymeacoffee
Cleared for Sale
Price Tier 4
Display Name Buy Me a Coffee
Description Hey there! You can now buy me a coffee!
Promotional Image download here
Review Screenshot download here
Review Notes Buy Me a Coffee enable customers to “tip” digital content providers in the app.

Capabilities

  1. Select the current workspace in the project navigator.
  2. Then, select the app target in the left panel.
  3. Go to the Signing & Capabilities tab.
  4. Add the In-App Purchase capability.

Installation

CocoaPods

You want to add pod 'BuyMeACoffee', '~> 1.0' similar to the following to your Podfile:

target 'MyApp' do
  pod 'BuyMeACoffee', '~> 1.0'
end

Then run a pod install inside your terminal, or from CocoaPods.app.

Swift Package Manager

  1. Using Xcode 11 or above go to File > Swift Packages > Add Package Dependency
  2. Paste the project URL: https://github.com/appcraftstudio/buymeacoffee.git
  3. Click on next and select the project target

Swift Package Manager


Buy Me a Coffee framework for iOS - Embed Buy Me a Coffee framework in your applications | Product Hunt Embed

Buy Me A Coffee

Copyright © 2020 App Craft Studio. All rights reserved.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].