How to price and sell your swift pieces

A 40-line SwiftUI button style is not a product until a stranger can clone the repo, open the demo target in Xcode 16, and see the same button in under five minutes. That is the bar for every Swift piece you plan to sell: a reusable component, a starter app, or a small fixed-scope build. Price against the setup time you remove, not the line count.

The three Swift pieces a beginner can actually sell

“Swift piece” here means code you can hand over: a SwiftUI component packaged with Swift Package Manager, a complete Xcode starter project, or a small paid build task. They are not the same business. A package is a low-price, high-volume download. A template is a mid-price product with more support. A service is a high-price, low-volume agreement. For a first sale, pick one. Selling all three at once usually means none is documented well enough.

Option 1: a reusable Swift package or SwiftUI component

This is the cleanest first product. Build one focused view or utility — a segmented control, a calendar strip, a form validator — and wrap it in a Swift package with a Package.swift file. Target iOS 17+ and the current Xcode 16 toolchain unless you have a reason to go older. A buyer should add it in Xcode with .package(url: "…", from: "1.0.0"), not by dragging loose files.

Price a single component at $15–$49. A package with three to five related components and a demo app can sit at $49–$99. Keep the support promise narrow: 30 days for install problems, not custom feature requests. Account for platform fees: Gumroad takes about 10% per sale; Lemon Squeezy is around 5% + 50¢; self-hosted Stripe is roughly 2.9% + 30¢. A $19 sale can net under $17 before income tax, so do not price at $5 and assume volume will save you.

Option 2: a complete SwiftUI starter app or template

A template is a working Xcode project a buyer can rename and extend: a habit tracker with SwiftData, a recipe list with local storage, a simple journal with onboarding. Price at $29–$149 for source code; niche templates with StoreKit 2 subscriptions, onboarding, and a privacy manifest can reach $199. The extra money pays for documentation and the fact that you must keep the project opening cleanly in current Xcode.

If you sell a finished app on the App Store instead, the economics change. Apple Developer Program membership is $99 per year. Apple’s commission is 15% under the Small Business Program if you qualify (under $1 million in proceeds), otherwise 30%. A paid app at $2.99–$7.99 is a reasonable beginner range. TestFlight builds expire after 90 days, so plan updates. Do not bundle Apple sample code, SF Symbols, or stock assets as your own; use assets you created or licensed.

Option 3: a small fixed-scope Swift build service

A service sells your hands, not a download. Good beginner scopes are one SwiftUI screen, a StoreKit 2 purchase flow, a SwiftData model plus list screen, or a build-fix session. Price a small fixed scope at $250–$1,500, or $60–$120 per hour if the client insists on hourly. Take 50% upfront, define two revision rounds, and put the deliverable in writing. This option has the highest ceiling and the highest admin load. Consult a professional for contract terms and tax questions; a blog post is not legal advice.

Price the Swift piece from support time, not line count

A 300-line package is not worth more than a 40-line one if the 300-line version breaks on every Xcode beta. Set a floor and test it against real numbers. Example: a $39 package sells 12 copies, grossing $468. After a 10% platform fee, you keep about $421. If each buyer needs 20 minutes of install help, that is 4 hours of support; at a $60/hour opportunity cost, you have spent $240 and have $181 left before counting build time. That is a warning, not a win. Raise the price, improve the README, or narrow compatibility.

Use these starter prices: $15 for a single-file SwiftUI component, $39 for a documented package with a demo target, $99 for a multi-screen template, $250+ for a fixed-scope service. Raise after 10 sales if refunds exceed 5% or support averages more than 30 minutes per buyer. Lower only if you are deliberately buying reviews and can afford the time.

Package the Swift download with a demo target, version tag, and plain license

The download is part of the product. Include a README that states the Xcode version, minimum iOS deployment target, install steps, public API, and known limits. Include a runnable demo target so the buyer sees the component working before reading code. Add a CHANGELOG.md, tag the release v1.0.0, and zip the project without .xcuserdata or secrets. Test from a clean folder: if the demo fails there, it will fail for a buyer.

State the license in plain English. A personal license can be $15–$29; a commercial license that allows use in a client app can be $49–$99. Say whether the buyer may redistribute source, use it in an App Store app, or resell it. Do not promise “unlimited” without defining it. Platforms often collect sales tax or VAT, but you still report income; ask an accountant when sales cross your local threshold.

Choose by license risk and Xcode maintenance, not by hype

Choose Option 1 if you can answer basic install questions, keep a package compiling, and write a short README. Choose Option 2 if you can maintain a full Xcode project, test it on a clean simulator, and handle privacy and StoreKit details. Choose Option 3 if you can scope work, communicate in writing, and do not mind invoices. If you cannot state the minimum iOS version and Xcode version for your download, you are not ready to sell a template. If you cannot commit to updating a package when Xcode 16.x changes, sell a one-off service instead.

Ship one sellable Swift piece this week

Pick one SwiftUI component you already understand. Put it in a package, add a demo app, write the README, tag v1.0.0, and set a $19–$39 price. List it on one storefront, set a 30-day install-support boundary, and tell five Swift beginners where to find it. Do not wait for a suite of ten components. One clear, tested, documented Swift piece that a stranger can install in five minutes is worth more than a folder of clever code with no instructions.