Swift PiecesPro
  • Library
    Screens48Finished, designed screens for real apps.Templates10Complete apps built from the screens.Build Kit24Styles, briefs and recipes for your coding agentEverything58The whole library, with search
  • Docs
  • Pro

Library

  • Screens48
  • Templates10
  • Build Kit24
  • Everything58
  • Docs
  • Pro
  • Account
Get Swift Pieces ProFree library ↗
Swift PiecesPro

Production-ready SwiftUI screens and app templates for iOS. The pieces to build the whole app.

Library

  • Screens
  • Templates
  • Build Kit
  • Everything

Product

  • Pro
  • Your account
  • Sign in

Resources

  • Docs
  • CLI
  • MCP and agents
  • Free library

Social

  • X / Twitter
  • GitHub

SWIFTPIECES PRO

© 2026 Swift Pieces. One payment, lifetime access, per-developer commercial license.

Curated withby Saivion

LibraryTemplatesMeditation App

Template · Health

Meditation App

Stillwater, a calm wellbeing app: a complete Xcode project with mood check-ins, guided breathing, short courses, a journal, widgets and three brand presets.

A wellbeing app on a five-tab shell. First run is the Onboarding screen with a reminders request and a StoreKit 2 paywall for Stillwater Plus. Today checks in around the mood orb and suggests a session, Breathe opens the guided session, Learn pushes the reader, Journal starts from a ghost state, and Profile holds settings and sign out.

SwiftUIiOS 17.0+Xcode project 1.0.0meditation-app

Get Swift Pieces Pro

$199 once, every piece included. See how installing works · Sign in

01

What's inside

The screens this template wires together, in the order someone meets them.

First run

Welcome pages, a reminders request and the Stillwater Plus paywall. Runs once, then records completion.

Screen · Onboarding

Onboarding

First run end to end: welcome pages, a permission step and a trial offer, then into the app.

Screen · Commerce

Purchase

A complete StoreKit 2 purchase: plans load, the purchase runs, success lands, the app unlocks.

Tabs

Today, Breathe, Learn, Journal and Profile on the App Shell. Today's check-in is built on the mood orb; Journal starts from a ghost state.

Screen · Navigation

App Shell

The root of a tabbed app: a floating tab bar, a stack per tab and real reselect behaviour.

Screen · Health

Mood

A daily mood check-in around a glass orb with a Siri-style wave inside and a week of moods as bars.

Screen · Productivity

Projects

A projects screen that starts as breathing ghost rows and hands off to your real projects.

Screen · Account

Settings

A settings home with a collapsing profile header, grouped rows, toggles and sign out.

From the tabs

Breathing sessions open full screen, lessons push the reader, and a logged mood lands as a toast with Undo.

Screen · Health

Breathe

A guided breathing session around a glass orb with a Siri-style wave inside.

Screen · Media

Reader

A long-read article with a serif headline and a floating pill that morphs into a reading toolbar.

Screen · Account

Notifications

An activity feed where new alerts land as a stack of toasts you can fan out and swipe away.

02

What's included

SwiftUI source you own, built on Apple frameworks only.

  • A daily mood check-in around the orb, with feelings and notes
  • Guided breathing patterns with a session player, haptics and a summary
  • Short courses with a reader that reads lessons aloud
  • A journal with face-capped mood bars, insights and an empty state
  • Mood streak and Start breathing widgets, with check-in buttons that work without opening the app

Includes

Onboarding, Welcome, Purchase, Paywall, App Shell, Lessons, Mood, Breathe, Reader, Projects, Notifications, Settings. Installed together, automatically.

Requires

In-App Purchase capability

In the Build Kit

Meditation and Sleep (brief). Your agent builds around this template in the same design.

03

Implementation notes

How it behaves, what it handles, and the decisions behind it.

MeditationApp is one root view. On first launch it shows the Onboarding screen: three welcome pages, a reminders request, then the Purchase screen's StoreKit 2 paywall for Stillwater Plus as the handoff. Purchasing, restoring or closing the paywall finishes onboarding and records it under a completion key, so the root switches to the home on its own.

Home is the App Shell with five tabs. Today is a mood check-in around the mood orb with five faces and the session suggested for now; logging a mood lands as a toast with Undo, and "Add feelings and a note" opens the full Mood screen. Breathe lists patterns that open the guided Breathe session full screen. Learn lists short courses that push the Reader. Journal shows the week as face-capped bars and starts from a ghost state. Profile is Settings, where Manage subscription reopens the paywall and Sign out returns the app to first run.

The downloadable Xcode project goes further: SwiftData history, a session player with rounds, haptics and a summary, course and lesson screens with read-aloud, journal insights, a daily reminder, deep links, and a mood streak widget that logs a check-in without opening the app.

Adapting it

  • Products: pass your App Store Connect ids as productIDs. Until they exist, the paywall shows its designed "plans didn't load" state and its close button still finishes onboarding.
  • Completion key: completionKey is the UserDefaults key the flow writes and the root reads. Change it to show onboarding to everyone again.
  • Content: moods, patterns and courses live in StillwaterSample at the top of MeditationApp.swift; the session is PhaseOrbExample, the full check-in NoiseOrbExample and the lesson MorphNavScreenExample. Swap each for your own store.
  • Theme: without a brand the app wears Stillwater Ember. Set .environment(\.spTheme, SPBrandTheme(.stillwaterEditorial)) or .stillwaterCandy on MeditationApp to re-skin every tab.

Notes

  • Not @main: put MeditationApp() in your own WindowGroup.
  • Enable the In-App Purchase capability before testing purchases.
  • Lesson copy is general wellbeing guidance, not medical advice. Have anything health-related you add reviewed.
  • Four previews ship with the file: first run, home in Ember dark, Editorial and Candy.

04

Keep building

Pieces that work well next to this one.

Template · Commerce

Subscription App

Cadence, a subscription habit tracker: a complete Xcode project with onboarding, a StoreKit 2 paywall, SwiftData, widgets and three brand presets.

Screen · Health

Mood

A daily mood check-in around a glass orb with a Siri-style wave inside and a week of moods as bars.

Screen · Health

Breathe

A guided breathing session around a glass orb with a Siri-style wave inside.