Boilerplate · Recipe

Recipe App Boilerplate for iOS

A SwiftUI base wired for content lists, favorites, and AI recipe generation, so you spend your time on the cooking experience instead of rebuilding auth, sync, and a premium paywall every recipe app needs before its first user.

Last updated: 2026-07-17 7 min read By Ahmed Gagan, iOS Engineer
Quick Answer

The Swift Kit is a recipe app boilerplate for iOS that costs $99 one-time and gives you a SwiftUI architecture built for content lists and detail screens, a Supabase backend for storing recipes and favorites, a multi-provider AI layer for recipe generation, and a RevenueCat paywall for premium recipes. It ships the parts every cooking app needs but nobody wants to rebuild — Sign in with Apple, favorites that sync across devices, and an AI service that can run on-device for free or route to OpenAI and Claude. You build the recipe content and the cooking flow; the accounts, AI plumbing, and billing are already done.

Price
$99 one-time, lifetime updates
AI
OpenAI, Claude, and on-device Apple Foundation Models
Backend
Supabase auth, Postgres recipes + favorites, storage
Monetization
RevenueCat paywall for premium recipes

A recipe app is a content app with a paywall — the kit ships both halves

Strip a recipe app down and it is two things: a well-built content browser and a business model. The content half is lists of recipes, detail screens with ingredients and steps, search, categories, and favorites. The business half is a premium tier — unlock the full cookbook, remove limits, or generate recipes on demand. The Swift Kit gives you the foundation for both. A centralized design system makes recipe cards, category chips, and step lists retheme from one file, Supabase Postgres stores recipes and the favorites a user marks, and RevenueCat gates the premium content behind an entitlement. You write the recipes and the cooking experience; the browsing, syncing, and billing scaffolding is already there.

A recipe model and favorites that sync via Supabase
import Foundation

struct Recipe: Codable, Identifiable {
    let id: UUID
    let title: String
    let ingredients: [String]
    let steps: [String]
    let minutes: Int
    var isFavorite: Bool = false
}

// The kit's Supabase layer persists favorites to Postgres,
// so a recipe favorited on iPhone shows up on iPad.
func toggleFavorite(_ recipe: Recipe) async throws {
    try await Database.shared.upsert(
        table: "favorites",
        values: ["recipe_id": recipe.id.uuidString,
                 "is_favorite": !recipe.isFavorite]
    )
}

AI recipe generation — the feature that sells the premium tier

The most compelling premium feature in a modern recipe app is generation: type in what is in your fridge, get a recipe back. The Swift Kit ships a multi-provider AI layer built for exactly this, and it handles the part that trips people up — where the request runs and who pays for it. For a genuinely free feature you can use Apple Foundation Models, which run on-device at zero marginal cost, so a basic what-can-I-make suggestion costs you nothing per call. For richer generation you route to OpenAI or Claude, with keys proxied server-side through Supabase Edge Functions rather than shipped in the app. That means you can offer a limited free generation experience and gate unlimited, higher-quality generation behind the paywall — the exact structure that converts free users to paid.

Generating a recipe from what's in the fridge
func generateRecipe(from ingredients: [String]) async throws -> Recipe {
    let prompt = """
    Create a recipe using mainly these ingredients: \(ingredients.joined(separator: ", ")).
    Return a title, an ingredient list, numbered steps, and total minutes.
    """
    // AIService is the kit's multi-provider layer: on-device
    // Foundation Models for the free tier, OpenAI/Claude for Pro.
    return try await AIService.shared.generateObject(
        prompt: prompt,
        as: Recipe.self
    )
}

Favorites, collections, and sync across a user's devices

Cooking happens across surfaces — you save a recipe on your phone at lunch and cook from your iPad on the counter that night. That only works if favorites and collections are tied to an account and synced, not stored on one device. The Swift Kit gives you that from launch. Sign in with Apple and email auth anchor a user's data to a real account, Supabase Postgres holds their favorites, custom collections, and any shopping-list state, and Supabase storage handles user-uploaded photos of their own dishes. Onboarding walks a new user from install to their first saved recipe, and analytics show you which recipes and categories actually get cooked.

  • Sign in with Apple + email so favorites and collections follow the user, not the device
  • Supabase Postgres for favorites, custom collections, and shopping-list state
  • Supabase storage for user-uploaded dish photos and reviews
  • Onboarding flow to get a new user to their first saved recipe quickly

What you build on top

The Swift Kit is not a finished recipe app. There is no bundled recipe database, no proprietary nutrition engine, no opinionated meal planner. That is intentional — your recipes, your curation, and your cooking experience are the product, and no boilerplate should dictate them. You bring the content (your own recipes, a licensed database, or AI-generated ones), the category structure, and any nutrition or meal-planning logic. The kit removes the roughly 30% of any recipe app that is identical to every other app: accounts, sync, AI plumbing, storage, paywall, onboarding, and a design system that keeps your brand out of a fight with the boilerplate. Localization is included too, which matters more for recipes than most categories — measurements and cuisine names change by region.

Building a recipe app: from scratch vs with The Swift Kit

Build from scratch vs With The Swift Kit comparison
FeatureBuild from scratchWith The Swift Kit
Accounts + favorites syncBuild and test auth and sync from zeroSign in with Apple + Supabase sync wired
AI recipe generationIntegrate a provider and secure the API key yourselfMulti-provider AI layer, keys proxied server-side
Free on-device AI tierWire up Foundation Models yourselfApple Foundation Models integrated, zero per-call cost
Premium recipe paywallIntegrate StoreKit/RevenueCat yourself (days–weeks)RevenueCat paywall + entitlements wired
Recipe contentYou supply it (same work either way)You supply it — kit handles storage and sync
Time to first paying userWeeks to monthsDays
CostYour time (the expensive part)$99 one-time, lifetime updates

Frequently Asked Questions

How does AI recipe generation work in this boilerplate?
The kit ships a multi-provider AI layer. For a free tier you can use Apple Foundation Models, which run on-device at zero marginal cost, so a basic recipe suggestion is genuinely free per call. For richer generation you route to OpenAI or Claude, with keys proxied server-side through Supabase Edge Functions rather than embedded in the app. You send ingredients or a prompt and decode a structured Recipe back — the plumbing for provider selection and key security is already built.
Does the recipe app boilerplate come with a database of recipes?
No, and that is deliberate. Your recipe content is your product's differentiation, so the kit does not bundle a cookbook. It gives you the Supabase Postgres storage and sync to hold recipes and favorites, and the AI layer to generate them, but you bring the content — your own recipes, a licensed database, or AI-generated ones. That keeps your app from looking identical to every other kit-built recipe app.
How do favorites sync across a user's iPhone and iPad?
Favorites and collections are stored in Supabase Postgres tied to the user's account via Sign in with Apple or email auth. Because the data lives server-side rather than on one device, a recipe favorited on the phone at lunch is there on the iPad on the counter that night. The kit's centralized data layer handles the sync path; you decide what a favorite or collection contains.
Can I charge for premium recipes with this recipe app kit?
Yes. RevenueCat is wired with a configurable paywall and entitlements, so the common model is a free tier with a limited set of recipes or generations and a Pro tier that unlocks the full cookbook and unlimited AI generation. Restore and entitlement checks are handled, so a reinstalling cook regains their premium access without custom code.
Does a recipe app built on this handle measurements and languages for different regions?
Localization is included in the kit, which matters more for a recipe app than most categories — units, ingredient names, and cuisine terms vary by region. You get the localization scaffolding to translate your interface and content; you supply the translations and any unit-conversion logic for metric versus imperial measurements.

Keep exploring

Ship your recipe app in days, not months

Get accounts, favorites sync, a multi-provider AI recipe generator, and a premium paywall done for $99 one-time — and spend your build on the recipes and cooking experience that make your app worth opening.

Get The Swift Kit — $99

One-time purchase · Lifetime updates · 14-day refund