# Account & Security FAQs
Source: https://docs.nativeline.ai/faqs/account
Questions about your account, data, and privacy
# Account & Security FAQs
Questions about account management, data security, and privacy.
***
## Account Management
1. Open Nativeline
2. Click "Create Account" or "Sign Up"
3. Enter your email address
4. Check your email for an 8-digit verification code
5. Enter the code in Nativeline
6. You're in!
We use email-only authentication — no passwords to remember.
1. Download Nativeline on your new Mac
2. Click "Sign In"
3. Enter your email address
4. Get the 8-digit code from your email
5. Enter the code
6. Access your account
Your projects are stored locally, so you'll need to transfer them or sync via your own methods.
Yes. You can sign into Nativeline on multiple Macs with the same account.
Note: Projects are stored locally on each Mac. To share projects:
* Use iCloud Drive
* Use Git/GitHub
* Manually copy project folders
Currently, changing your account email requires contacting support:
* Email [support@nativeline.ai](mailto:support@nativeline.ai)
* Include your current email
* Include your new email
* We'll help you migrate
A self-service option may be added in the future.
To delete your account:
1. Cancel any active subscription first
2. Email [support@nativeline.ai](mailto:support@nativeline.ai) requesting deletion
3. Confirm you want all data removed
4. Account will be deleted within 30 days
This cannot be undone. Your projects remain on your Mac in `~/Documents/Nativeline Projects/`.
Try these steps:
1. Check old emails for messages from Nativeline
2. Contact [support@nativeline.ai](mailto:support@nativeline.ai) with your name and approximate signup date
We can help you recover access.
***
## Data & Privacy
**Your projects:**
* Stored locally on your Mac
* In `~/Documents/Nativeline Projects/`
* Not uploaded to our servers
**Your account info:**
* Email address and subscription status
* Stored securely on our servers
* Minimal data collection
**AI interactions:**
* Sent to AI providers for processing
* Not stored long-term
* Used only for the current session
When you use the AI:
* Your code is sent to AI providers (Anthropic, OpenAI)
* This is necessary for the AI to help you
* Code is processed and not stored long-term
We don't look at your code ourselves. The AI providers have their own privacy policies.
Partially. You can:
* Browse your existing projects
* View code (Pro plan)
* Run apps in Simulator (if already built)
You cannot:
* Use AI features (requires internet)
* Upload to TestFlight
AI features require an internet connection.
We collect minimal data:
* Email address (for authentication)
* Subscription status
* Basic usage metrics (how often you use features)
We don't collect:
* Your project code (unless using AI, then it's processed temporarily)
* Personal browsing data
* Location data
* Contact information
No. We don't sell your data to third parties. Your information is used only to provide the Nativeline service.
When using AI features, your prompts and code are sent to Anthropic (Claude models).
Anthropic:
* Processes your data to generate responses
* Has their own privacy policy
* Does not train on API usage
See [Anthropic's Privacy Policy](https://www.anthropic.com/privacy) for details.
Nativeline uses Stripe for secure payment processing:
* We never see your full card number
* Payments are processed by Stripe (PCI compliant)
* Your payment info is encrypted and protected
* We only receive confirmation of subscription status
* **In transit:** Yes, all connections use HTTPS/TLS
* **On your Mac:** No additional encryption (use FileVault for disk encryption)
* **On our servers:** We don't store your code
Your projects are local files. Mac's built-in FileVault encrypts your disk.
***
## Security
Email verification is secure:
* 8-digit codes are random and expire quickly
* Codes are single-use
* Your email inbox is the second factor
* No passwords that can be stolen
Ensure your email account itself is secure (use 2FA on your email).
Yes! Since your Nativeline account uses your email:
* Use a strong, unique password for your email
* Enable two-factor authentication on your email
* Your email security is your Nativeline security
Your projects are on your Mac. To protect them:
* Use a strong Mac password
* Enable FileVault disk encryption
* Lock your Mac when away
* Back up important projects
If someone has access to your Mac, they could access your projects.
For API keys (OpenAI, Supabase, etc.):
* Store in **Project Settings** → **Database** panel (not in code comments)
* Don't commit to public Git repositories
* Use different keys for test vs production
* Rotate keys if you suspect compromise
If your Mac is lost or stolen:
1. Use Find My Mac to locate or remotely wipe
2. If FileVault was enabled, data is encrypted
3. Change passwords for any accounts on that Mac
4. Contact support if you need to secure your Nativeline account
Not recommended. On shared computers:
* Others could access your projects
* Others could access your account while logged in
* Sensitive API keys could be exposed
Use Nativeline on your personal Mac. Always log out if you must use a shared computer.
***
## Backups
**Manual backup:**
* Copy project folders to external drive
* Upload to cloud storage (Dropbox, Google Drive, iCloud)
**Automatic backup:**
* Enable Time Machine on your Mac
* Projects are included in regular backups
**Version control:**
* Initialize Git in project folder
* Push to GitHub/GitLab
* Best for ongoing work
If you didn't back up:
* Check Time Machine for previous versions
* Look in iCloud Drive or other cloud services
* Projects might be recoverable if recently deleted
Unfortunately, we cannot recover projects since they're stored locally.
Options for syncing:
* **iCloud Drive:** Store project folder in iCloud
* **Git:** Push/pull via GitHub
* **External drive:** Manually copy
* **Cloud storage:** Dropbox, Google Drive
Be careful with simultaneous editing — use version control.
***
## Related
Subscription questions
Setup questions
Fixing issues
Basic questions
# AI Modes FAQs
Source: https://docs.nativeline.ai/faqs/ai-modes
Common questions about Quick, Enhanced, and Max modes
# AI Modes FAQs
AI Modes let you choose which AI powers your builds. Each mode optimizes for different things — speed, design quality, reasoning depth, or cost.
See [AI Modes](/features/ai-modes) for the full comparison.
**Enhanced** is the default and recommended for most projects. It produces the best visual designs and UI quality at low cost.
* **Quick** — When you want fast iterations and lowest cost
* **Enhanced** — For most projects (default)
* **Max** — For complex logic, deep debugging, or architectural decisions
Yes. Click the AI mode selector in the chat input area to switch anytime. Your next message will use the new mode. Previous messages are unaffected.
Yes. Max mode uses more bits per request than Quick or Enhanced. However, Enhanced often costs the same or less than Quick for the same task — it makes fewer mistakes, so you need fewer iterations.
Enhanced produces the best UI designs, makes fewer mistakes, and costs roughly the same as Quick mode for most tasks. It's the best all-around option for the vast majority of projects.
Use Max when you need:
* Complex business logic or algorithms
* Deep debugging of stubborn issues
* Architectural decisions for large apps
* Intricate data relationships
Max has the strongest reasoning but costs more per request.
* **Coffee & Builder** — Quick and Enhanced
* **Pro & Scale** — Quick, Enhanced, and Max
***
Full AI Modes documentation
Compare plans and features
# Billing & Plans FAQs
Source: https://docs.nativeline.ai/faqs/billing
Questions about pricing, bits, and subscriptions
# Billing & Plans FAQs
Questions about Nativeline's pricing, bits, and subscription plans.
***
Nativeline offers several plans:
| Plan | Price | Bits |
| ------- | ----------------- | ------------------------------- |
| Coffee | \$2 one-time | 150 bits |
| Builder | \$25/month | 1,000 bits |
| Pro | \$50/month | 2,250 bits + Code Editor |
| Scale | $100-$1,000/month | 4,800-50,000 bits + Code Editor |
See [Plans & Pricing](/introduction/plans-and-pricing) for details.
Bits are Nativeline's usage currency. They're consumed when the AI works on your app:
* Questions and explanations (1-5 bits)
* Color/text changes (10-15 bits)
* Creating new features (25-40 bits)
* Full app build (40-60 bits)
Your bit balance is shown in the app and resets monthly with your subscription.
It depends on how you use Nativeline. Bits are consumed per message:
| Action | Bits per Message |
| -------------------- | ---------------- |
| Questions | 1-5 bits |
| Color/text changes | 10-15 bits |
| New features | 25-40 bits |
| First app generation | 40-50 bits |
Every app is different, so monthly usage varies. Start with the Builder plan (1,000 bits) — that's plenty for most users.
When bits are depleted:
* AI features stop working
* You can still run and test your current app
* You can view your code (Pro plan)
* You cannot make new AI-powered changes
Options:
* Wait for monthly reset
* Upgrade to a higher plan
No. Bits reset at the start of each billing cycle. There's no rollover of unused bits.
Plan your usage to maximize your monthly allocation.
You can purchase the Coffee plan (\$2 one-time, 150 bits) for a quick top-up, or upgrade to a higher monthly plan for more bits.
Coffee is a \$2 one-time purchase that gives you 150 bits with no subscription commitment. Great for trying Nativeline or quick one-off needs.
Check your usage:
* In the app: Look for bit counter in the interface
* Settings → Account shows detailed usage
* Watch for low-bit warnings as you approach your limit
You can download Nativeline and explore for free. This lets you:
* See the interface
* Create a project
* Understand how it works
To build apps with AI, you need a subscription.
Yes, anytime. To cancel:
1. Open Settings → Account
2. Click "Manage Subscription"
3. Click "Cancel Subscription"
After cancellation:
* You keep access until the end of your billing period
* Your projects and code stay on your Mac
* AI features stop working after the period ends
1. Open Settings → Account
2. Click "Manage Subscription"
3. Choose a different plan
* Upgrades take effect immediately
* Downgrades take effect at next billing cycle
* Bits are prorated for upgrades
For refund requests, please contact [support@nativeline.ai](mailto:support@nativeline.ai) with:
* Your account email
* The reason for your request
* Your subscription date
We handle refunds on a case-by-case basis.
Yes. The Apple Developer Program (\$99/year) is separate from Nativeline's subscription.
* Nativeline = for building apps
* Apple Developer = for publishing to TestFlight and App Store
You only need the Apple Developer account when you're ready to distribute your app.
Currently, Nativeline doesn't offer student discounts. However:
* The Builder plan (\$25/month) is affordable for learning
* You can build real apps while learning
* Consider it an investment in a valuable skill
Watch for promotional offers.
Nativeline uses Stripe for secure payments. We accept:
* All major credit cards
* Debit cards
Subscriptions renew automatically on the same date each month.
Check your renewal date in Nativeline: Settings → Account
***
## Related FAQs
What is Nativeline?
Account management
Full pricing details
Installation questions
# Building Apps FAQs
Source: https://docs.nativeline.ai/faqs/building
Questions about creating apps with AI
# Building Apps FAQs
Questions about using the AI to build your apps.
***
Just type in plain English! Be specific about:
* What the feature should do
* What it should look like
* How users should interact with it
**Good prompt:** "Add a profile screen with the user's photo, name, and email. Include an 'Edit Profile' button that opens an edit form."
**Less effective:** "Make it better"
See our [Prompt Writing Workshop](/guides/prompt-workshop) for detailed guidance.
The more specific, the better. Instead of:
* ❌ "Add a list"
* ✅ "Add a scrolling list of recipes with an image, title, and cooking time for each"
Think about what you would tell a human developer. Include:
* What you want
* Where it should appear
* How it should behave
* Any specific styling
Yes! You can:
* Paste screenshots of designs you like
* Share mockups or wireframes
* Show examples of apps for inspiration
* Share error screenshots for debugging
Drag images directly into the chat or use Cmd+V to paste.
Common reasons:
* Prompt was too vague
* Request conflicted with existing code
* Technical limitation the AI didn't explain
**Fix:** Be more specific, or try rephrasing. Say "That's not what I meant. I wanted X instead of Y."
Several options:
1. Tell the AI: "Undo that last change"
2. Be specific: "Remove the feature you just added"
3. Describe what you want instead
The AI maintains history and can reverse changes.
For complex requests, the AI creates an internal plan to organize its work. The AI works automatically without showing visible plan steps — you'll see code previews and tool cards as it builds.
If the AI seems stuck or going in the wrong direction, you can use `/planclear` to clear the current plan and start fresh. Use `/plan` to check the current plan status.
The `/planclear` command clears the AI's current plan, allowing you to:
* Start fresh if the AI is going in the wrong direction
* Reset after a complex feature is complete
* Clear outdated context
Type `/planclear` in the chat and press Enter.
The AI remembers your project context. Just say:
* "Continue" — Resumes the last plan
* "What were we working on?" — Gets a summary
* Start a new request — Begins fresh
Project memory persists across sessions.
The Simulator might have cached data. Try:
1. In Simulator: Device → Erase All Content and Settings
2. Rebuild by clicking "Run App"
3. Wait for the fresh build to install
Also make sure the latest build was successful.
Changes don't appear until you rebuild. After the AI makes changes:
1. Wait for it to finish
2. Click "Run App" or wait for auto-run
3. Check the Simulator for updates
If still not updating, try erasing Simulator content.
Yes! Ask it to:
* "Optimize the performance of \[feature]"
* "The app feels slow when \[action]. Make it faster."
* "Reduce the loading time for \[screen]"
Be specific about what feels slow.
Yes. The AI can:
* Analyze errors automatically
* Attempt to fix bugs (up to 3 automatic attempts)
* Accept your description of issues
For bugs, describe:
* What happens
* What should happen
* Steps to reproduce
See our [Debugging Guide](/guides/debugging) for more.
After 3 automatic fix attempts:
1. Press "Run App"
2. A popup appears
3. Click "Apply Fix" — the AI automatically analyzes and attempts a new fix
If automatic fixing isn't working, you can also:
* Message the AI describing the problem in your own words
* Try a different approach
* Ask the AI to revert and try something else
For data that needs to sync across devices or persist in the cloud, use Supabase:
1. Create a Supabase account
2. Connect it in Settings
3. Ask the AI to add features using Supabase
See our [Supabase](/integrations/supabase/overview) documentation for detailed guides.
Yes! You can integrate:
* OpenAI for AI features
* Stripe for payments
* Weather APIs
* Any REST API
Tell the AI: "Integrate \[API name] to \[what you want to do]" and provide your API key.
Type **#** in the chat input to open the Toolkit popover. Choose a command like #font, #image, #color, #sound, #data, #video, #lottie, or #3d. A file picker opens, you select your file, it attaches as an orange chip, and you describe how the AI should use it.
See [Toolkit](/toolkit/overview) for the full guide.
**Enhanced** is the default and best for most projects. It produces the best designs at low cost.
Use **Quick** for fast iteration and **Max** for complex logic.
See [AI Modes](/features/ai-modes) for details.
Yes! Select your platform on the Home Page before creating a project:
* **iPhone** — Standard mobile apps
* **iPad** — Larger canvas with sidebars
* **Mac** — Desktop apps with menu bars
See [Multi-Platform Guide](/guides/multi-platform) for details.
Break it into smaller pieces:
1. Describe the overall goal
2. Let the AI create a plan
3. Review the plan before proceeding
4. Build incrementally
5. Test each piece before moving on
Complex features are more successful when built step by step.
***
## Related FAQs
Fixing common issues
Code and Swift questions
APIs and services
Bits and plans
# General FAQs
Source: https://docs.nativeline.ai/faqs/general
Common questions about Nativeline
# General FAQs
Basic questions about what Nativeline is and who it's for.
***
Nativeline is a macOS app that lets you create native iPhone, iPad, and Mac apps using AI. You describe what you want in plain English, and the AI builds it for you. No coding experience required.
The apps you create are real, native Swift apps that run on iPhones, iPads, and Macs — and can be published to the App Store or distributed as DMG files.
Nativeline is designed for:
* **Entrepreneurs** who want to test app ideas quickly
* **Small business owners** who need a mobile presence
* **Creators** who want apps for their content/community
* **Designers** who want to prototype without coding
* **Developers** who want to speed up initial development
No programming experience is needed, but having a clear idea of what you want to build helps.
No. Nativeline is specifically designed for people who don't code. You describe what you want in everyday language, and the AI writes the code for you.
However, if you do know how to code (or have a developer friend), the Pro plan includes a Code Editor where you can view and modify the generated Swift code.
You can build a wide variety of apps for iPhone, iPad, and Mac:
* **Utility apps** — calculators, converters, timers, menu bar utilities
* **Content apps** — news readers, portfolios, catalogs
* **Social apps** — community features, messaging
* **Productivity apps** — todo lists, note-taking, habit trackers, clipboard managers
* **E-commerce** — product catalogs, shopping carts (with Stripe)
* **AI-powered apps** — chatbots, content generators (with OpenAI)
* **Mac apps** — menu bar tools, window managers, desktop utilities
Games with complex graphics are possible but more challenging. Simple games (quizzes, card games) work well.
Yes. Nativeline creates genuine Swift apps using Apple's native frameworks (SwiftUI, UIKit). These are the same technologies professional iOS developers use.
Your apps:
* Run natively on iPhones, iPads, and Macs
* Can use all platform features (camera, location, notifications, menu bar, etc.)
* Can be published to the App Store or distributed as DMG (Mac)
* Are not web wrappers or cross-platform compromises
Yes! Apps built with Nativeline can be submitted to the App Store just like any other iOS app. You'll need:
* Apple Developer Program membership (\$99/year)
* To meet Apple's App Store Review Guidelines
* Required metadata (screenshots, descriptions, etc.)
See our [Publishing](/publishing/overview) section for complete guidance.
No. Nativeline is a macOS-only application. This is because iOS app development requires Xcode and macOS—there's no way around this Apple requirement.
You need:
* macOS 15.1 (Sequoia) or later
* Mac with Apple Silicon (M1, M2, M3, M4) or Intel
* At least 30GB free storage
Key differences:
1. **Native apps** — Real Swift code, not web wrappers
2. **AI-powered** — Describe what you want, don't drag and drop
3. **Full iOS access** — Camera, location, notifications, etc.
4. **App Store ready** — Can publish like any native app
5. **No vendor lock-in** — You own the generated code
Unlike no-code platforms that create web apps wrapped in a native shell, Nativeline generates actual native iOS applications.
Nativeline uses advanced AI (similar to ChatGPT) specifically trained for iOS app development. When you describe what you want, the AI:
1. Understands your intent
2. Breaks it into components
3. Generates Swift/SwiftUI code
4. Builds and runs the app
The more specific you are, the better the results. Instead of "make a good app," try "create a recipe app where users can save their favorite recipes with photos."
You can download Nativeline and create your first project for free. This lets you see how the app works before committing.
After that, you'll need a subscription to continue building.
Yes. You can cancel anytime from the Nativeline app: Settings → Account → Manage Subscription.
After cancellation:
* You keep access until the end of your billing period
* Your projects and code remain on your Mac
* You won't be able to use AI features or upload to TestFlight
Yes! Select **Mac** from the platform selector on the Home Page when creating a new project. Mac apps run natively in a window (no simulator), and can be exported as DMG files for distribution.
See [Building for Mac](/guides/multi-platform) for details.
The Toolkit uses # commands to let you attach real assets — fonts, colors, images, sounds, data, videos, animations, and 3D models — directly into your app. Type **#** in the chat input to see all available commands.
See [Toolkit](/toolkit/overview) for the full guide.
***
## More FAQs
Installation and setup questions
Creating apps with AI
Pricing and subscription questions
TestFlight and App Store
# Getting Started FAQs
Source: https://docs.nativeline.ai/faqs/getting-started
Questions about installation and first steps
# Getting Started FAQs
Questions about installing Nativeline and getting your first app running.
***
Nativeline requires:
* **macOS 15.1 (Sequoia)** or later
* Any Mac with **Apple Silicon** (M1, M2, M3, M4 chips) or **Intel**
* At least **30GB free storage** (for Xcode and tools)
* **8GB RAM** minimum (16GB recommended)
Not sure what you have? Click the Apple menu → About This Mac.
1. Download from [nativeline.ai](https://nativeline.ai)
2. Open the downloaded file
3. Drag Nativeline to your Applications folder
4. Open Nativeline from Applications
On first launch, Nativeline will automatically install Xcode and other required tools. This can take 15-30 minutes depending on your internet speed.
Nativeline automatically installs the iOS development tools on first launch:
* **Xcode** — Apple's development environment (\~15GB)
* **Command Line Tools** — Additional development utilities
* **iOS Simulator** — For testing your apps
This is a one-time process. Subsequent launches are quick.
No. Nativeline automatically installs Xcode for you during the first launch. Just make sure you have enough storage space (at least 30GB free) and a stable internet connection.
If you already have Xcode installed, Nativeline will use your existing installation.
1. Open Nativeline
2. Click "Create Account"
3. Enter your email address
4. Check your email for an 8-digit verification code
5. Enter the code in Nativeline
6. You're in!
We use email-only authentication for simplicity and security.
Try these steps:
1. Check your spam/junk folder
2. Wait 2-3 minutes (email can be delayed)
3. Click "Resend Code" in Nativeline
4. Make sure you typed your email correctly
If still having issues, contact [support@nativeline.ai](mailto:support@nativeline.ai).
1. Click "New Project"
2. Give your project a name
3. Type a description of what you want to build
4. Press Enter and watch the AI work!
Start simple. Try: "Create a counter app with plus and minus buttons."
Projects are saved in:
```
~/Documents/Nativeline Projects/
```
Each project is a folder containing:
* Swift source code
* Asset files
* Configuration files
* Everything needed to build the app
Yes. Go to File → Open Project and navigate to your project folder.
You can also:
* Double-click a .xcodeproj file
* Drag a project folder onto the Nativeline icon
The installation will pause but should resume when your Mac wakes up. If it seems stuck:
1. Restart Nativeline
2. The installation should continue where it left off
3. If needed, Nativeline will re-download any corrupted files
This means your macOS version is too old. You need macOS 15.1 (Sequoia) or later.
To update:
1. Open System Settings
2. Go to General → Software Update
3. Download and install the latest macOS
Note: Some older Macs may not support macOS 15. Check Apple's compatibility list.
* File → Open Recent to see recent projects
* File → Open Project to browse
* Close current project first to avoid confusion
Each project opens in a separate window.
Yes, but we recommend focusing on one project at a time. Each project runs its own Simulator and uses system resources.
For best performance, close projects you're not actively working on.
***
## Related FAQs
What is Nativeline?
Creating apps with AI
Fixing common issues
Code and development questions
# Integrations FAQs
Source: https://docs.nativeline.ai/faqs/integrations
Questions about Supabase, APIs, and external services
# Integrations FAQs
Questions about connecting external services to your apps.
***
Not always. You need a backend if you want:
* User accounts that sync across devices
* Data shared between users
* Cloud storage for files
* Push notifications
* Admin dashboards
If your app only stores data locally on the device, you don't need a backend.
See our [Do You Need a Backend?](/integrations/do-you-need-backend) guide.
Supabase is a backend-as-a-service that provides:
* **Database** — Store your data in the cloud
* **Authentication** — User signup/login
* **File Storage** — Upload images, files
* **Realtime** — Live updates
It's free to start and scales with your needs. Nativeline has built-in Supabase integration.
1. Create an account at [supabase.com](https://supabase.com)
2. Create a new project
3. Copy your Project URL and anon key
4. In Nativeline's **Project Settings** tab → **Database** panel, paste your access token
5. Ask the AI to use Supabase for your features
See our [Supabase Setup Guide](/integrations/supabase/setup) for step-by-step instructions.
Supabase has a generous free tier:
* 500MB database
* 1GB file storage
* Unlimited API requests
* 2 free projects
This is enough for most personal apps and prototypes. Paid plans are available as you scale.
Nativeline is optimized for Supabase, which is recommended. Firebase can work but requires more manual configuration and the AI may be less helpful with Firebase-specific code.
For the smoothest experience, use Supabase.
With Supabase connected:
1. Enable the auth providers you want in Supabase dashboard
2. Ask the AI: "Add login and signup screens using Supabase"
3. The AI will create the necessary screens and logic
Supported methods:
* Email/password
* Magic link (email)
* Apple Sign In
* Google Sign In
See [Authentication Guide](/integrations/supabase/authentication) for details.
With Supabase:
1. Create a table in Supabase dashboard
2. Tell the AI about your data structure
3. Ask the AI to save/fetch data from Supabase
Example: "Store user recipes in Supabase with name, ingredients, and instructions fields."
Yes, though it requires more effort:
* Tell the AI your API endpoints
* Describe the expected request/response formats
* The AI will generate networking code
This is more advanced and may require some troubleshooting.
1. Get an API key from [platform.openai.com](https://platform.openai.com)
2. Tell the AI: "Add OpenAI integration with my key: sk-xxxxx"
3. Describe what you want: chatbot, content generator, etc.
See our [OpenAI Integration Guide](/integrations/external-apis/openai) for full details.
Yes, using Stripe:
1. Create a Stripe account
2. Get your API keys
3. Ask the AI to add Stripe payment integration
Note: For digital goods sold within the app, Apple requires using In-App Purchases (which take 15-30% commission).
See our [Stripe Guide](/integrations/external-apis/stripe) for details.
Apple MapKit is built into iOS:
* Ask the AI: "Add a map showing the user's location"
* The AI will use Apple's native mapping framework
* No API key needed
See [Maps & Location](/integrations/external-apis/maps) for more features.
Yes! Two options:
* **WeatherKit** (Apple's service) — Free tier, easy to use
* **OpenWeather** — Requires API key, more customization
Ask the AI: "Add weather display for the user's location using WeatherKit"
See [Weather APIs](/integrations/external-apis/weather) for setup.
Push notifications require:
1. Apple Developer account
2. Push notification capability enabled
3. A backend to send notifications (like Supabase or your own server)
Ask the AI: "Set up push notifications for my app"
Note: You can test with local notifications without a server.
Yes, most REST APIs can be integrated:
1. Get API documentation from the provider
2. Get your API key/credentials
3. Tell the AI about the API endpoints you need
4. Describe what you want to do with the data
The AI can generate networking code for most APIs.
Common issues:
* **Wrong URL** — Check the endpoint address
* **Missing/wrong API key** — Verify credentials
* **Network permissions** — iOS needs permission for network
* **CORS** — Not usually an issue for native apps
* **Rate limiting** — Slow down requests
Check the build output for specific error messages.
Best practices:
* Never commit keys to public repositories
* For very sensitive APIs, route through your own server
* Supabase Row Level Security protects user data
* Use environment-specific keys (test vs production)
For client-side apps, keys are exposed in the binary. For truly sensitive operations, use a server-side proxy.
***
## Related FAQs
Creating features
Code questions
Full Supabase docs
Third-party integrations
# Publishing FAQs
Source: https://docs.nativeline.ai/faqs/publishing
Questions about TestFlight and App Store
# Publishing FAQs
Questions about getting your app to users via TestFlight and the App Store.
***
**For testing on your own device:** No, but apps expire after 7 days.
**For TestFlight or App Store:** Yes, you need an Apple Developer Program membership (\$99/year).
There's no way around this for distribution. It's an Apple requirement for all iOS apps.
\$99 per year for individuals.
Organizations also pay \$99/year but need a D-U-N-S number (free to obtain but takes 1-2 weeks).
The fee covers:
* TestFlight distribution
* App Store publishing
* Access to developer tools and betas
* 2 technical support incidents
| Aspect | TestFlight | App Store |
| ---------- | --------------- | -------------- |
| Purpose | Beta testing | Public release |
| Audience | Invited testers | Everyone |
| Limit | 10,000 testers | Unlimited |
| Review | Quick/None | Full review |
| Expiration | 90 days | Never |
Start with TestFlight to test with real users before public launch.
1. Connect your Apple Developer account in Nativeline Settings
2. Create your app in App Store Connect
3. Click "Upload to TestFlight" in Nativeline
4. Wait for processing (10-30 minutes)
5. Invite testers in App Store Connect
See our [TestFlight Guide](/publishing/testflight/overview) for full details.
Typical times:
* **TestFlight:** 10-30 minutes (internal), 24-48 hours (first external)
* **App Store:** 24-48 hours
Can be longer for:
* First submissions
* Complex apps
* Apps with in-app purchases
* During busy periods (holidays, WWDC)
Yes. Apple reviews all apps against their guidelines. Common rejection reasons:
* App crashes or bugs
* Incomplete functionality
* Inaccurate description
* Privacy policy issues
* Using wrong payment system for digital goods
See our [Review Guidelines](/publishing/app-store/review-guidelines) to avoid rejection.
1. Read Apple's feedback carefully
2. Fix each issue mentioned
3. Upload a new build (if code changes needed)
4. Reply to Apple explaining your fixes
5. Resubmit for review
Rejections are common and fixable. Most apps get approved on second or third try.
* **Internal testers:** Up to 100 (team members)
* **External testers:** Up to 10,000 (anyone with email)
Internal testers don't require Apple review. External testers need a quick beta review for the first build.
1. Go to App Store Connect → Your App → TestFlight
2. Click "+" to add testers
3. Enter email addresses
4. Testers receive invitation email
5. They install TestFlight app, then your app
Or use a public link that anyone can use to join.
Apple limits TestFlight builds to 90 days to ensure:
* Testers use recent versions
* You're actively developing
* Security issues don't persist
Upload new builds regularly to keep testers engaged.
At minimum:
* iPhone 6.5" (1284 x 2778)
* iPhone 5.5" (1242 x 2208)
If supporting iPad:
* iPad Pro 12.9" (2048 x 2732)
You need 3-10 screenshots per device size.
See [Screenshots Guide](/publishing/app-store/screenshots) for tips.
Yes. Apple requires every app to have a privacy policy URL.
Your privacy policy must:
* Be accessible on the web
* Explain what data you collect
* Explain how data is used
* Be in the app's primary language
Free generators exist online if you need help creating one.
Yes! Options:
* **Paid upfront** — User pays to download
* **Freemium** — Free download, in-app purchases for premium
* **Subscription** — Recurring payments
* **Free with ads** — Monetize with advertising
Note: Apple takes 15-30% of App Store transactions.
* **30%** standard commission
* **15%** for subscriptions after first year
* **15%** for Small Business Program (under \$1M revenue)
This applies to app purchases and in-app purchases.
1. Make changes in Nativeline
2. Increment version/build number
3. Upload to App Store Connect
4. Submit for review
5. Once approved, release the update
Updates also go through review but typically faster than initial submissions.
Yes. In App Store Connect, you can:
* Select specific countries/regions
* Exclude certain countries
* Set different pricing by region
Consider language support when choosing regions.
1. Fix the bug in Nativeline
2. Increment build number
3. Upload and submit for review
4. Request expedited review (for critical issues)
5. Release update immediately when approved
For genuine emergencies, Apple may expedite review within 24 hours.
***
## Related FAQs
Full TestFlight docs
Full App Store docs
Fixing issues
Basic questions
# Technical FAQs
Source: https://docs.nativeline.ai/faqs/technical
Questions about code, Swift, and development
# Technical FAQs
Questions about the technical aspects of Nativeline and app development for iPhone, iPad, and Mac.
***
Nativeline generates **Swift** code using **SwiftUI** for the user interface.
* **Swift** — Apple's modern programming language
* **SwiftUI** — Apple's declarative UI framework
* Native Apple frameworks for device features (iOS, iPadOS, macOS)
These are the same technologies professional Apple developers use.
Yes, with the **Pro plan**:
1. Open your project
2. Click "Code Editor" tab
3. Browse all Swift files
You can view, search, and even modify the code manually.
Yes, with the **Pro plan**'s Code Editor. You can:
* View all Swift source files
* Make manual edits
* Fix issues yourself
* Add custom code
Edits sync with the AI's understanding of your project.
Projects are stored locally on your Mac:
```
~/Documents/Nativeline Projects/[Project Name]/
```
Each project folder contains:
* Swift source files (.swift)
* Asset files (images, icons)
* Xcode project file (.xcodeproj)
* Configuration files
Yes. Navigate to your project folder and double-click the `.xcodeproj` file. This opens the project in Xcode where you can:
* Make advanced modifications
* Use Xcode-specific features
* Debug with Xcode's tools
Note: Extensive Xcode modifications may confuse Nativeline's AI.
Yes. Your project is stored on your Mac in `~/Documents/Nativeline Projects/` and contains everything needed to:
* Open in Xcode directly
* Build independently
* Hand off to a developer
* Continue without Nativeline
You own the code. There's no export needed and no vendor lock-in.
By default, apps target recent iOS versions (typically iOS 17+).
You can tell the AI to support older versions:
"Make this app support iOS 16 and later"
Note: Older iOS support may limit available features.
Yes! Select **iPad** from the platform selector on the Home Page when creating a project. iPad apps get a larger canvas with sidebar navigation and split views.
See [Building for iPad](/quick-start/your-first-ipad-app) for a walkthrough.
Yes! Select **Mac** from the platform selector on the Home Page. Mac apps:
* Run natively in a window (no simulator needed)
* Support menu bars, keyboard shortcuts, and window management
* Can be exported as DMG files for distribution
See [Building for Mac](/quick-start/your-first-mac-app) for a walkthrough.
Nativeline offers four AI modes powered by different models:
| Mode | Best For |
| ------------ | ----------------------- |
| **Quick** | Fast iteration |
| **Enhanced** | Most projects (default) |
| **Max** | Complex logic |
You can switch modes anytime via the AI mode selector. See [AI Modes](/features/ai-modes) for details.
SwiftUI is Apple's modern UI framework that:
* Uses declarative syntax (describe what you want)
* Automatically handles many layout concerns
* Works across all Apple platforms
* Is the future of Apple development
Nativeline generates SwiftUI code for your interfaces.
UIKit is Apple's older UI framework. Nativeline primarily uses SwiftUI but can use UIKit when needed:
* Some features not yet in SwiftUI
* Specific customization needs
* Legacy integrations
The AI handles which framework to use.
Yes. The AI can add dependencies:
* "Add the Alamofire networking library"
* "Include the Kingfisher image loading package"
Swift Package Manager is preferred for modern dependencies.
**Local storage options:**
* **UserDefaults** — Simple key-value storage
* **SwiftData** — Apple's modern ORM framework
* **Core Data** — Older but powerful database
**Cloud storage:**
* **Supabase** — Recommended backend
* **CloudKit** — Apple's iCloud service
* **Custom APIs** — Your own server
Tell the AI what kind of persistence you need.
Yes. For offline support:
* Local storage for data (SwiftData, UserDefaults)
* Cache remote data locally
* Sync when connection returns
Tell the AI: "Make this feature work offline and sync when connected"
Push notifications require:
1. Apple Developer account
2. Push capability enabled
3. Backend to send notifications
With Supabase or your own server:
"Add push notifications for new messages"
See [Capabilities](/features/capabilities) for setup.
Yes! Most Apple frameworks are available:
* **HealthKit** — Health data
* **HomeKit** — Smart home
* **SiriKit** — Voice commands
* **ARKit** — Augmented reality
* **Core ML** — Machine learning
Tell the AI which framework to use. Some require capabilities enabled in Settings.
Nativeline can use Core Data, though SwiftData is preferred for new projects (it's simpler and more modern).
If you specifically need Core Data:
"Use Core Data instead of SwiftData for the database"
Yes! SwiftUI has built-in animation support:
* "Add a bounce animation when the button is tapped"
* "Animate the transition between screens"
* "Add a loading spinner animation"
Custom animations, Lottie files, and more are possible.
SwiftUI handles most responsive layout automatically. For specific needs:
* "Make this layout responsive for all iPhones"
* "Use a different layout on larger screens"
* "Stack these items vertically on smaller phones"
Yes, using StoreKit:
* "Add a premium upgrade as an in-app purchase"
* "Create a subscription for \$4.99/month"
You'll need:
* Apple Developer account
* Products configured in App Store Connect
* Testing with sandbox accounts
Nativeline generates:
* Well-structured Swift code
* Appropriate separation of concerns
* Standard iOS patterns (MVVM typically)
* Comments where helpful
A professional developer could take over the codebase.
Yes! The project folder is a standard file structure. You can:
* Initialize a Git repository
* Commit changes
* Push to GitHub/GitLab
* Collaborate with developers
Just navigate to your project folder and use standard Git commands.
***
## Related FAQs
Creating features
Mode selection questions
iPhone, iPad & Mac guide
Fixing issues
# Toolkit FAQs
Source: https://docs.nativeline.ai/faqs/toolkit
Common questions about # commands and the Toolkit
# Toolkit FAQs
The Toolkit is Nativeline's system of # commands that let you attach real assets — fonts, colors, images, sounds, data files, videos, animations, and 3D models — directly into your app. Type **#** in the chat input to see all available commands.
See the full [Toolkit documentation](/toolkit/overview).
Each command supports specific file types:
| Command | Supported Types |
| ------- | ------------------------------------ |
| #image | PNG, JPEG, GIF, HEIC, TIFF, BMP, SVG |
| #font | TTF, OTF |
| #color | Color picker (no file) |
| #sound | MP3, WAV, AIFF |
| #video | MOV, MP4, QuickTime |
| #data | JSON, CSV |
| #lottie | JSON (Lottie animation) |
| #3d | USDZ, Reality |
You can attach one file per # command per message. If you need to add multiple assets, send them in separate messages — one at a time works best so the AI can properly integrate each one.
**#color** opens a color picker instead of a file picker. You pick a color visually, then name it and describe where to use it. The color gets added to your app's asset catalog as a named color.
* **#image** adds the file to your app's asset catalog — it becomes part of your app (icons, backgrounds, UI elements)
* **Drag-and-drop** shows the AI a visual reference — used for design mockups, screenshots, or showing what you want
Use #image for app assets. Use drag-and-drop for references.
Before sending: Click the **X** on the orange file chip to remove it.
After sending: Ask the AI to remove it: "Remove the font I just added" or "Delete that image from the project."
When you use #lottie for the first time, Nativeline automatically adds the Lottie Swift package as a dependency to your project. You don't need to configure anything — it just works.
Yes. The Toolkit (# commands) is available on all plans, including Coffee and Builder.
Imported assets are added to your Xcode project bundle. Images and colors go to the asset catalog, fonts are registered in Info.plist, and other files are added as bundled resources. The AI handles all of this automatically.
***
Full Toolkit documentation
How to use # commands in chat
# Troubleshooting FAQs
Source: https://docs.nativeline.ai/faqs/troubleshooting
Solutions to common issues
# Troubleshooting FAQs
Solutions to the most common problems you might encounter.
***
## Installation Issues
**Try these steps:**
1. Check you have macOS 15.1 or later
2. Right-click the app, choose "Open" to bypass Gatekeeper
3. Go to System Settings → Privacy & Security → Allow Nativeline
4. Restart your Mac and try again
5. Re-download from nativeline.ai
**If Xcode install gets stuck:**
1. Check internet connection
2. Ensure at least 30GB free space
3. Restart Nativeline — it should resume
4. Check System Settings → Software Update for pending updates
5. Try installing Xcode manually from App Store, then reopen Nativeline
You need macOS 15.1 (Sequoia) or later.
To update:
1. System Settings → General → Software Update
2. Download and install the latest macOS
3. Some older Macs may not support macOS 15
Check Apple's compatibility list for your Mac model.
Nativeline + Xcode requires about 30GB.
To free space:
1. Empty Trash
2. Delete old Downloads
3. Use Storage Management (Apple menu → About This Mac → Storage → Manage)
4. Remove unused apps
5. Clear system caches
***
## Building Issues
**If the app won't build:**
1. Check the error message in the build output
2. Let the AI try to fix it (up to 3 attempts)
3. Describe the error to the AI in your own words
4. Try: `/planclear` to reset and start fresh
5. As last resort, create a new project and rebuild
See our [Debugging Guide](/guides/debugging) for detailed steps.
When automatic fixing fails after 3 attempts:
1. A **Continue Fixing** card appears in the chat
2. Optionally add more context in your message
3. Click **Continue Fixing** to let the AI try again
4. If still failing, describe the problem differently
5. Try: "Let's try a completely different approach"
The simulator is **embedded** in the right side of the Build tab for iPhone and iPad apps. If it's not appearing:
1. Make sure the build succeeded (check for errors in chat)
2. Wait a moment — first launch takes 30-60 seconds
3. Restart Nativeline and rebuild
4. Check that Xcode is installed
**Mac apps** run natively in their own window — there's no simulator for Mac.
**To reset the embedded Simulator:**
1. In Simulator: Device → Erase All Content and Settings
2. Wait for reset to complete
3. Click "Run App" in Nativeline
4. Fresh build should install
This clears all cached app data.
Common causes:
* Missing permission descriptions (add in Settings → Permissions)
* Invalid initial state
* Missing data the app expects
**Debug:**
1. Check build output for crash log
2. Tell the AI: "The app crashes on launch. Here's the error: \[paste error]"
3. The AI will analyze and fix
**After AI makes changes:**
1. Wait for the AI to finish completely
2. Look for "Run App" button or wait for auto-run
3. Watch for build output
4. Check Simulator after build succeeds
If still not appearing, erase Simulator content and rebuild.
***
## AI Issues
**Tips for better results:**
1. Be more specific — include details
2. Break into smaller requests
3. Try rephrasing your request
4. Share a screenshot of what you want
5. Say "That's not right, I wanted X instead"
See [Prompt Writing Workshop](/guides/prompt-workshop) for techniques.
**When AI is stuck in a loop:**
1. Type `/planclear` to clear the current plan
2. Say "Let's try a completely different approach"
3. Be more specific about what's wrong
4. Break the task into smaller pieces
5. Provide examples or reference images
Sometimes the AI reports completion but nothing was actually created, and the plan stays active (not checked off).
**To fix this:**
1. Type `/planclear` to clear the stuck plan
2. Re-request the feature with different wording
3. The AI will start fresh and complete the task
This can happen occasionally when the AI misinterprets the request. Rephrasing usually resolves it.
Possible reasons:
* Complex request taking time
* Server load (try again later)
* Large project context being processed
The AI shows a loading indicator while working. Complex tasks take more time.
You've used your monthly bit allocation.
**Options:**
* Wait for monthly reset
* Upgrade to a higher plan
Check your usage in Settings → Account.
***
## Account Issues
**Try these steps:**
1. Verify email address is correct
2. Check for 8-digit code in spam folder
3. Click "Resend Code" and wait 2-3 minutes
4. Try a different email address
5. Contact [support@nativeline.ai](mailto:support@nativeline.ai)
**Email issues:**
1. Check spam/junk folder
2. Wait 2-3 minutes (can be delayed)
3. Add nativeline.ai to your contacts
4. Click "Resend Code" in the app
5. Try a different email (Gmail, iCloud work well)
**If you paid but don't have access:**
1. Close and reopen Nativeline
2. Go to Settings → Account → Restore Purchases
3. Check the subscription is active in your Apple ID settings
4. Wait a few minutes and try again
5. Contact support with your receipt
***
## Toolkit Issues
**If typing # doesn't open the Toolkit popover:**
1. Make sure you type `#` at the beginning of a word in the chat input
2. The popover should appear with Assets and Data sections
3. If nothing happens, try deleting and retyping `#`
4. Restart Nativeline if the issue persists
**If your asset appears as an orange chip but the AI ignores it:**
1. Make sure you describe what the AI should do with the file
2. Be specific: "Use this image as the app background" not just "here's an image"
3. Check the file format is supported (see [Toolkit](/toolkit/overview))
4. Try removing the chip and re-attaching the file
Each # command supports specific formats:
* **#image** — PNG, JPEG, GIF, HEIC, TIFF, BMP, SVG
* **#font** — TTF, OTF
* **#data** — JSON, CSV
* **#sound** — MP3, WAV, AIFF
* **#video** — MOV, MP4
* **#lottie** — JSON (Lottie format)
* **#3d** — USDZ, Reality
**#color** opens a color picker, not a file picker.
***
## Publishing Issues
**Common causes:**
1. Check internet connection
2. Verify Apple Developer account is connected
3. Ensure Bundle ID matches App Store Connect
4. Check for missing app icon (1024x1024)
5. Try resetting signing certificates in Settings
See [TestFlight Troubleshooting](/publishing/testflight/troubleshooting) for more.
Apple processing can take 10-30 minutes, sometimes longer.
**If longer than 2 hours:**
1. Check [Apple System Status](https://developer.apple.com/system-status/)
2. Upload a new build with incremented number
3. Wait up to 24 hours before contacting Apple
**Handle rejection:**
1. Read the rejection reason carefully
2. Fix each issue mentioned
3. Upload new build if code changes needed
4. Reply in Resolution Center
5. Resubmit for review
See [Review Guidelines](/publishing/app-store/review-guidelines) to avoid common rejections.
**If DMG export fails:**
1. Make sure your Apple Developer account is connected
2. Check that code signing certificates are valid
3. Ensure the app builds successfully first
4. Try again — notarization can sometimes time out
5. Check internet connection (notarization requires Apple's servers)
See [DMG Export Guide](/publishing/dmg-export) for the full process.
***
## Performance Issues
**To improve performance:**
1. Close other heavy applications
2. Restart Nativeline
3. Restart your Mac
4. Check Activity Monitor for resource usage
5. Ensure enough free storage (at least 10GB)
Building apps uses significant CPU. This is normal, but:
1. Work in a well-ventilated area
2. Close unnecessary apps
3. Take breaks between heavy build sessions
4. Check that fans are working (Activity Monitor)
**Speed up builds:**
1. Close other applications
2. Quit and reopen Nativeline occasionally
3. First build is always slowest
4. Incremental builds are faster
***
## Still Stuck?
### Check the Guides
* [Debugging Guide](/guides/debugging) — Deep dive into fixing issues
* [How Do I...](/guides/how-do-i) — Quick answers for common actions
* [Fixing Build Errors](/guides/fixing-build-errors) — When automatic fixes fail
### Contact Support
Email: **[support@nativeline.ai](mailto:support@nativeline.ai)**
Include:
* What you were doing
* What happened
* What you expected
* Any error messages
* Screenshots if helpful
### Join the Community
* [Discord](https://discord.gg/nativeline) — Get help from other users
* Search for similar issues others have solved
* Share your solution to help others
***
## Related FAQs
AI and building questions
Asset and # command questions
Code and Swift questions
TestFlight and App Store
# AI Memory
Source: https://docs.nativeline.ai/features/ai-memory
How Nativeline remembers your project and gets smarter over time
# AI Memory
Nativeline's AI remembers your project — what you've built, your preferences, and the patterns you use. This memory makes the AI smarter and more helpful over time.
## What the AI Remembers
### Project Structure
The AI knows:
* What files exist in your project
* How your app is organized
* What screens and features you have
* The relationships between components
### Conversation History
The AI remembers:
* What you've asked for
* Previous design decisions
* Problems you've encountered
* Solutions that worked
For long conversations, Nativeline uses **context compression** to keep your conversation manageable while preserving important details. See [Context Management](/features/context-management) for how this works.
### Code Patterns
The AI learns:
* Your preferred coding style
* Design patterns you use
* Naming conventions
* How you structure features
### Design Preferences
The AI notices:
* Colors you like
* Spacing patterns
* Typography choices
* Layout preferences
***
## How Memory Helps
### Consistency
The AI maintains consistent style across your app:
```
"Add a settings screen"
```
Without memory: Generic settings screen
With memory: Settings screen matching your app's existing style
### Context
The AI understands references to existing features:
```
"Make the profile screen work like the settings screen"
```
The AI knows what both screens look like and can match the pattern.
### Continuity
Come back tomorrow, and the AI remembers where you left off:
```
"Continue with the checkout feature"
```
The AI recalls the checkout context and picks up where it stopped.
***
## The .nativeline Folder
Your project contains a hidden `.nativeline` folder that stores AI memory and project configuration:
```
.nativeline/
├── settings.json # App settings (identity, permissions, etc.)
├── context.md # Project context for the AI
├── plans/ # Internal plan tracking
├── patterns/ # Learned coding patterns
└── memory/ # Additional context data
```
Don't delete the `.nativeline` folder unless you want to reset the AI's memory. Your code will remain, but the AI will need to re-learn your project.
***
## Building Memory Effectively
### Be Consistent
Using consistent terminology helps the AI learn:
* Always call it "the header" (not sometimes "top bar")
* Use the same names for concepts
* Reference features by their names
### Correct Early
If the AI gets something wrong, correct it:
```
"That's not quite right. In this app, cards should always
have 16pt padding and rounded corners."
```
The AI remembers these corrections.
### Establish Patterns
Set patterns explicitly:
```
"For all forms in this app, use:
- 16pt spacing between fields
- Blue submit buttons
- Error messages below the field in red"
```
Future forms will follow these patterns automatically.
***
## Memory and Plans
Plans are part of AI memory. When you:
* Start a plan: AI remembers the goal and progress
* Continue a plan: AI picks up from last completed step
* Clear a plan (`/planclear`): Plan cleared, but project memory remains
### Resuming Work
```
"Continue where we left off"
```
The AI checks:
1. Is there an active plan? Continue that.
2. What was being built? Resume that context.
3. What patterns have been established? Apply them.
***
## When Memory Causes Issues
### Stuck Patterns
Sometimes the AI keeps trying the same approach:
**Solution:** Be explicit about wanting something different:
```
"Try a completely different approach this time.
Don't use the pattern from before."
```
### Wrong Assumptions
If the AI assumes something incorrect:
**Solution:** Correct it directly:
```
"Actually, I want the buttons to be different on this screen.
Don't follow the previous pattern here."
```
### Conflicting Information
If you've given contradictory instructions over time:
**Solution:** Clarify the current state:
```
"To be clear: all buttons in the app should now be blue.
Ignore any previous instructions about button colors."
```
***
## Resetting Memory
### Clearing the Plan
To start fresh with a new approach:
```
/planclear
```
This clears the current plan but keeps project memory.
### Clearing Conversation
Clear the conversation history in settings. This:
* Removes chat history
* Keeps your code
* AI re-learns from existing code
### Full Reset (Advanced)
To completely reset AI memory:
1. Close Nativeline
2. Delete the `.nativeline` folder in your project
3. Reopen the project
The AI will analyze your code fresh and build new memory.
***
## Memory Across Sessions
### What Persists
* Project structure knowledge
* Conversation history
* Active plans
* Learned patterns
### What's Recalculated
Each session, the AI:
* Re-reads your current code
* Updates its understanding
* Incorporates any manual changes
This means manual code changes (via Code Editor or Xcode) are automatically incorporated.
***
## Privacy and Data
### Local Storage
Memory is stored locally on your Mac:
* In your project's `.nativeline` folder
* Not uploaded to cloud
* Deleted when you delete the project
### What's Sent to AI
When you send a message:
* Your current message
* Relevant context from memory
* Current code being modified
Code is processed by the AI but not stored on Anthropic's servers.
***
## Tips for Working with Memory
Begin each session by reminding the AI what you're working on:
"I'm continuing work on the checkout feature"
Use the same names for features and elements throughout your conversations.
When the AI gets something wrong, correct it right away so it learns.
Define your design patterns at the start: "All buttons should be..."
Clear plans when you want a fresh approach, but know your established patterns will persist.
***
## Related
How conversation compression works
How plans work with AI memory
Track and restore project versions
Communicating with the AI
# AI Modes
Source: https://docs.nativeline.ai/features/ai-modes
Choose the right AI mode for your project
# AI Modes
Nativeline gives you three AI modes, each optimized for different tasks. You can switch modes anytime from the chat input bar or the home page.
***
## The Three Modes
**Fast & efficient**
| | |
| --------- | ------ |
| Speed | Fast |
| Quality | Good |
| UI Design | Good |
| Reasoning | Good |
| Cost | Lowest |
Best for rapid iteration, simple changes, and exploring ideas.
**Best for most projects** — DEFAULT
| | |
| --------- | ------ |
| Speed | Medium |
| Quality | Great |
| UI Design | Best |
| Reasoning | Good |
| Cost | Low |
Best for most projects, visual design, and polished UIs. This is the default mode and the recommended starting point.
**Deep reasoning**
| | |
| --------- | --------- |
| Speed | Medium |
| Quality | Excellent |
| UI Design | Great |
| Reasoning | Best |
| Cost | Higher |
Best for complex app logic, debugging difficult issues, and architectural decisions.
***
## Mode Comparison
| | Quick | Enhanced | Max |
| --------- | ----- | -------- | ------ |
| Speed | ●●●●○ | ●●●○○ | ●●●○○ |
| Quality | ●●●○○ | ●●●●○ | ●●●●● |
| UI Design | ●●●○○ | ●●●●● | ●●●●○ |
| Reasoning | ●●●○○ | ●●●○○ | ●●●●● |
| Cost | \$ | \$ | \$\$\$ |
***
## How to Switch Modes
Look for the AI mode selector in the chat input area at the bottom of the Build tab.
Click the current mode name to open the mode picker.
Select the mode you want to use.
Your next message will use the new mode. That's it.
You can also select your mode on the Home Page before starting a new project.
***
## When to Use Each Mode
Use Quick mode when you're trying different approaches, making small tweaks, or exploring ideas. It gives you fast responses at the lowest cost.
**Example prompts for Quick mode:**
```
"Change the button color to blue"
"Add a back button to this screen"
"Try a different layout for the list"
```
Enhanced is the default for good reason. It produces the best visual designs, polished UIs, and well-structured code. Use this for most projects.
**Example prompts for Enhanced mode:**
```
"Build a settings page with profile photo, name, and toggles"
"Create a dashboard with charts and a summary card"
"Design a modern onboarding flow with three steps"
```
Use Max when your app has intricate business logic, nested data relationships, or when you're stuck on a difficult bug. Max reasons deeply about complex problems.
**Example prompts for Max mode:**
```
"The data isn't syncing correctly between tabs — debug this"
"Build a scheduling system that handles recurring events and conflicts"
"Refactor the navigation to support deep linking"
```
***
## How Modes Affect Bits
Different modes consume bits at different rates. More powerful modes use more bits per message, but there's a nuance worth understanding.
Enhanced mode often costs the same or less than Quick mode for the same task, because it makes fewer mistakes and needs fewer iterations. It's the default for a reason.
***
## The Default: Enhanced
We recommend Enhanced mode for most users and most projects. Here's why:
* **Best-looking UIs** — Enhanced produces the most polished visual designs of any mode
* **Fewer mistakes** — It gets things right more often than Quick, saving you retries
* **Cost-effective** — Roughly the same total cost as Quick for most tasks, because fewer iterations are needed
* **Default for every new project** — You don't need to change anything to get started
Only switch away from Enhanced when you have a specific reason to. If you need faster responses for small tweaks, drop to Quick. If you're dealing with complex logic or a tough bug, step up to Max.
Switching to Quick mode to "save bits" can backfire. If the AI makes more mistakes, you'll spend more bits fixing them than you saved.
***
## Related
Learn how to use the chat workspace where you select and use AI modes
Compare plans and understand how bits work across modes
# App Identity
Source: https://docs.nativeline.ai/features/app-identity
Configure your app's name, icon, and identifiers
# App Identity
App Identity settings control how your app identifies itself — the name users see, the icon on their home screen, and the unique identifiers that distinguish your app.
## Accessing App Identity
1. Open your project
2. Click **Settings** in the sidebar
3. Select **App Identity** (or look under General)
***
## Display Name
The name shown under your app icon and in iOS Settings.
### Requirements
* Maximum 30 characters (11 visible under icon)
* No special characters that could cause issues
* Should be unique and memorable
### Tips
* Keep it short — long names get truncated
* Make it recognizable
* Consider searchability in the App Store
### Changing the Name
1. Settings → App Identity → Display Name
2. Enter new name
3. Save
Changes appear immediately in the Simulator and when you rebuild.
***
## App Icon
The icon users see on their home screen, in Settings, and throughout iOS.
### Requirements
* **Size:** 1024×1024 pixels
* **Format:** PNG
* **No transparency** — use a solid background
* **No alpha channel** — Apple rejects icons with transparency
### Guidelines
* Simple, recognizable design
* Works at small sizes (the icon is shown at various sizes)
* Consistent with iOS design language
* No photos or screenshots of other apps
### Uploading an Icon
1. Settings → App Identity → App Icon
2. Click upload or drag image
3. Preview appears showing various sizes
4. Save
Use tools like [App Icon Generator](https://appicon.co) to create properly sized assets from a single image.
***
## Version Number
The public version of your app (e.g., 1.0, 1.1, 2.0).
### Format
`major.minor.patch` — for example: `1.2.3`
* **Major:** Significant updates (2.0)
* **Minor:** New features (1.1)
* **Patch:** Bug fixes (1.0.1)
### When to Update
* Before each TestFlight upload
* Before App Store submission
* When releasing significant changes
### Changing Version
1. Settings → App Identity → Version
2. Enter new version (e.g., "1.1")
3. Save
***
## Build Number
Internal number for tracking builds. Must increase with each upload.
### Format
Any positive integer: 1, 2, 3, ... or 100, 101, 102...
### When to Update
* Every time you upload to TestFlight
* Every time you submit to App Store
* Apple requires each build number to be unique
### Strategy
Common approaches:
* Simple increment: 1, 2, 3, 4...
* Date-based: 20240115 (YYYYMMDD)
* Combined: Version + build (1001, 1002, 1003...)
***
## Bundle Identifier
A unique identifier for your app in Apple's ecosystem.
### Format
Reverse domain notation: `com.yourname.appname`
Examples:
* `com.johndoe.todolist`
* `com.mycompany.weatherapp`
* `io.startup.fitnesstrack`
### Requirements
* Must be unique worldwide
* Only letters, numbers, periods, and hyphens
* Usually matches your domain (if you have one)
* Cannot be changed after App Store submission
### Choosing a Bundle ID
If you don't have a domain, use a personal format:
* `com.yourname.appname`
* `io.yourname.appname`
Choose carefully — Bundle IDs can't be changed once your app is on the App Store.
***
## Team ID
If you have an Apple Developer account, your Team ID links your app to your account.
### Where to Find It
1. [Apple Developer Portal](https://developer.apple.com)
2. Account → Membership → Team ID
### When It's Needed
* TestFlight uploads
* App Store submission
* Capabilities requiring entitlements
***
## Quick Reference
| Setting | Where It Appears | When to Change |
| ------------ | ------------------------- | ------------------------ |
| Display Name | Home screen, iOS Settings | When you want a new name |
| App Icon | Home screen, everywhere | New branding, refresh |
| Version | App Store, Settings | Each release |
| Build Number | TestFlight, internal | Every upload |
| Bundle ID | Nowhere visible | Never (after release) |
***
## Common Tasks
1. Settings → App Identity → Display Name
2. Enter new name
3. Save and rebuild
4. For App Store, also update listing in App Store Connect
Before uploading:
1. Update Version if it's a new release
2. Always increment Build Number
3. Verify App Icon looks good
4. Check Bundle ID matches your developer account
1. Open your icon in image editor
2. Ensure no transparency (alpha channel)
3. Export as PNG without alpha
4. Re-upload to Nativeline
***
## Related
Prepare for beta distribution
Publishing requirements
# Appearance
Source: https://docs.nativeline.ai/features/appearance
Configure light mode, dark mode, and visual settings
# Appearance
Appearance settings control how your app looks in different system modes — light mode, dark mode, or following the user's system preference.
## Accessing Appearance Settings
1. Open your project
2. Go to **Settings** → **Appearance**
***
## Appearance Modes
### Light Mode
Your app always uses light colors regardless of system setting.
* Light backgrounds
* Dark text
* Consistent across all devices
### Dark Mode
Your app always uses dark colors regardless of system setting.
* Dark backgrounds
* Light text
* Good for media apps, reading apps
### System (Automatic)
Your app follows the user's iOS setting.
* Switches when user changes system mode
* Most users expect this behavior
* **Recommended for most apps**
***
## Setting Appearance Mode
### In Nativeline
1. Settings → Appearance
2. Select: Light, Dark, or System
3. Save
### Via Chat
```
Make the app follow the system appearance setting
```
or
```
Force the app to always use dark mode
```
***
## Designing for Both Modes
If you use System mode, your app needs to look good in both light and dark.
### System Colors
Use iOS system colors that adapt automatically:
| Color | Light Mode | Dark Mode |
| ---------------------- | ----------------- | ---------- |
| `.background` | White | Black |
| `.secondaryBackground` | Light gray | Dark gray |
| `.label` | Black | White |
| `.secondaryLabel` | Gray | Light gray |
| `.accent` | Your accent color | Same |
### Ask the AI
```
Make sure all colors in the app adapt properly to dark mode.
Use system colors where possible.
```
### Checking Both Modes
In the Simulator:
1. Open Settings app
2. Display & Brightness
3. Switch between Light and Dark
4. See your app update
Or: Features → Toggle Appearance (in Simulator menu)
***
## Accent Color
Your app's primary color used for:
* Buttons
* Links
* Selection highlights
* Tint color throughout
### Setting Accent Color
1. Settings → Appearance → Accent Color
2. Choose color or enter hex value
3. Save
### Via Chat
```
Use #007AFF (blue) as the app's accent color
```
***
## Status Bar
The status bar shows time, battery, signal. You can control its style:
### Light Content
White text/icons — use with dark backgrounds
### Dark Content
Black text/icons — use with light backgrounds
### Default
Follows the appearance mode
### Setting Status Bar Style
```
Use light status bar content throughout the app
```
***
## Designing Dark Mode
### Do
* ✅ Use pure black sparingly (can cause smearing on OLED)
* ✅ Use dark grays (#1C1C1E, #2C2C2E) for surfaces
* ✅ Reduce contrast for comfortable viewing
* ✅ Test in dark mode regularly
### Don't
* ❌ Use light colors that don't adapt
* ❌ Forget about images (they may need variants)
* ❌ Ignore elevation (cards should be slightly lighter)
* ❌ Use pure white text (too harsh)
***
## Images in Dark Mode
Some images need different versions:
### Problem Images
* Logos with light backgrounds
* Icons that assume light mode
* Screenshots of light UI
### Solutions
**Option 1: Transparent backgrounds**
```
Make all icons use transparent backgrounds so they work on any color
```
**Option 2: Provide both versions**
```
Add dark mode variants of the logo and important images
```
**Option 3: Color inversion**
For simple graphics, you can invert colors in dark mode.
***
## Testing Appearance
### Quick Toggle
In Simulator: Features → Toggle Appearance
### Sustained Testing
Live with your app in dark mode for a while. Issues become obvious through regular use.
### Common Issues
| Issue | Solution |
| ----------------------- | ----------------------------- |
| Text invisible | Use system colors |
| Images look wrong | Add dark mode variants |
| Too bright in dark mode | Reduce whites, use dark grays |
| Too dim in light mode | Ensure sufficient contrast |
***
## Appearance Best Practices
SwiftUI's semantic colors (`.background`, `.label`, etc.) adapt automatically. Use them instead of hard-coded colors.
Don't build in light mode and "check" dark mode later. Alternate regularly during development.
Some apps are better in fixed mode:
* Reading apps → User preference
* Photo apps → Dark mode (better for viewing)
* Business apps → Often light mode
In dark mode, "higher" surfaces should be slightly lighter. Cards on a background should be visible through subtle brightness differences, not borders.
***
## Related
All settings overview
Images and visual references
# Capabilities
Source: https://docs.nativeline.ai/features/capabilities
Enable advanced iOS features like Push Notifications and Sign in with Apple
# Capabilities
Capabilities are advanced iOS features that require special entitlements from Apple. They enable powerful functionality but require additional setup.
## What Are Capabilities?
Capabilities are different from permissions:
| Permissions | Capabilities |
| --------------------------------- | ----------------------------- |
| Runtime access (camera, location) | System-level features |
| User grants access | Requires Apple provisioning |
| Works immediately | Needs developer account setup |
***
## Available Capabilities
### Push Notifications
Send alerts to users even when the app isn't open.
**Requirements:**
* Apple Developer account (\$99/year)
* APNS (Apple Push Notification Service) setup
* Server to send notifications (or service like Firebase, OneSignal)
**Use cases:**
* New message alerts
* Order updates
* Reminders
* Marketing (with user consent)
### Sign in with Apple
Let users sign in with their Apple ID.
**Requirements:**
* Apple Developer account
* Properly configured entitlements
**Use cases:**
* User authentication
* Required if you offer other social sign-ins (Google, Facebook)
**Benefits:**
* Privacy-focused (can hide email)
* Quick, trusted sign-in
* No password to remember
### HealthKit
Access health and fitness data from the Health app.
**Requirements:**
* Apple Developer account
* Specific usage descriptions
* Health data review by Apple
**Use cases:**
* Fitness tracking apps
* Health monitoring
* Workout apps
* Nutrition apps
### HomeKit
Control smart home devices.
**Requirements:**
* Apple Developer account
* MFi (Made for iPhone) certification for accessories
**Use cases:**
* Home automation apps
* Smart device control
### CloudKit
Store data in iCloud.
**Requirements:**
* Apple Developer account
* CloudKit dashboard setup
**Use cases:**
* Sync data across user's devices
* Server-free data storage
* Sharing between users
### In-App Purchases
Sell content within your app.
**Requirements:**
* Apple Developer account
* Products configured in App Store Connect
* Review process
**Use cases:**
* Premium features
* Subscriptions
* Consumables (coins, credits)
* Digital content
### App Groups
Share data between your apps or app extensions.
**Use cases:**
* Widget data sharing
* Share extension
* Multiple apps from same developer
### Background Modes
Run tasks in the background.
**Types:**
* Audio (music apps)
* Location (navigation)
* Background fetch (refresh data)
* Remote notifications
**Note:** Apple scrutinizes background modes. Only enable what you actually need.
***
## Enabling Capabilities
### In Nativeline
1. Open your project
2. Go to **Settings** → **Capabilities**
3. Toggle on the capabilities you need
4. Complete any additional setup (API keys, etc.)
### Via Chat
You can ask:
```
Enable Push Notifications capability for this app
```
Some capabilities require additional setup in Apple Developer Portal or App Store Connect.
***
## Apple Developer Account
Most capabilities require an Apple Developer account:
**Cost:** \$99/year
**What you get:**
* Ability to use capabilities
* TestFlight distribution
* App Store submission
* Access to developer resources
**Sign up:** [developer.apple.com](https://developer.apple.com)
***
## Setting Up Common Capabilities
### Push Notifications Setup
Settings → Capabilities → Push Notifications → Enable
Certificates, IDs & Profiles → Keys → Create Key for APNS
Keep this secure — you can only download once
Use Firebase, OneSignal, or your own server with the APNS key
Add your Key ID, Team ID, and .p8 file
### Sign in with Apple Setup
Settings → Capabilities → Sign in with Apple → Enable
Identifiers → Your App ID → Enable "Sign in with Apple"
Ask AI: "Add Sign in with Apple button to the login screen"
### HealthKit Setup
Settings → Capabilities → HealthKit → Enable
Configure which health data types your app reads/writes
Explain why you need each type of health data
Ask AI: "Request HealthKit authorization for step count and workouts"
***
## Capabilities and App Review
Apple reviews capability usage. They may reject apps that:
* Don't actually use enabled capabilities
* Use capabilities inappropriately
* Don't explain capability usage clearly
* Request sensitive data without justification
### HealthKit Specific
HealthKit apps face extra scrutiny:
* Must have clear health/fitness purpose
* Need detailed privacy policy
* May require additional review time
### Sign in with Apple
If your app offers third-party sign-in (Google, Facebook), you **must** also offer Sign in with Apple. This is an App Store requirement.
***
## Troubleshooting
Common issues:
* APNS key not configured correctly
* Bundle ID doesn't match
* Device not registered for push
* Check certificate expiration
Test with Apple's Push Notifications Console first.
Check:
* Capability enabled in Developer Portal
* Bundle ID matches exactly
* Entitlements file is correct
* Testing on real device (Simulator has limitations)
* User must explicitly grant access
* Check usage description is clear
* Some data types require additional justification
* Test on real device (Simulator has limited Health data)
* Ensure Apple Developer account is connected
* Check Team ID is correct
* Regenerate provisioning profiles
* Some capabilities need explicit enabling in Developer Portal
***
## Related
Runtime permissions (camera, location, etc.)
Setting up your developer account
# Chat Interface
Source: https://docs.nativeline.ai/features/chat-interface
Your command center for building apps
# Chat Interface
The chat interface is where you spend most of your time in Nativeline. It's your command center for building, testing, and refining your app.
## Workspace Overview
When you open a project, you'll see the main workspace:
```
┌──────────────────────────────────────────────────────────────────┐
│ Toolbar (Home, Project Switcher, Simulator Settings, Profile) │
├──────────────────────────────────────────────────────────────────┤
│ Build | Database | Code | Settings │
├─────────────────────────────┬────────────────────────────────────┤
│ │ │
│ Conversation Area │ Embedded Simulator │
│ │ │
│ Your messages → (right) │ ┌──────────────────────┐ │
│ ← AI responses (left) │ │ │ │
│ Tool cards, code previews │ │ Your running app │ │
│ │ │ │ │
│ │ └──────────────────────┘ │
│ │ │
├─────────────────────────────┤ │
│ # Toolkit │ AI Mode │ Send │
│ Message Input │
└──────────────────────────────────────────────────────────────────┘
```
***
## Main Tabs
### Build Tab
Your primary workspace. Chat with the AI on the left, see your app running in the [embedded simulator](/features/embedded-simulator) on the right. For Mac projects, the chat takes the full width since Mac apps run in their own window.
### Database Tab
View and manage your Supabase database tables, schemas, and migrations. Appears when Supabase is connected. **Pro plan required.** See [Database Management](/features/database-overview).
### Code Tab
View and edit your app's Swift code directly. **Pro plan required.** See [Code Editor](/features/code-editor).
### Settings Tab
Configure your app's identity, permissions, capabilities, and appearance. See [Project Settings](/features/project-settings).
***
## Sending Messages
### Basic Input
Type your message and:
* **Enter** — Send message
* **Shift+Enter** — New line
* **Cmd+Enter** — Quick send
### AI Mode Selector
The AI mode selector sits in the chat input area. Click it to switch between:
* **Quick** — Fast & efficient, lowest cost
* **Enhanced** — Best designs, the default (recommended)
* **Max** — Deep reasoning for complex logic
See [AI Modes](/features/ai-modes) for details on choosing the right mode.
### Attaching Images
Drag and drop images into the chat, or use **Cmd+V** to paste from your clipboard:
* Up to **5 images** per message
* Formats: PNG, JPG, JPEG, GIF, WebP, HEIC
Images are used as visual references — the AI sees them and matches your designs. See [Using Images](/features/using-images) for best practices.
***
## Toolkit: # Commands
The Toolkit lets you attach real assets directly into your app. Type **#** in the chat input to open the toolkit popover.
### Available Commands
| Command | What It Adds |
| ----------- | ------------------------------------- |
| **#image** | Images to your asset catalog |
| **#font** | Custom TTF/OTF fonts |
| **#color** | Named colors (opens color picker) |
| **#sound** | Audio files (MP3, WAV, AIFF) |
| **#video** | Video files (MOV, MP4) |
| **#data** | JSON/CSV data files |
| **#lottie** | Lottie animations (auto-adds package) |
| **#3d** | 3D models (USDZ, Reality) |
### How It Works
1. Type **#** in the chat input — the toolkit popover appears
2. Click a command — a file picker opens (or color picker for #color)
3. Select your file — it appears as an **orange chip** below the input
4. Add a description: "Use this font for all headings"
5. Press Enter to send
The AI integrates the asset into your app automatically.
**#image** adds files to your app bundle. To show the AI a design reference or mockup, drag-and-drop images directly into the chat instead.
See the full [Toolkit documentation](/toolkit/overview) for details on each command.
***
## The Conversation Area
### Your Messages (Right Side)
When you send a message, it appears on the right:
* Your text
* Any attached images
* Toolkit file chips (if you used # commands)
* Timestamp
### AI Responses (Left Side)
The AI's responses include:
**Text Explanations**
The AI explains what it's doing, answers questions, or asks for clarification.
**Thinking Sections**
For complex requests, you may see collapsible thinking sections that show the AI's reasoning process. Click to expand/collapse.
**Tool Cards**
Actions the AI takes appear as cards showing:
* File operations (creating, reading, editing files)
* Build commands
* Other tool executions
**Build Status**
Indicators showing:
* **Building...** — App compiling
* **Success** — App running in the embedded simulator
* **Error** — Build failed, AI will attempt to fix
***
## Understanding AI Responses
### When Things Work
You'll see:
1. Tool cards indicating what actions are being taken
2. Files being created or edited
3. App automatically building and launching in the simulator
4. Success when the build completes
### When Errors Occur
Build failures are handled automatically:
1. AI detects the error
2. Shows what went wrong
3. Proposes a fix
4. Applies fix and rebuilds
This repeats up to 3 times. Don't panic — errors are normal. See [Debugging Guide](/guides/debugging) for details.
### When AI Needs Clarification
The AI may ask questions:
* "Did you mean the header at the top or the section title?"
* "What color for the button?"
* "Should this save locally or to the cloud?"
Answer naturally to continue.
***
## The Embedded Simulator
The simulator is embedded directly in the Build tab — no separate windows to manage:
* **Instant feedback** — See changes as builds complete
* **Real interaction** — Tap, scroll, use your app
* **Auto-launches** — Starts automatically on successful builds
Mac apps run natively in their own window instead of the simulator. The chat interface takes the full width when building Mac apps.
See [Embedded Simulator](/features/embedded-simulator) for the full guide.
***
## Conversation Management
### Scrolling History
Your conversation is saved. Scroll up to see:
* Previous requests
* What the AI built
* Earlier iterations
### Slash Commands
Nativeline supports several slash commands for power users:
| Command | What it does |
| ------------ | ----------------------------------------- |
| `/help` | Shows all available commands |
| `/plan` | Shows current plan status and progress |
| `/planclear` | Clears the current plan (keeps your code) |
| `/debug` | Toggles debug logging on/off |
`/planclear` is useful when the AI seems stuck or you want to start a new approach. It clears the internal plan but preserves all your code.
### Starting Fresh Conversation
If the conversation gets too long:
1. Clear conversation option in menu
2. Confirm
3. Your code is preserved — only chat history clears
Clearing conversation doesn't delete your app. Only the chat history is cleared. Nativeline also manages long conversations automatically with [smart context compression](/features/context-management).
***
## Keyboard Shortcuts
| Action | Shortcut |
| ------------ | ----------- |
| Send message | Enter |
| New line | Shift+Enter |
| Quick send | Cmd+Enter |
| Stop AI | Escape |
| Open Toolkit | Type **#** |
| Paste image | Cmd+V |
See [Keyboard Shortcuts](/features/keyboard-shortcuts) for the complete list.
***
## Tips for Effective Building
### Start Simple
Begin with core functionality. Add polish later.
### Use the Toolkit
Drop in your own fonts, colors, sounds, and data files with [# commands](/toolkit/overview). The AI integrates them perfectly on the first try.
### Test Frequently
Check after each change. Catching issues early saves time.
### Use Images
Visual references reduce iterations. See [Using Images](/features/using-images).
### Give Feedback
If something isn't right, tell the AI:
* "That's not what I meant..."
* "Make it more..."
* "Change the color to..."
***
## Related Features
Add fonts, colors, sounds, and more with # commands
Choose the right AI model for your project
# Code Editor
Source: https://docs.nativeline.ai/features/code-editor
View and edit Swift code directly (Pro plan feature)
# Code Editor
The Code Editor lets you see and edit the actual Swift code of your app. It's perfect for learning, making quick tweaks, and understanding what the AI creates.
The Code Editor is available on **Pro** and **Scale** plans. [Upgrade your plan](/introduction/plans-and-pricing) to access this feature.
***
## When to Use the Code Editor
### Learning Swift
Watch the AI generate code, then explore it in the editor. You'll learn:
* Swift syntax and patterns
* SwiftUI view structure
* How professional apps are organized
* iOS development best practices
### Quick Tweaks
Sometimes it's faster to edit directly:
* Changing a color value
* Adjusting spacing
* Fixing a typo in text
* Modifying a simple condition
### Debugging
When something isn't working:
* Read the code to understand what's happening
* Add print statements
* Check for obvious issues
* See exactly what the AI generated
### Reading Logs
View runtime output:
* Print statements
* Error messages
* App behavior traces
***
## The Code Editor Interface
### File Browser
On the left, your project's file structure:
```
YourApp/
├── Views/
│ ├── ContentView.swift
│ ├── HomeView.swift
│ └── SettingsView.swift
├── Models/
│ ├── Task.swift
│ └── User.swift
├── Services/
│ └── DatabaseService.swift
└── App.swift
```
Click any file to open it.
### Editor Panel
The main area shows code with:
* **Syntax highlighting** — Colors for keywords, strings, types
* **Line numbers** — For navigation and reference
* **Search** — Find text (Cmd+F)
* **Auto-indentation** — Code stays formatted
### Logs Panel
At the bottom (toggle to show):
* Build output and errors
* Print statements from your code
* Runtime logs
***
## File Organization
Nativeline organizes code into standard Swift structure:
| Folder | Contents |
| -------------- | -------------------------------------- |
| **Views/** | SwiftUI views (screens and components) |
| **Models/** | Data structures and types |
| **Services/** | API calls, database access, utilities |
| **Resources/** | Images, fonts, assets |
***
## Making Edits
### Editing Workflow
1. Navigate to the file
2. Click to open
3. Make changes
4. Save (Cmd+S)
5. App rebuilds automatically
### Example: Changing a Color
```swift theme={null}
// Before
Text("Hello")
.foregroundColor(.blue)
// After
Text("Hello")
.foregroundColor(.orange)
```
### Example: Adjusting Padding
```swift theme={null}
// Before
VStack {
// content
}
.padding(16)
// After
VStack {
// content
}
.padding(24)
```
### Example: Fixing Text
```swift theme={null}
// Before
Button("Sumbit")
// After
Button("Submit")
```
***
## Understanding Swift Code
### Views (SwiftUI)
Most UI is in SwiftUI views:
```swift theme={null}
struct HomeView: View {
var body: some View {
VStack {
Text("Welcome!")
.font(.title)
Button("Get Started") {
// action here
}
}
}
}
```
**Key concepts:**
* `struct HomeView: View` — Defines a view
* `var body: some View` — What it displays
* `VStack`, `HStack`, `ZStack` — Layout containers
* Modifiers like `.font()`, `.padding()` — Styling
### Models (Data)
Data structures:
```swift theme={null}
struct Task: Identifiable {
let id: UUID
var title: String
var isCompleted: Bool
var dueDate: Date?
}
```
### State Management
Using `@Observable`:
```swift theme={null}
@Observable
class TaskManager {
var tasks: [Task] = []
func addTask(_ title: String) {
tasks.append(Task(title: title))
}
}
```
***
## Reading Logs
### Accessing Logs
1. Open Code Editor
2. Find the Logs panel/tab
3. Run your app
4. Watch output appear
### Adding Log Statements
Ask the AI:
```
Add print statements to the save function to trace what's happening
```
Or add manually:
```swift theme={null}
print("Save button tapped")
print("Saving data: \(userData)")
```
### Log Types
| Log | Meaning |
| ---------------- | ------------------- |
| Build output | Compilation status |
| Errors | What went wrong |
| Print statements | Your debug output |
| Runtime warnings | iOS system messages |
See [Reading App Logs](/guides/app-logs) for more details.
***
## Best Practices
### Do
* ✅ Save frequently (Cmd+S)
* ✅ Make small, incremental changes
* ✅ Test after each change
* ✅ Use AI for complex changes
* ✅ Learn from the generated code
### Don't
* ❌ Make massive changes without testing
* ❌ Delete code you don't understand
* ❌ Ignore compiler errors
* ❌ Forget to save before rebuilding
***
## When Code Changes Don't Work
If your edits cause build errors:
1. **Check the error** in the Logs or chat
2. **Undo** (Cmd+Z) if you can't fix it
3. **Ask the AI:** "Fix this error: \[paste error]"
4. **Rebuild** after fixing
### Common Swift Errors
| Error | Cause | Fix |
| ------------------ | ---------------------- | -------------------- |
| Missing `}` | Unbalanced braces | Add missing brace |
| Type mismatch | Wrong data type | Check types |
| Unknown identifier | Typo or missing import | Check spelling |
| Missing `return` | Function needs return | Add return statement |
***
## Code Editor vs AI Chat
| Use Code Editor | Use AI Chat |
| ----------------- | --------------------- |
| Fixing typos | Creating new features |
| Changing values | Adding screens |
| Adjusting colors | Complex logic |
| Learning the code | Major refactoring |
| Quick tweaks | Design changes |
### Combining Both
"Create a settings screen with toggle options"
Open in Code Editor to understand what was created
Adjust colors, padding, or text directly
"Add an animation when toggles change"
***
## Keyboard Shortcuts
| Shortcut | Action |
| ----------- | -------------- |
| Cmd+S | Save file |
| Cmd+Z | Undo |
| Cmd+Shift+Z | Redo |
| Cmd+F | Find in file |
| Cmd+G | Find next |
| Cmd+/ | Toggle comment |
***
## Related
Detailed guide to debugging with logs
All available shortcuts
# Context Management
Source: https://docs.nativeline.ai/features/context-management
How Nativeline handles long conversations intelligently
As you build your app, your conversation with the AI grows. Dozens of messages, code changes, error fixes, design tweaks — it all adds up. Nativeline manages this automatically so the AI stays effective throughout your entire session.
You don't need to understand the details to use Nativeline effectively, but knowing how context management works can help you get better results in long sessions.
## How It Works
Nativeline uses a **sliding window approach** to keep the AI focused and accurate.
Here's what that means in practice:
* The AI always sees your **most recent messages** in full detail
* Earlier parts of the conversation are automatically compressed into **structured summaries** that preserve key information
* This compression happens transparently in the background — you don't need to do anything
The summaries aren't simple truncations or throwaway deletions. They're structured to retain what actually matters for building your app:
* What was built so far — every screen, feature, and component
* Design decisions you made along the way
* Code patterns and conventions established in your project
* Your stated preferences for style, behavior, and architecture
* Errors encountered and how they were resolved
### Why This Is Necessary
AI models have a limited context window — the amount of text they can process at once. In a typical app-building session, you might exchange 50 or more messages with the AI. Without context management, the AI would eventually lose track of earlier parts of the conversation or fail entirely.
Nativeline solves this by intelligently compressing older context while keeping recent messages intact. The result is an AI that stays coherent and effective no matter how long your session runs.
## What's Preserved
When context compression kicks in, Nativeline makes sure the AI retains the information it needs most:
File organization, folder hierarchy, and how views, models, and components relate to each other.
Style choices, color usage, layout patterns, and UI conventions you've established through conversation.
Naming conventions, architectural patterns (MVVM, etc.), and coding style used throughout the project.
The last several exchanges are kept in full detail — no compression is applied to recent messages.
Error history and the solutions that fixed them are also preserved, so the AI avoids repeating the same mistakes or suggesting fixes you've already tried.
### What Gets Compressed
Older parts of the conversation are condensed into summaries. This primarily affects:
* **Exact wording** of earlier messages — the AI knows what was discussed, but not your precise phrasing
* **Step-by-step debugging details** — the summary captures the problem and solution, not every intermediate attempt
* **Casual back-and-forth** — conversational exchanges ("looks good," "thanks," "try again") are condensed
The key facts, decisions, and outcomes are always preserved. Only the verbose details are trimmed.
## What You Might Notice
Context management is designed to be invisible, but in long sessions you might observe a few things:
This means context compression happened. The AI is working from a condensed version of your earlier exchanges. It still knows what was discussed — just not every word verbatim. This is completely normal and doesn't affect the quality of what it builds.
If the AI asks about something you mentioned much earlier, it's because that specific detail may not have made it into the compressed summary. Just re-state what you need. This isn't a bug — it's the AI being transparent about what it knows.
Very early conversation details may lose some nuance after compression. If something important from the beginning of your session isn't being respected, just remind the AI. A quick "remember, we decided to use tab navigation" is all it takes.
If you rejected an approach early in a long conversation, the summary might not capture that nuance. Just tell the AI you've already tried that or don't want that approach, and it will adjust.
All of this is normal behavior. It means the system is working as designed to keep your session productive.
### How to Tell If Compression Has Happened
There's no explicit indicator, but these signs suggest context compression is active:
* Your conversation has been going for a while (roughly 30+ messages)
* The AI's responses reference your project's "history" or "earlier decisions" in general terms
* The AI handles recent requests flawlessly but is vaguer about things from the start of the session
None of these are problems. They're just signals that the system is doing its job.
## When to Clear Conversation
Sometimes a fresh start is the right call. Consider clearing your conversation history when:
* The AI seems confused about the current state of your project
* You want to take your app in a completely different direction
* The conversation feels "stale" or the AI keeps referencing outdated context
* You've made major manual edits in the code editor and want the AI to re-assess from scratch
* The AI keeps going in circles on a problem
Clearing conversation doesn't delete your code — only the chat history. Your project files remain exactly as they are. The AI will re-read your project files when you send your next message.
## Best Practices
Since recent messages are always preserved in full, put important details in your latest messages rather than relying on something you said 50 messages ago. If a preference matters right now, state it right now.
If a design preference or coding convention is critical to the current task, mention it again when relevant. Don't assume the AI remembers every detail from the start of a long session.
If you find yourself in a very long conversation, consider clearing and starting fresh with a clear summary of where you are and what you want next. A focused 20-message session often produces better results than a 100-message marathon.
When you start a new direction or feature, open with your most important requirements. "I want a settings page with dark mode toggle, and it must use our existing color scheme" gives the AI clear constraints upfront.
## Context Management vs. AI Memory
It's worth understanding the difference between these two features:
| | Context Management | AI Memory |
| ---------------------- | --------------------------------------- | -------------------------------- |
| **Scope** | Single conversation | Across all sessions |
| **What it tracks** | Message history, code changes, errors | Preferences, patterns, decisions |
| **When it activates** | Automatically during long conversations | Automatically across sessions |
| **User action needed** | None | None |
Context management keeps your current session running smoothly. AI Memory remembers things across sessions — like your preferred coding style or design patterns — so you don't have to repeat yourself every time you open a project.
For most sessions, you don't need to think about context management at all. Nativeline handles it automatically.
***
How the AI remembers your preferences across sessions.
Learn how to communicate effectively with the AI.
# Data Browser
Source: https://docs.nativeline.ai/features/database-browser
View and manage your database data in a spreadsheet-style grid
**Pro plan required.**
Browse your Supabase tables in a familiar spreadsheet layout. The Data Browser gives you a direct view of the data in your database — no SQL required.
## Table List
The left sidebar shows all the tables in your Supabase database. Click any table name to load its data in the main view.
Tables are listed alphabetically. If your project has a lot of tables, you can scroll through the sidebar to find the one you need. The currently selected table is highlighted so you always know what you're looking at.
You'll see both tables you created through the AI and any tables that Supabase creates automatically (like `auth.users` for authentication). The sidebar gives you a complete picture of your database structure at a glance.
## Data Grid
Your table data is displayed in a grid layout that works like a spreadsheet:
| Feature | Details |
| --------------------- | --------------------------------------------------------- |
| **Rows** | Each row in your table is displayed as a row in the grid |
| **Columns** | Column headers show field names and their data types |
| **Horizontal scroll** | Wide tables with many columns scroll horizontally |
| **Pagination** | Large datasets are paginated so the view stays responsive |
The grid gives you a quick read of your data at a glance. You can see field values, spot patterns, and identify issues without writing any queries.
### How Data Types Display
Different column types render differently in the grid:
| Data Type | How It Displays |
| -------------------- | --------------------------------------------------- |
| `text` | Plain text, truncated if long |
| `integer` / `bigint` | Right-aligned numbers |
| `boolean` | `true` or `false` |
| `uuid` | Shortened UUID with full value on hover |
| `timestamp` | Formatted date and time |
| `jsonb` | Collapsed JSON preview, expandable in Row Inspector |
| `null` | Displayed as empty or with a null indicator |
## Searching and Filtering
Find the data you need without scrolling through hundreds of rows.
### Search
Use the search field to find specific values within the table. This searches across all visible columns so you can locate records quickly. Whether you're looking for a specific user email, a post title, or an order ID, search gets you there fast.
### Sort
Click any column header to sort by that column. Click again to reverse the sort direction. Sorting helps you find the newest records, the highest values, or spot outliers.
Common sorting patterns:
* **Sort by `created_at` descending** — See the newest records first
* **Sort by name ascending** — Alphabetical browsing
* **Sort by count or amount descending** — Find the highest values
### Filter
Filter rows by column values to narrow down what you see. This is useful when you only want to look at a subset of your data — for example, all users who signed up this month, or all posts with a specific status.
Filters are applied instantly, so you can refine your view in real time without waiting for a page reload.
## Row Inspector
Click any row to open the Row Inspector and see its full details.
This is especially useful for:
* **Long text fields** that get truncated in the grid view
* **JSON columns** that need more space to read
* **Related data** where you want to see all fields at once
* **Timestamps** and other values that benefit from a larger display
* **Array fields** that are hard to read in a single grid cell
The Row Inspector shows every field in the row with its complete value, so you never have to guess what was cut off in the grid.
## Common Use Cases
Here are the situations where the Data Browser is most valuable:
* **Verify AI-created data** — After asking the AI to seed sample data, check that it looks right
* **Debug issues** — When your app isn't showing the right data, check what's actually in the database
* **Monitor activity** — Watch for new rows appearing as users interact with your app
* **Spot data problems** — Find null values, duplicates, or unexpected entries
* **Check relationships** — Verify that foreign key values match the expected parent records
* **Validate migrations** — After applying a migration, confirm the data looks correct
### Example: Debugging a Missing Record
Say your app should display a user's profile but the page is blank. Here's how you'd use the Data Browser:
1. Open the **Data Browser** and select the `users` table
2. Search for the user by email or name
3. Check if the record exists at all
4. If it exists, look at the fields — is something null that shouldn't be?
5. Check related tables (like `profiles`) to see if the join data is there
This kind of quick investigation saves you from guessing and gets you to the root cause fast.
### Example: Verifying AI-Generated Seed Data
After asking the AI to "add 20 sample products with realistic names and prices," use the Data Browser to verify:
1. Open the `products` table
2. Check that there are 20 rows
3. Sort by `price` to make sure values are realistic (not all the same)
4. Look at `name` values to confirm they're varied and make sense
5. Check that `created_at` timestamps were set correctly
If anything looks off, you can tell the AI exactly what to fix based on what you see.
## Keyboard Shortcuts
The Data Browser supports keyboard navigation for faster browsing:
| Shortcut | Action |
| -------------- | ----------------------------------- |
| **Arrow keys** | Navigate between cells |
| **Enter** | Open Row Inspector for selected row |
| **Escape** | Close Row Inspector |
## Performance Notes
The Data Browser is designed to handle tables of any size. For very large tables (tens of thousands of rows or more), pagination keeps the view responsive. You won't load all rows at once — the browser fetches pages as you navigate.
If a table has many columns, horizontal scrolling keeps the layout clean. Column widths adjust automatically based on content, but you can scroll to see everything.
The data browser shows live data from your Supabase database. Changes you make
in your app will appear here.
The Data Browser is read-oriented — it's designed for viewing and inspecting
data. For making changes, use the SQL Editor or ask the AI through chat.
## Related
Learn about all the database management tools available in Nativeline.
Inspect the structure of your tables — columns, types, and relationships.
# Database Migrations
Source: https://docs.nativeline.ai/features/database-migrations
Track and manage schema changes to your database
**Pro plan required.**
Migrations are versioned changes to your database schema — adding tables, creating columns, setting up indexes, defining RLS policies, and more. They give you a structured history of how your database has evolved.
## How Migrations Work
When you ask the AI to change your database through chat, it doesn't modify the schema directly. Instead, it creates a migration file containing the SQL needed to make the change.
| Concept | What It Means |
| ------------------ | ----------------------------------------------------------------------- |
| **Migration file** | A SQL file that describes a specific schema change |
| **Up direction** | The SQL that applies the change (e.g., create a table) |
| **Down direction** | Conceptually, the SQL that would undo the change (e.g., drop the table) |
| **Applied** | The migration has been run against your database |
| **Pending** | The migration exists but hasn't been applied yet |
Migrations are applied in order. Each one builds on the last, so your database schema is the result of every migration that's been applied from first to most recent.
### Why Migrations Instead of Direct Changes?
Migrations give you:
* **A history** of every schema change
* **Reproducibility** — you can recreate the database from scratch by running all migrations in order
* **Visibility** — you can see exactly what SQL will run before it runs
* **Safety** — changes are explicit and reviewable, not hidden
## Viewing Migrations
The Migrations view in the Database tab shows you all migrations for your project:
* **Pending migrations** — Created by the AI but not yet applied to your database
* **Applied migrations** — Already run against your database
* **Migration SQL** — Click any migration to see the exact SQL it contains
* **Status indicators** — Quickly see which migrations are pending and which are applied
* **Timestamps** — See when each migration was created and when it was applied
This gives you full transparency into what the AI is doing to your database.
## Applying Migrations
When the AI creates a migration, it appears as pending. To apply it:
Click the pending migration to see the exact SQL it will execute. Make sure
it matches what you expect.
Click to apply the pending migration. The SQL executes against your Supabase
database.
Results show success or detailed error information. If it succeeds, the
migration is marked as applied.
You can apply migrations one at a time, giving you control over when each change takes effect.
### What Happens When You Apply
The migration SQL executes against your live Supabase database. If it succeeds, the migration is marked as applied. If it fails, you get an error message explaining what went wrong, and the migration stays pending so you can address the issue.
## Common Migration Operations
Here are the kinds of schema changes that generate migrations:
### Creating a New Table
```sql theme={null}
CREATE TABLE posts (
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
title text NOT NULL,
body text,
author_id uuid REFERENCES users(id),
created_at timestamptz DEFAULT now()
);
```
### Adding a Column
```sql theme={null}
ALTER TABLE posts ADD COLUMN status text DEFAULT 'draft';
```
### Creating an Index
```sql theme={null}
CREATE INDEX idx_posts_author ON posts(author_id);
```
### Enabling Row Level Security
```sql theme={null}
ALTER TABLE posts ENABLE ROW LEVEL SECURITY;
CREATE POLICY "Users can read all posts" ON posts
FOR SELECT USING (true);
CREATE POLICY "Users can create their own posts" ON posts
FOR INSERT WITH CHECK (auth.uid() = author_id);
```
### Adding a Foreign Key
```sql theme={null}
ALTER TABLE comments
ADD COLUMN post_id uuid REFERENCES posts(id) ON DELETE CASCADE;
```
If a migration fails, read the error message carefully. Common issues:
duplicate column names, missing foreign key references, or RLS policy
conflicts.
## Migration Best Practices
Follow these patterns to keep your database changes clean:
* **Let the AI generate migrations** — You rarely need to write them manually. Describe what you want in chat and let the AI create the migration.
* **Review before applying** — Always look at the SQL before applying. Make sure it does what you expect.
* **Apply in order** — If you have multiple pending migrations, apply them in the order they were created. Later migrations may depend on earlier ones.
* **One change per migration** — Each migration should do one logical thing. Adding a table is one migration. Adding RLS policies to that table is another. This keeps things easy to understand and debug.
## Troubleshooting Failed Migrations
The migration tries to create something that already exists. This can happen
if you manually created a table or column outside of migrations. Ask the AI
to check the current schema before generating new migrations.
The migration references a table or column that doesn't exist yet. This
usually means migrations are being applied out of order, or a prerequisite
migration failed. Check the migration order and apply any earlier pending
migrations first.
A policy with the same name already exists on the table. Policy names must be
unique per table. Ask the AI to use a different policy name, or drop the
existing policy first.
Your Supabase API key might not have the right permissions for schema changes.
Make sure you're using the service role key for migration operations.
The AI occasionally generates SQL with minor syntax issues. Copy the SQL from
the migration, paste it into the SQL Editor, fix the syntax, and run it
manually. Then ask the AI to regenerate the migration with the correction.
Migrations are generated by the AI when you ask for database changes through
chat. You rarely need to write them manually.
## Related
Learn about all the database management tools available in Nativeline.
Write and execute SQL queries directly against your database.
# Database Management
Source: https://docs.nativeline.ai/features/database-overview
Browse, query, and manage your Supabase database from Nativeline
**Pro plan required. Requires Supabase connection.**
The Database tab gives you a visual interface for managing your Supabase PostgreSQL database without leaving Nativeline. Browse tables, inspect schemas, run SQL, and track migrations — all from the same workspace where you build your app.
## What You Can Do
View and manage your data in a spreadsheet-style grid. Search, sort, filter,
and inspect rows across all your tables.
Inspect your database structure — tables, columns, types, relationships,
indexes, and RLS policies.
Write and execute raw SQL queries directly against your database for precise
control and debugging.
Track and manage versioned schema changes the AI creates when you ask for
database modifications.
## When It Appears
The Database tab shows up in your workspace tabs after you connect Supabase in Project Settings. Until then, you won't see it. Once connected, it stays available for the lifetime of the project.
If you disconnect Supabase later, the Database tab disappears. Reconnecting brings it back with all your data intact — nothing is lost on the Supabase side.
## Getting Started
Go to **Settings** and connect your Supabase project. You'll need your
project URL and API keys. See the
[Supabase Setup guide](/integrations/supabase/setup) for detailed steps.
After connecting, the **Database** tab appears in your workspace alongside
your other tabs. Click it to open.
Your tables load automatically. Click any table to view its data, or switch
to the Schema Viewer, SQL Editor, or Migrations view.
## How the Database Tab Fits Into Your Workflow
You don't have to choose between AI-driven development and manual database work. They complement each other:
| Approach | Best For |
| -------------------- | --------------------------------------------------------------------------------- |
| Ask the AI in chat | Creating tables, adding columns, writing migrations, generating CRUD logic |
| Use the Database tab | Verifying what the AI created, inspecting data, running ad-hoc queries, debugging |
Most of the time, you'll ask the AI to handle schema changes through chat. Then you'll flip to the Database tab to confirm everything looks right.
## What the AI Can Do Through Chat
You don't always need to open the Database tab. Many database operations can be handled directly through the chat interface:
* **Create tables** — "Create a posts table with title, body, author, and timestamps"
* **Add columns** — "Add a status column to the posts table with a default of draft"
* **Set up relationships** — "Add a comments table that references posts via post\_id"
* **Enable RLS** — "Add row level security to the posts table so users can only edit their own posts"
* **Seed data** — "Add 10 sample posts with realistic content"
* **Write queries** — "Show me how many users signed up each month"
The AI generates the necessary migrations and applies them. You can then verify the results in the Database tab.
You can also ask the AI to create tables, add columns, and write migrations
through chat. The Database tab lets you verify and inspect what was created.
## Database Tab vs. Supabase Dashboard
You might wonder why you'd use the Database tab when Supabase has its own dashboard. Here's the difference:
| Feature | Nativeline Database Tab | Supabase Dashboard |
| ----------------------- | -------------------------------------- | ----------------------- |
| **Context** | Right next to your code and chat | Separate browser tab |
| **AI integration** | AI can reference what you see | No AI connection |
| **Workflow** | Part of your build loop | Separate workflow |
| **Full admin features** | Core browsing, schema, SQL, migrations | Complete database admin |
The Nativeline Database tab is designed for the build loop — quick checks, verification, and debugging while you're actively developing. For advanced database administration (backups, extensions, connection pooling), you'll still use the Supabase dashboard directly.
The Database tab connects to your Supabase database using the credentials you
provided during setup. It reads and writes the same data your app uses — there's
no separate copy.
## Supported Database Features
The Database tab works with standard PostgreSQL features that Supabase supports:
* **Tables and views** — Browse any table or view in your public schema
* **All PostgreSQL data types** — text, integer, boolean, uuid, timestamp, jsonb, arrays, and more
* **Foreign keys and relationships** — See how tables connect to each other
* **Row Level Security** — View and understand RLS policies
* **Indexes** — See which columns are indexed for performance
* **Functions and triggers** — View through the SQL Editor
## Frequently Asked Questions
**Can I use the Database tab with a free plan?**
No. The Database tab requires the Pro plan. You also need to connect a Supabase project first.
**Does the Database tab work with any PostgreSQL database?**
The Database tab is designed specifically for Supabase. It uses the Supabase API to connect and manage your data. Other PostgreSQL providers are not supported.
**Will changes I make in the Database tab affect my live app?**
Yes. The Database tab connects to the same Supabase database your app uses. Any data you modify through the SQL Editor or migrations will immediately affect your app.
**Can I use the Database tab and the AI chat at the same time?**
Absolutely. You can have the Database tab open while chatting with the AI. This is the recommended workflow — ask the AI to make changes, then verify them in the Database tab.
**What if I don't see the Database tab?**
Make sure you've connected Supabase in your project settings and that you're on the Pro plan. The tab only appears after a successful Supabase connection. If you've just connected, try closing and reopening your project.
**Can the AI read my database schema when generating code?**
Yes. When Supabase is connected, the AI is aware of your database structure. It uses this context to generate accurate code that matches your tables, columns, and relationships.
## Related
Connect your Supabase project to Nativeline.
Learn how to use the AI chat to build features and manage your database.
# Schema Viewer
Source: https://docs.nativeline.ai/features/database-schema
Inspect your database structure — tables, columns, types, and relationships
**Pro plan required.**
The Schema Viewer lets you see the structure of every table in your database. Instead of guessing what columns exist or what types they use, you can inspect the full schema right inside Nativeline.
## What You Can See
The Schema Viewer surfaces all the structural details of your database:
### Columns and Data Types
Every column is listed with its PostgreSQL data type. Common types you'll encounter:
| Type | Used For |
| --------------------------- | --------------------------------------------- |
| `text` | Strings — names, descriptions, content |
| `integer` / `bigint` | Whole numbers — counts, quantities |
| `boolean` | True/false flags |
| `uuid` | Unique identifiers — primary keys, references |
| `timestamp` / `timestamptz` | Dates and times — created\_at, updated\_at |
| `jsonb` | Structured JSON data — metadata, settings |
| `float` / `numeric` | Decimal numbers — prices, coordinates |
| `text[]` / `integer[]` | Arrays of values — tags, categories |
### Keys and Constraints
* **Primary keys** — The unique identifier for each row, typically `id`
* **Foreign keys** — References to rows in other tables, defining relationships
* **Unique constraints** — Columns that must have distinct values across all rows
* **Not-null constraints** — Columns that cannot be empty
* **Check constraints** — Rules that validate column values (e.g., price must be positive)
### Default Values
See which columns have default values set. Common defaults include:
| Default | Used On |
| ------------------- | ------------------------------------ |
| `now()` | Timestamp columns like `created_at` |
| `gen_random_uuid()` | UUID primary keys |
| `true` / `false` | Boolean flags |
| `'draft'` | Status columns with an initial state |
| `0` | Numeric counters |
### Indexes
View the indexes on each table. Indexes speed up queries on frequently searched columns. The Schema Viewer shows which columns are indexed so you can understand your database's performance characteristics.
Common indexes you'll see:
* **Primary key index** — Created automatically on every primary key
* **Foreign key indexes** — Often added to speed up JOIN queries
* **Unique indexes** — Enforce uniqueness and speed up lookups (e.g., on `email`)
* **Custom indexes** — Added for columns you query frequently
### Row Level Security (RLS) Policies
Supabase uses RLS to control who can read and write data. The Schema Viewer shows you:
* Whether RLS is enabled on a table
* What policies are defined
* What operations each policy allows (SELECT, INSERT, UPDATE, DELETE)
* The conditions for each policy
Understanding RLS is important because it affects what data your app's users can access. If your app isn't showing data it should, an overly restrictive RLS policy is often the cause.
### Relationships Between Tables
See how your tables connect to each other through foreign keys. This is critical for understanding your data model — which table references which, and how records relate across tables.
For example, if `posts.author_id` references `users.id`, the Schema Viewer shows that relationship so you can understand the connection between posts and users.
## Why It Matters
The Schema Viewer isn't just informational. It directly helps you build better apps:
### Verify the AI's Work
When you ask the AI to create a table or add columns, open the Schema Viewer to confirm it did exactly what you expected. Check that column types are correct, foreign keys point to the right tables, and RLS policies are in place.
### Plan New Features
Before asking the AI to add a new feature that touches the database, review the existing schema. Understanding what tables and columns already exist helps you write better prompts and avoid duplicate structures.
### Debug Data Issues
When something isn't working right, the schema often holds the answer. A column might be the wrong type, a foreign key might be missing, or RLS might be blocking access.
When asking the AI to add features that touch the database, reference the
schema: "Add a comments table that references the posts table via post\_id."
The more specific you are about relationships, the better the result.
## Example Workflow
Here's how the Schema Viewer fits into a typical build session:
1. You ask the AI: "Create a posts table with title, body, and author"
2. The AI generates a migration and applies it
3. You open the **Schema Viewer** to verify the table structure
4. You notice the AI used `text` for `author` instead of a foreign key to `users`
5. You ask the AI: "Change author to a uuid foreign key referencing users.id"
6. You verify the updated schema in the Schema Viewer
This feedback loop — prompt, verify, refine — is how you build a solid database.
## Reading the Schema Effectively
When you open the Schema Viewer for a table, here's a systematic way to read it:
1. **Start with the primary key** — Usually `id` with type `uuid`. This confirms the table's identity column.
2. **Look at foreign keys** — These tell you how the table relates to others. A `user_id uuid REFERENCES users(id)` column means each row belongs to a user.
3. **Check data types** — Make sure they match your expectations. A `price` column should be `numeric`, not `text`.
4. **Review nullability** — Columns marked NOT NULL are required. Nullable columns are optional. This affects how your app handles forms and validation.
5. **Check RLS** — If RLS is enabled, review the policies to understand access control.
## Schema Viewer vs. Data Browser
These two tools are complementary:
| Schema Viewer | Data Browser |
| ----------------------------------------- | ------------------------------- |
| Shows table **structure** | Shows table **data** |
| Column names and types | Actual row values |
| Relationships and constraints | Live records |
| Answers "what does this table look like?" | Answers "what's in this table?" |
Use the Schema Viewer to understand your database's design. Use the Data Browser to see what's actually stored.
The Schema Viewer reflects the current state of your database. If you apply a
migration that adds a column, the Schema Viewer shows it immediately.
## Related
Learn about all the database management tools available in Nativeline.
View the actual data stored in your tables.
# SQL Editor
Source: https://docs.nativeline.ai/features/database-sql-editor
Write and execute SQL queries directly against your database
**Pro plan required.**
The SQL Editor lets you write raw SQL queries when you need precise control over your database. It's the power tool for situations where the visual browser isn't enough.
## When to Use the SQL Editor
Most of the time, you can manage your database through the AI chat or the Data Browser. The SQL Editor is for when you need something more specific:
| Use Case | Example |
| -------------------- | ------------------------------------------------------------------ |
| **Complex queries** | Joins, subqueries, aggregations the AI can't generate through chat |
| **Bulk operations** | INSERT, UPDATE, or DELETE across many rows at once |
| **Custom analytics** | Ad-hoc reports and data exploration |
| **Debugging** | Investigate data issues with targeted queries |
| **Testing queries** | Try out SQL before incorporating it into your app logic |
## How to Use
Click the **Database** tab in your workspace.
Switch to the **SQL Editor** view within the Database tab.
Type your query in the editor. You get syntax highlighting and standard
editing features to help you write correct SQL.
Run your query and see the results displayed below the editor. SELECT queries
return a results table. Other statements show affected row counts or error
messages.
## Example Queries
Here are some practical queries to get you started.
### Count users by signup month
```sql theme={null}
SELECT
date_trunc('month', created_at) AS month,
COUNT(*)
FROM users
GROUP BY month
ORDER BY month;
```
### Find posts without comments
```sql theme={null}
SELECT p.*
FROM posts p
LEFT JOIN comments c ON p.id = c.post_id
WHERE c.id IS NULL;
```
### Get the most active users
```sql theme={null}
SELECT
u.name,
COUNT(p.id) AS post_count
FROM users u
JOIN posts p ON u.id = p.author_id
GROUP BY u.id, u.name
ORDER BY post_count DESC
LIMIT 10;
```
### Check for duplicate emails
```sql theme={null}
SELECT email, COUNT(*)
FROM users
GROUP BY email
HAVING COUNT(*) > 1;
```
### View RLS policies on a table
```sql theme={null}
SELECT *
FROM pg_policies
WHERE tablename = 'posts';
```
### Insert sample data
```sql theme={null}
INSERT INTO posts (title, body, author_id)
VALUES
('First Post', 'Hello world!', '550e8400-e29b-41d4-a716-446655440000'),
('Second Post', 'Another entry.', '550e8400-e29b-41d4-a716-446655440000');
```
SQL operations execute directly against your live database. Be careful with
UPDATE and DELETE queries — there's no undo.
## Tips for Safe SQL
Writing queries against a live database requires some caution. Here are practices that will save you from mistakes:
Use SELECT queries first to verify your WHERE clause before running UPDATE or
DELETE.
For example, before running this:
```sql theme={null}
-- DON'T run this first
DELETE FROM posts WHERE status = 'draft';
```
Run this to see what would be deleted:
```sql theme={null}
-- Run this first to verify
SELECT * FROM posts WHERE status = 'draft';
```
Once you've confirmed the results look right, run the DELETE.
### Other Safety Practices
* **Start with SELECT** — Always preview what your query will affect
* **Use LIMIT** — Add `LIMIT 10` to exploratory queries so you don't pull back thousands of rows
* **Be specific with WHERE** — Broad WHERE clauses (or missing ones) can affect more rows than you expect
* **Use transactions** — Wrap multi-step operations in `BEGIN` and `COMMIT` so you can `ROLLBACK` if something goes wrong
### Using Transactions for Multi-Step Operations
When you need to make several related changes at once, wrap them in a transaction:
```sql theme={null}
BEGIN;
-- Add a new column
ALTER TABLE posts ADD COLUMN slug text;
-- Populate it from existing data
UPDATE posts SET slug = lower(replace(title, ' ', '-'));
-- Add a unique constraint
ALTER TABLE posts ADD CONSTRAINT unique_slug UNIQUE (slug);
COMMIT;
```
If any step fails, you can run `ROLLBACK` instead of `COMMIT` and none of the changes will be applied. This keeps your database consistent.
The SQL Editor is a great companion to the AI chat. If the AI generates a query
you want to tweak, copy it into the SQL Editor to modify and test it yourself.
## SQL Editor vs. AI Chat
Both can execute SQL, but they serve different purposes:
| SQL Editor | AI Chat |
| ---------------------------------- | ------------------------------------------ |
| You write the SQL yourself | AI generates SQL from your description |
| Full control over every detail | Faster for common operations |
| Best for debugging and exploration | Best for creating tables, migrations, CRUD |
| Results displayed in a table | Results described in conversation |
Use the AI chat when you know *what* you want but don't want to write the SQL. Use the SQL Editor when you need precise control over *how* the query works.
## Related
Learn about all the database management tools available in Nativeline.
Track versioned schema changes to your database.
# Embedded Simulator
Source: https://docs.nativeline.ai/features/embedded-simulator
Test your app instantly, right inside Nativeline
# Embedded Simulator
The embedded simulator lives right inside Nativeline. No juggling windows, no switching apps. You build with chat on the left, and your app runs on the right.
## How It Works
When you open the **Build** tab, the right side of your workspace becomes a live simulator. Every time you make a change through chat and the build succeeds, your app automatically launches and updates in that same view.
```
┌─────────────────────────────────────────────────────────────────┐
│ Toolbar │
├────────────────┬────────────────────────────────────────────────┤
│ │ │
│ Tabs │ ┌──────────────┐ ┌──────────────────┐ │
│ │ │ │ │ │ │
│ - Build │ │ Chat + │ │ Embedded │ │
│ - Database │ │ AI Responses│ │ Simulator │ │
│ - Code │ │ │ │ │ │
│ - Settings │ │ │ │ [ iPhone ] │ │
│ │ │ │ │ [ Your App ] │ │
│ │ │ │ │ │ │
│ │ └──────────────┘ └──────────────────┘ │
│ │ │
│ │ ┌───────────────────────────────────────┐ │
│ │ │ Message Input │ │
│ │ └───────────────────────────────────────┘ │
└────────────────┴────────────────────────────────────────────────┘
```
No separate Simulator app. No window management. Everything is right where you need it.
***
## Getting Started
Select a project from the Nativeline home screen or create a new one.
Make sure the **Build** tab is selected on the left sidebar. The simulator panel appears on the right side of the workspace.
Describe what you want to build or change. The AI writes the code and kicks off a build automatically.
When the build succeeds, your app launches in the embedded simulator. You can interact with it immediately.
The embedded simulator updates automatically after each successful build. Just keep chatting and watch your changes appear.
***
## Interacting with the Simulator
The simulator responds to your mouse and keyboard just like a real device. Click inside the simulator frame and start using your app.
| Action | How |
| ---------- | ----------------------------------- |
| Tap | Click |
| Scroll | Click and drag, or two-finger swipe |
| Swipe | Click and drag |
| Long press | Click and hold |
| Pinch/zoom | Option + click and drag |
| Home | Cmd+Shift+H |
| Rotate | Cmd+Left/Right Arrow |
### Text Input
Click on any text field in the simulator and type with your Mac keyboard. The simulator uses your hardware keyboard by default.
***
## Device Selection
You can change the simulated device to test how your app looks and feels on different screen sizes. Look for the device selector in the simulator toolbar.
| Device | Best For |
| ----------------- | ------------------------------ |
| iPhone SE | Small screens, compact layouts |
| iPhone 16 | Standard size, most common |
| iPhone 16 Pro Max | Large screens, edge cases |
| iPad | Tablet layouts, multitasking |
***
## Appearance
Toggle between **light mode** and **dark mode** directly from the simulator to make sure your app looks great in both. This is especially useful if your app supports dynamic colors or adaptive styling.
***
## Platform Differences
Shows an iPhone simulator frame with your app running inside. Full touch interaction support.
Shows an iPad simulator frame. Great for testing tablet-specific layouts and multitasking.
Your app runs natively in a window on your Mac. No simulator needed.
When building for Mac, your app runs natively in a window on your Mac. There's no simulator — you're testing the real thing.
***
## Build States
As your app compiles and launches, the simulator area shows what's happening:
| State | What You'll See |
| -------------- | ------------------------------------------------------- |
| **Building** | A progress indicator while your code compiles |
| **Installing** | The app is being installed on the virtual device |
| **Running** | Your app is live and interactive |
| **Error** | The build failed — check the chat for details and fixes |
***
## First Launch
The first time the simulator boots, expect it to take **30 to 60 seconds**. It needs to spin up the virtual device and load iOS.
After that initial boot, subsequent launches are much faster. The simulator stays warm in the background, so rebuilds appear almost instantly.
***
## Screenshots and Recording
While the simulator is focused, you can capture what's on screen:
* **Screenshot:** Cmd+S (saved to your Desktop)
* **Screen Recording:** Use the Simulator menu to start and stop recording
These are great for sharing progress, reporting bugs, or creating assets for your App Store listing.
***
## What the Simulator Can't Do
The simulator covers most of what you need for development, but some things require a real device:
| Not Available | What to Do Instead |
| -------------------- | ---------------------------------------------- |
| Real camera | Use the photo library to test image picking |
| Actual GPS | Use simulated locations (Features menu) |
| Push notifications | Local notifications work fine for testing |
| Accurate performance | Deploy to TestFlight and test on a real device |
| Face ID hardware | Use simulated Face ID (Features menu) |
For anything the simulator can't handle, deploy your app via TestFlight and test on a real iPhone.
***
## Troubleshooting
The simulator can take 30 to 60 seconds to appear on first boot. Make sure:
* The **Build** tab is selected (not Code or Settings)
* You've sent at least one message to trigger a build
* You're building for iPhone or iPad (Mac apps run in a native window)
If it still doesn't appear, try restarting Nativeline.
* Check the chat for build errors — the AI usually explains what went wrong
* Make sure the build has fully completed (watch for the success indicator)
* The app may have launched to a blank screen if there's a runtime error — check the chat for details
* Close other heavy applications on your Mac
* Try a simpler device (iPhone SE instead of Pro Max)
* Restart Nativeline to reset the simulator
* Make sure your Mac has enough free memory
* Click directly inside the simulator frame — clicks outside it won't register
* Make sure the simulator has finished loading (wait for the app to fully appear)
* If the app is frozen, send another message in chat to trigger a fresh build
***
## Related
Learn how to build your app through conversation
Test on real devices with TestFlight
# Home Page
Source: https://docs.nativeline.ai/features/home-page
Your launchpad for building apps
The home page is the first thing you see after onboarding. It's where every project begins — describe what you want to build, pick a platform, and go.
Everything on the home page is designed to get you from idea to building as quickly as possible.
## Creating a New App
At the center of the home page is a chat input with the placeholder **"Tell me about the app you're imagining..."**. This is where you describe your app idea in plain language. Be as detailed or as brief as you want — the AI works with whatever you give it.
Before you hit Enter, configure a few options:
Select **iPhone**, **iPad**, or **Mac** as your target platform. This determines the UI patterns, simulator, and distribution options for your project.
The platform selector is right above the chat input. Click the platform you want before typing your description.
Choose the AI model that powers your build:
| Mode | Best for | Speed |
| ---------------------- | --------------------------------------------- | -------- |
| **Quick** | Simple apps, fast iteration | Fastest |
| **Enhanced** (default) | Most projects — balanced speed and quality | Moderate |
| **Max** | Complex apps that need the most capable model | Slowest |
If you're not sure, stick with Enhanced. It's the default for a reason — it handles most projects well without being slow.
Paste or drag images into the input as visual references. Use screenshots of apps you like, wireframes, or design mockups to guide the AI.
The AI will analyze your images and use them to inform the design of your app. This is especially useful when you have a specific look in mind but don't know how to describe it in words.
Press **Enter** or click **Create** to start. You'll be taken to the Project Wizard to finalize your app's style and name.
### Writing a Good App Description
Your initial description shapes what the AI builds. Here are some examples:
**Minimal description** — works fine, the AI fills in the gaps:
```
A todo list app
```
**Detailed description** — gives the AI more to work with:
```
A fitness tracker that lets me log daily workouts, track progress
with charts over time, and set weekly goals. I want a clean,
modern design with a dark color scheme.
```
**Description with visual reference** — combine text with an attached screenshot:
```
Something like this [attached screenshot] but with a tab bar
at the bottom for Home, Workouts, and Profile.
```
All three approaches work. The AI adapts to whatever level of detail you provide.
## App Suggestion Carousel
Not sure what to build? The home page features three rows of scrolling app ideas — one row per platform. These suggestions are designed to spark inspiration and show you what's possible.
* Fitness tracker
* Meditation timer
* Habit streaks
* Recipe organizer
* Mood journal
* Expense splitter
* Flashcard quiz
* Water reminder
* Sleep tracker
* Daily planner
* Recipe manager
* Drawing canvas
* PDF annotator
* Study planner
* Mood board creator
* Project dashboard
* Reading tracker
* Note-taking app
* Photo collage maker
* Menu bar utility
* Clipboard manager
* Window manager
* Markdown editor
* Pomodoro timer
* System monitor
* Quick launcher
* File organizer
* Bookmark manager
Click any suggestion to use it as your starting prompt. It drops the text into the chat input so you can edit it or add more detail before creating.
Suggestions are just starting points. You can modify them, combine ideas, or ignore them entirely and write your own description from scratch.
## Recent Projects
Below the chat input, you'll find a grid of your existing projects sorted by most recent. This is your project library — every app you've created lives here.
Each project card shows:
* **Project name** — the name you chose in the wizard
* **Creation date** — when the project was first created
Click any project to open it and pick up where you left off. Your conversation history, code, and all settings are preserved exactly as you left them.
### Managing Your Projects
Your recent projects grid updates automatically as you create new projects. The most recently accessed projects appear first, so the apps you're actively working on are always at the top.
If you have many projects, scroll down to find older ones. There's no limit to how many projects you can have.
The platform you select here determines whether you're building an iPhone, iPad, or Mac app. You can't change this after project creation.
## What Happens Next
Once you hit Create, Nativeline takes your description and opens the Project Wizard. There you'll choose a visual style, pick colors, and name your app before the AI starts building.
The whole process from home page to a working app takes just a few minutes:
1. **Home page** — Describe your app and pick a platform
2. **Wizard** — Choose style, colors, and a name
3. **Chat interface** — The AI builds your app and you iterate together
***
Learn how to talk to the AI and iterate on your app.
Customize your app's style, colors, and name before building.
# Keyboard Shortcuts
Source: https://docs.nativeline.ai/features/keyboard-shortcuts
Speed up your workflow with keyboard shortcuts
# Keyboard Shortcuts
Master these shortcuts to build faster in Nativeline.
***
## Chat Interface
| Shortcut | Action |
| --------------- | ------------------------------------ |
| **Enter** | Send message |
| **Shift+Enter** | New line in message |
| **Cmd+Enter** | Quick send |
| **Escape** | Stop AI / Cancel |
| **#** | Open Toolkit popover (attach assets) |
| **/** | Open slash commands menu |
***
## Code Editor (Pro)
| Shortcut | Action |
| --------------- | -------------- |
| **Cmd+S** | Save file |
| **Cmd+Z** | Undo |
| **Cmd+Shift+Z** | Redo |
| **Cmd+F** | Find in file |
| **Cmd+G** | Find next |
| **Cmd+Shift+G** | Find previous |
| **Cmd+/** | Toggle comment |
| **Cmd+]** | Indent right |
| **Cmd+\[** | Indent left |
| **Cmd+A** | Select all |
| **Cmd+C** | Copy |
| **Cmd+V** | Paste |
| **Cmd+X** | Cut |
***
## Embedded Simulator (iPhone & iPad)
| Shortcut | Action |
| ------------------- | ---------------------- |
| **Cmd+Shift+H** | Home button |
| **Cmd+Left Arrow** | Rotate left |
| **Cmd+Right Arrow** | Rotate right |
| **Cmd+K** | Toggle keyboard |
| **Cmd+S** | Screenshot |
| **Cmd+R** | Reboot device |
| **Cmd+Shift+A** | Toggle slow animations |
| **Cmd+1** | Scale to 100% |
| **Cmd+2** | Scale to 75% |
| **Cmd+3** | Scale to 50% |
| **Cmd+4** | Scale to 33% |
| **Cmd+5** | Scale to 25% |
### Simulator Interactions
| Action | How |
| --------------- | ------------------------------ |
| Tap | Click |
| Scroll | Two-finger swipe or click-drag |
| Swipe | Click and drag |
| Long press | Click and hold |
| Pinch/Zoom | Option + drag |
| Two-finger drag | Option + Shift + drag |
***
## General Mac
| Shortcut | Action |
| --------------- | ---------------------------- |
| **Cmd+,** | Preferences |
| **Cmd+Q** | Quit application |
| **Cmd+W** | Close window |
| **Cmd+M** | Minimize |
| **Cmd+Tab** | Switch apps |
| **Cmd+\`** | Switch windows (same app) |
| **Cmd+Shift+4** | Screenshot selection |
| **Cmd+Shift+5** | Screenshot/Recording options |
***
## Quick Actions
### Toolkit
Type `#` in chat to open the Toolkit popover and attach assets (images, fonts, colors, data, sounds, videos, animations, 3D models).
### Clear Plan
Type `/planclear` in chat to clear the current AI plan.
### Commands
Type `/` in chat to see available commands.
***
## Tips for Speed
Use **Enter** to send immediately. No need to click the send button.
**Shift+Enter** creates a new line without sending. Write longer, formatted prompts.
Press **Escape** to stop the AI if something's going wrong.
**Cmd+S** saves and triggers rebuild. Make it automatic muscle memory.
**Cmd+Shift+H** for home is faster than clicking the home indicator.
Type **#** to open the Toolkit popover. Pick a command, select your file, and it's attached as a chip.
***
## Customization
Currently, keyboard shortcuts cannot be customized. This may be available in future updates.
***
## Printing This Page
For quick reference, you can print this page or save it as PDF:
* **Cmd+P** → Save as PDF
***
## Related
Master the primary workspace
All # commands for attaching assets
Testing your app
Pro feature for editing code
# Features Overview
Source: https://docs.nativeline.ai/features/overview
Explore everything Nativeline can do
# Features
Nativeline packs powerful tools for building iPhone, iPad, and Mac apps. This section covers everything you need to know about each feature.
## Core Features
Your command center for building. Communicate with the AI, watch your app take shape, and iterate in real-time.
Three AI modes — Quick, Enhanced, and Max — so you can optimize for speed, design quality, or deep reasoning.
Drop fonts, colors, images, sounds, data, videos, animations, and 3D models into your app with # commands.
Test your app instantly, right inside Nativeline. Mac apps run natively in a window.
Show the AI what you want with screenshots and mockups. Visual references dramatically improve results.
How Nativeline remembers your project — context, patterns, and history that make the AI smarter over time.
Your launchpad for creating new apps. Select your platform, choose an AI mode, and describe your idea.
Customize your app's style, colors, and name before the AI starts building.
***
## Project Settings
Configure how your app looks, behaves, and what it can access.
All the ways you can customize your app's configuration in one place.
Your app's name, icon, version, and bundle identifier — everything that identifies your app.
Camera, location, photos, and more. Control what device features your app can access.
Advanced features like Push Notifications, Sign in with Apple, HealthKit, and more.
Light mode, dark mode, and system appearance settings.
***
## Pro Features
Available on Pro and Scale plans.
View and edit Swift code directly. Learn from AI-generated code, make quick tweaks, and debug issues.
Browse tables, view schemas, write SQL queries, and manage migrations — all from a dedicated Database tab.
Track every change with automatic version history. Restore previous versions anytime.
Speed up your workflow with keyboard shortcuts for common actions.
***
## Quick Comparison
| Feature | Builder | Pro | Scale |
| -------------------- | ------- | --- | ----- |
| Chat Interface | ✅ | ✅ | ✅ |
| AI Modes | ✅ | ✅ | ✅ |
| Toolkit (# Commands) | ✅ | ✅ | ✅ |
| Image References | ✅ | ✅ | ✅ |
| AI Memory | ✅ | ✅ | ✅ |
| Embedded Simulator | ✅ | ✅ | ✅ |
| Project Settings | ✅ | ✅ | ✅ |
| iPhone, iPad, & Mac | ✅ | ✅ | ✅ |
| Code Editor | ❌ | ✅ | ✅ |
| Database Management | ❌ | ✅ | ✅ |
| App Logs | ❌ | ✅ | ✅ |
| Version History | ❌ | ✅ | ✅ |
***
## Most Used Features
Based on what users do most:
1. **Chat Interface** — The core of building
2. **Toolkit** — Adding assets with # commands
3. **Embedded Simulator** — Testing and iteration
4. **AI Modes** — Picking the right model
5. **Project Settings** — Customizing app behavior
6. **Code Editor** — Quick tweaks and learning (Pro)
***
## Getting Started
If you're new, start here:
Learn how to use your primary building tool
Add real assets to your app with # commands
# Permissions
Source: https://docs.nativeline.ai/features/permissions
Control what device features your app can access
# Permissions
iOS apps must ask for permission to access certain device features. This protects user privacy and gives them control over their data.
## How Permissions Work
1. You enable a permission in Nativeline settings
2. You provide a **usage description** (why your app needs it)
3. When your app tries to use the feature, iOS shows a prompt
4. User grants or denies access
5. Your app respects their choice
***
## Available Permissions
### Camera
**Use for:** Taking photos, recording video, QR scanning
**Usage description example:**
> "This app needs camera access to take photos for your profile."
### Photo Library
**Use for:** Selecting existing photos, saving images
**Usage description example:**
> "This app needs access to your photos to let you choose images for posts."
### Location
**Two types:**
* **When In Use:** Only while app is open
* **Always:** Even in background (rare, requires justification)
**Usage description example:**
> "This app uses your location to show nearby restaurants."
### Microphone
**Use for:** Voice recording, audio messages, voice notes
**Usage description example:**
> "This app needs microphone access to record voice notes."
### Contacts
**Use for:** Importing contacts, finding friends
**Usage description example:**
> "This app accesses your contacts to help you find friends who also use the app."
### Calendar
**Use for:** Reading/writing calendar events
**Usage description example:**
> "This app needs calendar access to add events for your scheduled tasks."
### Reminders
**Use for:** Reading/writing reminders
**Usage description example:**
> "This app needs reminders access to sync your tasks with iOS Reminders."
### Motion & Fitness
**Use for:** Step counting, workout tracking
**Usage description example:**
> "This app tracks your steps to calculate your daily activity."
### Bluetooth
**Use for:** Connecting to Bluetooth devices
**Usage description example:**
> "This app uses Bluetooth to connect to your fitness tracker."
### Face ID / Touch ID
**Use for:** Biometric authentication
**Usage description example:**
> "This app uses Face ID to securely unlock your data."
### Tracking (App Tracking Transparency)
**Use for:** Tracking users across apps/websites
**Usage description example:**
> "This app uses tracking to show you relevant ads."
Most apps don't need tracking permission. Only enable if you're using advertising SDKs that require it.
***
## Enabling Permissions
### In Nativeline
1. Open your project
2. Go to **Settings** → **Permissions**
3. Toggle on the permissions you need
4. Enter a usage description for each
### Via Chat
You can also ask the AI:
```
Add camera permission to the app with the description
"Take photos to share with friends"
```
***
## Writing Good Usage Descriptions
### Do
* ✅ Explain the specific feature that needs the permission
* ✅ Be clear and concise
* ✅ Describe the benefit to the user
### Don't
* ❌ Be vague: "This app needs access"
* ❌ Be technical: "Required for AVCaptureSession"
* ❌ Sound demanding: "You must allow access"
### Examples
| Permission | Bad | Good |
| ---------- | ---------------------- | -------------------------------------- |
| Camera | "Camera access needed" | "Take photos to add to your recipes" |
| Location | "Location required" | "Find restaurants near you" |
| Photos | "Photo access" | "Select photos to share in your posts" |
***
## Permission States
Users can grant or deny permissions:
| State | Meaning | What to Do |
| ------------------ | ------------------------ | ----------------------------------- |
| **Not Determined** | Haven't asked yet | First request will prompt |
| **Authorized** | User said yes | Feature works normally |
| **Denied** | User said no | Show explanation, guide to Settings |
| **Restricted** | Device-level restriction | Feature unavailable |
### Handling Denied Permissions
If a user denies permission:
1. Explain why the feature needs the permission
2. Provide a button to open Settings
3. Let them change their mind
Ask the AI:
```
When camera permission is denied, show a message explaining
why we need it and a button to open Settings.
```
***
## Testing Permissions
### In Simulator
Most permissions work in the Simulator:
* Photo Library (has sample photos)
* Location (can set custom location)
* Notifications
Some require a real device:
* Camera (Simulator has no camera)
* Face ID (use "Features → Face ID" menu to simulate)
### Resetting Permissions
To test the permission prompt again:
**Simulator:**
Device → Erase All Content and Settings
**Real device:**
Settings → General → Transfer or Reset → Reset → Reset Location & Privacy
***
## Common Permission Combinations
### Photo App
* Camera (take photos)
* Photo Library (select/save photos)
### Social App
* Camera (profile photos, posts)
* Photo Library (upload existing photos)
* Contacts (find friends)
* Notifications (alerts)
### Fitness App
* Location (track routes)
* Motion & Fitness (step counting)
* HealthKit (via Capabilities)
### Navigation App
* Location (always, for background navigation)
* Notifications (arrival alerts)
***
## Permission Best Practices
Don't enable permissions "just in case." Users are suspicious of apps requesting unnecessary access.
Request permissions when the user tries to use the feature, not at app launch. Context helps users understand why.
Don't make the app unusable if a permission is denied. Provide alternatives or explain what's limited.
For sensitive permissions, show your own explanation before triggering the system prompt. Users are more likely to accept when they understand.
***
## App Store Requirements
Apple reviews permission usage. They may reject apps that:
* Request unnecessary permissions
* Have vague usage descriptions
* Don't actually use the permissions they request
* Access data without clear user benefit
Make sure every permission has a legitimate, user-facing feature.
***
## Related
Advanced features like HealthKit
All settings overview
# Project Settings
Source: https://docs.nativeline.ai/features/project-settings
Configure your app's identity, permissions, and capabilities
# Project Settings
Project Settings is where you configure everything about your app — its name, icon, what device features it can access, and more.
## Accessing Settings
1. Open your project in Nativeline
2. Click the **Settings** tab in the sidebar
3. Browse the settings categories
***
## Settings Categories
Name, icon, version, bundle ID
Camera, location, photos, etc.
Push notifications, Sign in with Apple, etc.
Light mode, dark mode, colors
***
## App Identity
Control how your app identifies itself:
| Setting | Description |
| ---------------- | ------------------------------- |
| **Display Name** | Name shown under app icon |
| **App Icon** | The icon users see |
| **Version** | Version number (1.0, 1.1, etc.) |
| **Build Number** | Internal build identifier |
| **Bundle ID** | Unique app identifier |
[Learn more about App Identity →](/features/app-identity)
***
## Permissions
Control what device features your app can access:
| Permission | Use Case |
| ----------------- | ------------------------- |
| **Camera** | Taking photos/videos |
| **Photo Library** | Selecting existing photos |
| **Location** | Maps, local content |
| **Microphone** | Audio recording |
| **Contacts** | Accessing address book |
| **Calendar** | Reading/writing events |
| **Notifications** | Push alerts |
Each permission requires a **usage description** — a message explaining why your app needs access.
[Learn more about Permissions →](/features/permissions)
***
## Capabilities
Advanced iOS features that require special entitlements:
| Capability | What It Enables |
| ---------------------- | ----------------------- |
| **Push Notifications** | Send alerts to users |
| **Sign in with Apple** | Apple ID authentication |
| **HealthKit** | Access health data |
| **HomeKit** | Smart home control |
| **CloudKit** | iCloud storage |
| **In-App Purchase** | Selling content |
Some capabilities require an Apple Developer account.
[Learn more about Capabilities →](/features/capabilities)
***
## Appearance
Control your app's visual presentation:
| Setting | Options |
| ------------------- | --------------------- |
| **Appearance Mode** | Light, Dark, System |
| **Accent Color** | Primary app color |
| **Status Bar** | Light or dark content |
[Learn more about Appearance →](/features/appearance)
***
## When to Use Settings vs Chat
### Use Settings For:
* Changing app name/icon
* Adding permissions
* Enabling capabilities
* Setting appearance mode
### Use Chat For:
* Designing UI
* Adding features
* Creating screens
* Business logic
***
## Settings and TestFlight
Before publishing to TestFlight, review:
1. **App Identity** — Name and icon correct?
2. **Version** — Updated version number?
3. **Permissions** — All needed permissions enabled?
4. **Capabilities** — Required capabilities active?
[Publishing to TestFlight →](/publishing/testflight/overview)
***
## Common Settings Tasks
Settings → App Identity → Display Name
Settings → App Identity → App Icon → Upload new image
Settings → Permissions → Camera → Enable
Settings → Capabilities → Push Notifications → Enable
*Requires Apple Developer account*
Settings → Appearance → Mode → System (or Dark)
***
## Related Pages
Name, icon, and identifiers
Device feature access
Advanced iOS features
Visual settings
# Using Images
Source: https://docs.nativeline.ai/features/using-images
Show the AI what you want with visual references
# Using Images
A picture is worth a thousand words — and tokens. Visual references help the AI understand exactly what you want, reducing iterations and getting better results faster.
## Why Use Images?
### Without Images
```
Create a card with the title at the top, then an image below it,
then some description text, then a price on the right side,
and a favorite button that's a heart icon in the corner...
```
→ Multiple iterations to get it right
### With Images
```
Make my cards look like this [attached screenshot]
```
→ AI sees exactly what you want, often gets it first try
***
## What to Attach
### Screenshots from Other Apps
Find an app with a UI element you like:
1. Screenshot it
2. Drag into Nativeline chat
3. "Make my \[element] look like this"
### Design Mockups
Create mockups in:
* **Figma** — Professional design tool
* **Sketch** — Mac design app
* **Canva** — Easy online design
* **Paper sketches** — Take a photo
### Reference Images
Any image that shows what you want:
* UI patterns from websites
* Style guides
* Color palettes
* Icon examples
### Sketches and Wireframes
Hand-drawn sketches work great:
1. Sketch your layout on paper
2. Take a photo
3. "Implement this layout"
***
## How to Attach Images
### Drag and Drop
1. Find the image file
2. Drag it onto the Nativeline chat
3. It attaches to your message
### Copy and Paste
1. Copy an image (Cmd+C)
2. Paste in the chat (Cmd+V)
### Screenshot Directly
1. Take a screenshot (Cmd+Shift+4)
2. Drag the saved file to chat
3. Or copy and paste directly
***
## Image Guidelines
### Supported Formats
* PNG
* JPG / JPEG
* GIF
* WebP
* HEIC
### Size Limits
* Up to **5 images** per message
* Images are automatically optimized
### Best Practices
**Crop to the relevant area.** Don't show your entire screen — focus on the specific element.
**Highlight what matters.** Use annotations or arrows to point out specific details.
**Show context when needed.** If the element's position matters, include surrounding areas.
***
## Effective Image Prompts
### Be Specific About What to Copy
**Vague:**
```
Make it look like this [image]
```
**Specific:**
```
Copy the card layout from this image:
- Same spacing and proportions
- Similar shadow style
- Keep the price position
But use my app's blue color scheme instead of their green.
```
### Reference Multiple Images
```
For the navigation, use this style [image 1]
For the cards, use this layout [image 2]
For the colors, follow this palette [image 3]
```
### Describe Differences
```
Make it look like this screenshot, but:
- Use rounded corners instead of square
- Add more padding
- Remove the subtitle
```
***
## Common Use Cases
### Copying a Layout
```
Implement this layout exactly [screenshot]
```
### Matching a Style
```
Use this visual style for my entire app [style reference]
- Same button shapes
- Similar spacing
- This shadow intensity
```
### Fixing a Visual Bug
```
This is what I'm seeing [screenshot of bug]
I expected it to look like this [mockup of correct version]
```
### Showing Desired Interaction
```
When the user swipes, I want this animation [GIF/video]
```
### Showing Current State + Desired State
```
Here's how it currently looks [current screenshot]
Here's how I want it to look [mockup]
```
***
## Screenshots from Simulator
Take screenshots of your own app to reference:
### How to Screenshot Simulator
1. Click on the Simulator
2. Press **Cmd+S** to save screenshot
3. Or **Cmd+Shift+4** to select area
### Why Screenshot Your Own App
* "Keep the header exactly like this, but change the body"
* "This part works — make the other screens match"
* "The spacing is perfect here — use this throughout"
***
## Annotating Images
### Simple Annotations
Use Preview (Mac) or any image editor:
* **Circles** — Highlight specific elements
* **Arrows** — Point to details
* **Text** — Add labels or notes
* **Boxes** — Outline areas of interest
### When to Annotate
* Multiple elements in one screenshot
* Subtle details that might be missed
* Showing what to change vs. keep
***
## Multiple Images in One Message
You can attach up to 5 images per message:
```
Here's the header style I want [image 1]
Here's the card style [image 2]
Here's the color palette [image 3]
Create a dashboard with:
- Header using style from image 1
- Data displayed as cards like image 2
- Colors from image 3
```
***
## What Images Can't Do
### Not for Long Text
Don't use images of text. Type text directly — it's easier for the AI to process.
### Not for Code
If you want to show code, paste it as text rather than a screenshot.
### Not for Everything
Sometimes words are clearer:
* "Make the button 50pt tall" is clearer than an image
* "Change the color to #007AFF" is more precise
Use images for **visual design**, use words for **specific values**.
***
## Example Workflow
Screenshot a UI you like from another app or website.
Drag the image into Nativeline.
"Create a profile card like this image, but with our app's colors"
If something's off: "The spacing should be tighter, like this \[annotated image]"
***
## Troubleshooting
* Check file format (PNG, JPG, etc.)
* Try drag-and-drop instead of paste
* Ensure file isn't corrupted
* Crop to show only relevant parts
* Add text description alongside the image
* Annotate to highlight specific elements
* Be more specific about what to copy
* Describe what to keep vs. change
* Attach comparison images
***
## Related
Combine images with effective prompts
How to use the chat for building
# Version History
Source: https://docs.nativeline.ai/features/version-history
Track changes and restore previous versions of your app
**Pro plan required.** Version history is available on the Pro plan.
Nativeline automatically tracks every change the AI makes to your project using Git version control under the hood. You never need to manually save, commit, or think about backups — it just happens.
Think of it as an unlimited undo history for your entire project.
## How It Works
The version tracking system runs silently in the background every time you interact with the AI.
Whenever the AI writes, modifies, or deletes files in your project, a new version is created behind the scenes. This includes creating new Swift files, editing existing views, updating assets, or removing unused code.
Each version is tagged with the exact time it was created, so you can see a clear timeline of your project's evolution from first build to latest change.
Every version records which files were modified, added, or removed — giving you a full audit trail of every change the AI has made.
Versions are grouped by time for easy browsing:
| Group | What it shows |
| --------------- | -------------------------------------------- |
| **Today** | All changes made during your current session |
| **Yesterday** | Yesterday's changes |
| **By day name** | Monday, Tuesday, etc. for the current week |
| **By date** | Older changes shown with their full date |
This grouping makes it easy to find what you're looking for. If you know the AI broke something "sometime this morning," you can quickly scan today's versions to find the right one.
## Viewing Version History
Navigate to the **Settings** tab in your project. You can find it in the project sidebar.
Open the Version History section to see your project's full timeline of changes.
Scroll through your versions grouped by time. Each entry shows:
* When the version was created
* Which files were modified, added, or removed
* A brief description of the change
The timeline reads top-to-bottom, with the most recent changes at the top. Scroll down to go further back in time.
## Restoring a Previous Version
Found a point in time you want to go back to? Restoring is straightforward.
Click on any version in the timeline to select it. You'll see a summary of what the project looked like at that point.
See what will change if you restore to this point — which files will be reverted, which will be added back, and which will be removed. This gives you full visibility before you commit to anything.
Confirm the restore to revert your project to that version. Your project files will be updated immediately.
Restoring a previous version will overwrite your current code. Make sure you want to go back before confirming.
## How It Helps
Version history is your safety net. Here are the most common ways it saves your work:
The AI made an edit that broke something or looked wrong? Jump back to the version right before that change. This is the most common use case — you asked for something, didn't like the result, and want to go back.
Sometimes a sequence of changes leads you down a dead end. Maybe you asked the AI to refactor a view, then fix the refactor, then fix the fix. Instead of trying to untangle the mess, just restore to the last working state and try a different approach.
Want to see how a feature looked before the AI redesigned it? Browse the timeline to find the earlier version. This helps you decide whether the new direction is better or whether you should go back.
Accidentally asked the AI to remove something you needed? Every previous version of every file is preserved in the history. Nothing is truly gone as long as you have version history.
Version history removes the fear of breaking things. Try bold changes, experiment with new approaches, and know you can always get back to a working state. This freedom to experiment is one of the biggest benefits.
## Things to Keep in Mind
Here are some important details about how version history works:
* **Versions are per-project.** Each project has its own independent version history. Restoring one project doesn't affect any other.
* **Only AI changes create versions.** Manual edits you make in the code editor don't automatically trigger a new version. If you want to preserve a manual edit, make another AI change afterward.
* **Restoring doesn't delete future versions.** After restoring to an earlier point, you can still see and navigate to versions that came after the one you restored to. Nothing is lost.
* **No storage limits.** Your version history isn't capped. Every change is preserved for the lifetime of your project.
Version history is automatic — you don't need to manually save or commit. Every AI action creates a checkpoint.
## Typical Workflow
Here's how most people use version history in practice:
```
1. Build your app through chat — ask the AI to add features, fix bugs, redesign screens
2. Notice something went wrong after a few changes
3. Open Version History from the Settings tab
4. Browse the timeline to find the last version where things looked right
5. Click Restore to revert your project to that version
6. Continue building from the known-good state
```
This cycle of build, review, and restore lets you experiment freely without worrying about breaking things permanently. It's like having an infinite number of save points in a game.
## Frequently Asked Questions
Yes. Version history preserves every change for the lifetime of your project. You can go back to the very first version if you need to.
No. Restoring a version only affects your project files. Your conversation with the AI remains unchanged.
You can. Since restoring doesn't delete future versions, you can navigate forward in the timeline and restore to a later version — including the one you just came from.
***
View and edit the code the AI generates.
How the AI remembers your preferences and decisions.
# Project Wizard
Source: https://docs.nativeline.ai/features/wizard
Customize your app's style, colors, and name before building
After describing your app on the home page, the wizard walks you through a few quick questions. It only takes a minute, and you can skip steps if you don't have strong preferences.
The wizard shapes the visual identity of your app before a single line of code is written. Everything you choose here is passed to the AI as context for building.
## The Wizard Steps
Choose the vibe for your app. This guides the AI's design decisions — spacing, typography weight, corner radii, and overall aesthetic.
Pick one:
* **Simple & clean** — Minimal UI, lots of whitespace, understated controls
* **Modern & polished** — Refined with subtle shadows, smooth transitions, and careful spacing
* **Bold & expressive** — Strong colors, large type, high contrast, attention-grabbing layouts
* **Dark & minimal** — Dark backgrounds, muted accents, sleek and focused
* **Something else** — Type a custom description of what you want
The AI uses your choice to set the tone for every screen it builds. If you pick "Bold & expressive," expect big headings, vivid colors, and strong visual hierarchy. If you pick "Simple & clean," expect restrained palettes and generous whitespace.
Choosing "Something else" opens a text field where you can describe your ideal aesthetic in your own words. For example: "Retro 90s with pixel-art vibes" or "Glassmorphism with frosted backgrounds."
Pick the colors that define your app. You have three options: choose a preset, generate a palette, or build one from scratch.
See the [Color Palette Deep Dive](#color-palette-deep-dive) below for full details on each option.
Review everything at a glance before moving forward. You'll see your selected app feel, color palette, and platform all on one screen. If anything looks off, go back and adjust.
This is your last chance to change things before the AI starts building, so take a moment to confirm your choices.
Name your app. The name is validated as you type:
* No special characters allowed
* No spaces allowed
* No leading numbers
* Must be at least one character
Examples of valid names: `FitTrack`, `RecipeBox`, `ClipStash`, `Zenith`, `Taskly`
Examples of invalid names: `My App` (spaces), `123Go` (leading number), `Cool!App` (special character)
You can skip straight to naming your app if you don't have strong preferences. The AI will use sensible defaults.
## Color Palette Deep Dive
The color step gives you three ways to pick your palette. Use whichever approach matches how you think about color.
### Preset Palettes
Six palettes are displayed as color swatch cards in a grid. Click one to select it — you'll see the colors update immediately in the preview.
| Palette | Colors | Best for |
| ------------------ | ---------------------------------------------- | ----------------------------- |
| **Vibrant Sunset** | Warm oranges, reds, and golden tones | Energetic, warm apps |
| **Ocean Blues** | Cool blues ranging from deep navy to light sky | Professional, calm apps |
| **Forest Greens** | Natural greens with earthy undertones | Health, nature, wellness apps |
| **Royal Purples** | Rich purples with violet and lavender accents | Creative, premium apps |
| **Monochrome** | Clean grays, blacks, and whites | Minimal, content-focused apps |
| **Pastel Dreams** | Soft, muted pastels across the spectrum | Friendly, approachable apps |
**Vibrant Sunset** is pre-selected by default, so you can skip this step entirely if you're happy with warm tones.
### Generate a Palette
Want something more specific? Expand the **"Want something different?"** section to reveal the palette generator.
Use the color wheel to select a base color that represents your app's identity. Drag around the wheel to find the right hue, then adjust brightness and saturation.
Click **Shuffle** to generate harmonious palettes based on your base color. The generator creates complementary, analogous, and triadic color schemes automatically. Each shuffle produces a completely new set.
When you find a palette you like, click **"Use this"** to apply it to your project.
The palette generator is great when you know your primary brand color but need help finding colors that work well with it.
### Custom Palette
If you have exact colors in mind — maybe from a brand guide, a design file, or a specific hex code you love — the custom option lets you pick 4 individual colors using native macOS color pickers.
Each picker lets you:
* Choose from the color wheel
* Enter a specific hex code
* Use the eyedropper to pick a color from anywhere on your screen
Set each of the 4 colors to your desired value, then click **"Use these"** to apply.
This approach is ideal when you're matching existing brand colors or a specific design system you've already defined.
The platform was already chosen on the home page, so it doesn't appear in the wizard.
## How Your Choices Affect the Build
Everything you select in the wizard is passed to the AI as structured context. Here's how each choice influences the result:
| Wizard step | What it affects |
| ----------------- | ------------------------------------------------------------------- |
| **App Feel** | Spacing, typography, corner radii, animation style, overall density |
| **Color Palette** | Primary color, accent color, background tones, text contrast |
| **App Name** | Project folder name, display name, bundle identifier |
The AI treats these as strong preferences, not suggestions. If you choose "Dark & minimal" with Monochrome colors, you'll get a dark-themed app with grayscale accents — guaranteed.
## Frequently Asked Questions
You can always ask the AI to adjust colors, style, or other design choices through the chat interface after your project is created. The wizard sets the starting point, but nothing is locked in permanently.
If you skip the feel and color steps, the AI uses sensible defaults: "Modern & polished" feel with the Vibrant Sunset palette. You still need to provide an app name — that step can't be skipped.
Yes. Use the back button to return to any previous wizard step and change your selection. Your choices are preserved as you navigate between steps.
No. The app feel only affects visual design — spacing, typography, colors, and aesthetics. It doesn't change what features the AI builds or how your app works.
## After the Wizard
Once you confirm your app name, Nativeline creates your project and opens the chat interface. The AI begins building your app immediately using the description you provided on the home page, styled with the feel and colors you chose in the wizard.
You'll see the AI working in real-time — writing Swift code, creating views, and assembling your app. Within moments, you'll have a working preview to interact with.
***
Where every project starts — describe your app and pick a platform.
Start building and iterating on your app through conversation.
# Advanced Prompting
Source: https://docs.nativeline.ai/guides/advanced-prompting
Techniques for complex features and ambitious projects
# Advanced Prompting
Once you've mastered the basics, these techniques help you build more sophisticated features and complex apps.
## Multi-Step Requests
For complex features, break them into logical steps but communicate them together.
### Structure
```
Build [feature] with the following:
1. [First component/step]
- Detail about first step
- Another detail
2. [Second component/step]
- Detail about second step
3. [Third component/step]
- Detail about third step
The flow should be: [describe how pieces connect]
```
### Example: Building a Checkout Flow
```
Build a checkout flow with the following:
1. Cart review screen
- Show all items with images, names, quantities, prices
- Allow quantity adjustments
- Show subtotal, tax, and total
2. Shipping screen
- Form for address (name, street, city, state, zip)
- Save address for future use
- Validate required fields
3. Payment screen
- Integration with Stripe
- Show order summary
- Confirm button
4. Confirmation screen
- Order number
- Estimated delivery
- "Continue Shopping" button
The flow should be: Cart → Shipping → Payment → Confirmation
with a back button on each screen and progress indicator at the top.
```
***
## Feature Specifications
For detailed features, provide a mini specification.
### Template
```
Feature: [Name]
Purpose: [What problem it solves]
User flow:
1. User does [action]
2. App responds with [response]
3. User can then [next action]
Requirements:
- [Requirement 1]
- [Requirement 2]
- [Requirement 3]
Edge cases:
- If [condition], then [behavior]
- If [condition], then [behavior]
Design:
- [Visual requirement]
- [Visual requirement]
```
### Example: User Profile Feature
```
Feature: User Profile
Purpose: Let users view and edit their personal information
User flow:
1. User taps profile tab
2. App shows their current profile info
3. User taps "Edit" to modify
4. User saves changes
Requirements:
- Display avatar, name, email, bio
- Avatar can be changed from camera or library
- Name and bio are editable
- Email is shown but not editable
- Changes save to Supabase
Edge cases:
- If no avatar, show initials
- If save fails, show error and keep editing mode
- If user cancels, restore previous values
Design:
- Avatar should be 80pt circle
- Use card style for profile sections
- Edit mode shows inline text fields
```
***
## System Prompts
For consistent behavior across features, establish patterns upfront.
### Setting App-Wide Patterns
```
For this app, always follow these patterns:
Design:
- Use 16pt padding as standard spacing
- All buttons should have 12pt corner radius
- Primary color is #007AFF, secondary is #5856D6
- Use SF Symbols for all icons
Behavior:
- Show loading states for all async operations
- All destructive actions need confirmation
- Save operations should show success feedback
- Errors should display user-friendly messages
Data:
- All data should sync to Supabase
- Support offline mode with local cache
- Use SwiftData for local persistence
```
Now when you request features, the AI follows these patterns automatically.
***
## Comparative Prompting
Reference existing patterns in your app.
### Same Style
```
Add a "Following" tab that works exactly like the "Followers"
tab — same layout, same interactions, just different data.
```
### Similar But Different
```
Add a notifications screen. Use the same list style as the
messages screen, but each item shows:
- Icon representing notification type
- Title and description
- Timestamp
- Unread indicator (blue dot)
```
### Opposite/Contrasting
```
Add a "Compact View" toggle that transforms the current
card-based layout into a dense list view with smaller items.
```
***
## Conditional Features
Describe features that behave differently in different situations.
### Based on User State
```
The dashboard should show different content based on user type:
If new user (no data):
- Show onboarding prompt
- Display sample data to demonstrate features
- Show "Get Started" tutorial
If active user:
- Show their actual data
- Display recent activity
- Show personalized recommendations
If power user (many items):
- Enable bulk actions
- Show analytics section
- Enable advanced filters
```
### Based on Device/Context
```
Adapt the layout for different devices:
iPhone:
- Single column layout
- Tab bar navigation
- Compact info cards
iPad:
- Split view with sidebar
- Master-detail navigation
- Expanded info cards with more details
```
***
## Animation Specifications
For complex animations, be precise.
### Sequence Animations
```
When the success screen appears:
1. Checkmark icon scales in from 0 to 1 (0.3s, spring)
2. Then "Success!" text fades in from below (0.2s)
3. Then description text fades in (0.2s, 0.1s delay)
4. Then buttons fade in (0.2s, 0.2s delay)
```
### Interactive Animations
```
The card should respond to gestures:
- Drag horizontally to reveal action buttons
- If dragged >50%, snap to reveal actions
- If dragged <50%, spring back to original
- While dragging, background color shifts from white to light red
- Action buttons slide in from the right as card moves
```
***
## Complex Data Relationships
For apps with related data, explain the relationships.
### Entity Relationships
```
Data model:
User
- id, email, name, avatar
- has many Projects
Project
- id, name, description, created_at
- belongs to User
- has many Tasks
- has many Collaborators (other Users)
Task
- id, title, status, due_date
- belongs to Project
- assigned to User (optional)
When displaying:
- Project view shows all its tasks grouped by status
- User profile shows all their projects
- Task detail shows project name and assignee
```
***
## Error Handling Patterns
Describe how errors should be handled app-wide.
### Comprehensive Error Handling
```
Implement consistent error handling:
Network errors:
- Show "No connection" banner at top (not blocking)
- Allow retry when connection returns
- Cache last successful data for offline viewing
Validation errors:
- Show inline error under the field
- Highlight field border in red
- Clear error when field changes
Server errors:
- Show modal with "Something went wrong"
- Include "Try Again" and "Contact Support" buttons
- Log error details for debugging
Authentication errors:
- Redirect to login screen
- Show "Session expired, please log in again"
- Preserve intended destination for after login
```
***
## Integration Specifications
For external service integrations, be thorough.
### API Integration
```
Integrate with the Weather API:
Endpoint: api.weather.com/v1/current
Auth: API key in header (X-API-Key)
Request: GET with lat/long parameters
Expected response:
{
"temp": 72,
"condition": "sunny",
"humidity": 45,
...
}
Error handling:
- If 401: API key invalid, show setup instructions
- If 429: Rate limited, wait and retry
- If 500: Server error, show "Weather unavailable"
Caching:
- Cache responses for 10 minutes
- Show cached data if network fails
- Display "Last updated X minutes ago"
```
***
## Refactoring Requests
For improving existing code:
### Code Organization
```
Refactor the ProfileView to be more maintainable:
- Extract the avatar section into AvatarView
- Extract the info fields into ProfileInfoSection
- Create a ProfileViewModel for the data logic
- Keep the main ProfileView clean and composed
```
### Performance Optimization
```
Optimize the feed loading:
- Implement pagination (load 20 items at a time)
- Add infinite scroll to load more
- Cache images with proper memory management
- Cancel in-flight requests when navigating away
- Show skeleton loading states instead of spinners
```
***
## Testing Scenarios
Ask for specific scenarios to test:
```
Add test data for the following scenarios:
Empty state:
- New user with no items
Light usage:
- 3 items, one favorited
Heavy usage:
- 100+ items across 5 categories
- 10 items favorited
- Some with long titles (50+ characters)
Edge cases:
- Item with no image
- Item with very long description
- Item with special characters in title
```
***
## Architecture Decisions
For complex apps, make architecture explicit:
```
For this app, use this architecture:
Views:
- SwiftUI views for all UI
- Keep views "dumb" — just display data
- One view file per screen
ViewModels:
- One ViewModel per screen
- Handle all business logic
- Observable for state updates
Models:
- Plain structs for data
- Codable for API/storage
- Keep separate from ViewModels
Services:
- Singleton services for cross-cutting concerns
- AuthService for authentication
- DataService for Supabase operations
- ImageService for media handling
This separation makes it easier to:
- Test individual components
- Modify one layer without affecting others
- Understand where logic lives
```
***
## Pro Tips
### Tip 1: Progressive Detail
Start high-level, then drill down:
```
1. "Add user profiles" (basic)
2. "Make profile avatars editable" (detail)
3. "Crop avatar to circle, allow pinch-zoom when selecting" (fine detail)
```
### Tip 2: Reference Real Apps
```
Make the transition between tabs work like Instagram's —
swipe horizontally between feed, search, and profile.
```
### Tip 3: Constraint-Based Design
```
The card must:
- Never be wider than 400pt (even on iPad)
- Always show at least the title (even if truncated)
- Leave 16pt margin from screen edges
- Stack vertically if content exceeds available height
```
***
## Next Steps
Solutions for specific situations
Fundamental prompting techniques
# Reading App Logs
Source: https://docs.nativeline.ai/guides/app-logs
Use logs to debug runtime issues and understand app behavior
# Reading App Logs
**Pro plan or higher required**
Build errors show problems at compile time. But what about issues that happen while your app is running? That's where app logs come in.
## What Are App Logs?
Logs are messages your app produces while running. They show:
* What code is executing
* Values of variables
* Errors that occur at runtime
* User actions and their effects
***
## Accessing Logs in Nativeline
Click the **Code Editor** tab in the Nativeline interface.
Find and click the **Logs** tab or section within the Code Editor.
Build and run your app. Logs appear in real-time.
As you interact with your app, logs show what's happening.
***
## Understanding Log Output
### Basic Log Structure
```
2024-01-15 10:30:45.123 MyApp[12345:67890] Save button tapped
2024-01-15 10:30:45.456 MyApp[12345:67890] Saving data: User(name: "John")
2024-01-15 10:30:45.789 MyApp[12345:67890] Save completed successfully
```
Each line shows:
* **Timestamp:** When it happened
* **App name:** Which app
* **Message:** The actual log content
### Log Types
| Type | Meaning |
| ---------------- | ----------------------------------- |
| **Info logs** | Normal operation, status updates |
| **Warning logs** | Something unusual, but not critical |
| **Error logs** | Something went wrong |
| **Debug logs** | Developer debugging info |
***
## Adding Logs to Your App
Ask the AI to add logging:
### For Debugging a Specific Feature
```
Add print statements to the saveData function to show:
- When the function starts
- What data is being saved
- Whether the save succeeded or failed
```
### For Tracking User Actions
```
Add logging for all button taps so I can see what users are doing
```
### For API/Network Issues
```
Add logging to show:
- When API requests start
- What data is being sent
- What response comes back
- Any errors that occur
```
***
## Common Debugging Scenarios
### Debugging "Nothing Happens" Issues
Your button doesn't seem to work? Add logs:
```
Add a print statement at the start of the button's action
to confirm it's being triggered
```
If the log appears: The button works, the issue is in the code after.
If no log appears: The button isn't connected properly.
### Debugging Data Issues
Data not showing up?
```
Add logging to show:
- When data is loaded
- How many items were loaded
- The actual content of the first item
```
Check the logs to see if data exists and what it contains.
### Debugging Navigation Issues
Screen not appearing?
```
Add logging when the navigation to [screen] is triggered
and when [screen] appears
```
Follow the trail to see where it breaks.
### Debugging Crash-Like Behavior
App freezing or behaving strangely?
```
Add extensive logging throughout [feature] to trace exactly
where the problem occurs
```
The last log before the freeze indicates where to look.
***
## Reading Swift Error Messages
When Swift errors appear in logs, they often include useful info:
### Optional Unwrapping Errors
```
Fatal error: Unexpectedly found nil while unwrapping an Optional value
```
**Meaning:** Your code tried to use a nil value that should have had a value.
**Fix:** Ask the AI to add nil checking for the relevant variable.
### Array Index Errors
```
Fatal error: Index out of range
```
**Meaning:** Accessing an array position that doesn't exist.
**Fix:** Check array bounds before accessing, or verify the data exists.
### Type Casting Errors
```
Could not cast value of type 'X' to 'Y'
```
**Meaning:** Tried to convert between incompatible types.
**Fix:** Check the actual type and handle it appropriately.
***
## Effective Logging Strategies
### 1. Log Entry and Exit
```swift theme={null}
print("▶️ saveProfile started")
// ... code ...
print("✅ saveProfile completed")
```
This shows whether functions complete or exit early.
### 2. Log Important Values
```swift theme={null}
print("📊 User data: \(userData)")
print("📊 Items count: \(items.count)")
```
See what your variables actually contain.
### 3. Log Decision Points
```swift theme={null}
if isLoggedIn {
print("🔓 User is logged in, showing profile")
} else {
print("🔒 User not logged in, showing login")
}
```
Understand which code paths execute.
### 4. Use Distinctive Markers
Using emojis or prefixes makes logs easier to scan:
* `▶️` Start of function
* `✅` Success
* `❌` Error
* `⚠️` Warning
* `📊` Data values
* `🔄` State changes
***
## Filtering and Searching Logs
When there's a lot of output:
### Search for Specific Text
Look for your custom log messages or error keywords.
### Filter by Feature
If you're debugging the save feature, search for "save" in logs.
### Filter by Error Level
Look for "error", "failed", "nil", or "crash" to find problems.
***
## When to Use Logs vs Build Errors
| Situation | Check |
| --------------------------------- | ------------------------------- |
| App won't compile | Build errors in chat |
| App compiles but crashes | Runtime logs |
| App runs but feature doesn't work | Runtime logs |
| UI looks wrong | Visual inspection + logs |
| Data doesn't save | Logs showing save operations |
| API not working | Logs showing requests/responses |
***
## Removing Debug Logs
Before publishing your app, clean up debug logs:
```
Remove all the debug print statements we added for troubleshooting.
Keep only important error logging.
```
Or for more control:
```
Replace debug print statements with proper logging that only
shows in debug builds, not in production.
```
***
## Advanced: Console.app
For even more detailed debugging, you can use macOS's Console app:
1. Open **Console.app** (in Applications → Utilities)
2. Select your Simulator in the sidebar
3. Run your app
4. See comprehensive system logs
This shows logs from iOS itself, not just your app.
***
## Troubleshooting
* Make sure your app is running
* Check you're on the Logs tab
* Try adding explicit print statements
* Restart the Simulator
* Add distinctive prefixes to your logs
* Search for specific terms
* Ask the AI to reduce logging: "Only log errors, not normal operations"
The Logs feature requires Pro plan or higher. Check your subscription in Settings.
***
## Next Steps
Complete debugging walkthrough
Full Code Editor documentation
# Common Scenarios
Source: https://docs.nativeline.ai/guides/common-scenarios
Solutions for specific situations you'll encounter
# Common Scenarios
Real solutions for real situations. Find your scenario and get the answer.
***
## UI & Layout Issues
**The problem:** Long text doesn't fit and gets truncated.
**Solutions:**
For truncation with ellipsis:
```
Truncate long text with "..." and show full text when tapped
```
For wrapping:
```
Let long text wrap to multiple lines instead of truncating
```
For scrolling:
```
Make the text area scrollable for long content
```
**The problem:** UI elements are positioned incorrectly.
**Solutions:**
Be specific about spacing:
```
Add 16pt spacing between all elements in the form.
Ensure nothing overlaps.
```
Use proper layout:
```
Align all form labels to the left edge and all
input fields to have matching leading edges.
```
**The problem:** Content appears in unsafe areas of the screen.
**Solution:**
```
Respect safe areas on all screens. Content should not
appear under the notch, dynamic island, or home indicator.
```
**The problem:** Can't see what you're typing because the keyboard is in the way.
**Solution:**
```
When the keyboard appears, scroll or adjust the view so
the active text field is visible above the keyboard.
```
**The problem:** Items in a list are too close together.
**Solution:**
```
Add 12pt vertical padding inside each list item.
Add 8pt spacing between list items.
Use a subtle separator or slight background difference between items.
```
***
## Data & Storage Issues
**The problem:** Nothing is saved between sessions.
**Solution:**
```
Save [data type] using SwiftData so it persists when
the app is closed and reopened.
```
For simple settings:
```
Save user preferences using UserDefaults.
```
**The problem:** No way to remove data.
**Solutions:**
Swipe to delete:
```
Add swipe-to-delete gesture on list items.
Show confirmation before deleting.
```
Delete button:
```
Add a trash button to each item that deletes it after confirmation.
```
**The problem:** App feels sluggish loading data.
**Solutions:**
Add loading state:
```
Show a loading spinner while data is being fetched.
```
Load progressively:
```
Load the first 20 items immediately, then load more as the user scrolls.
```
**The problem:** Search results aren't helpful.
**Solution:**
```
Search should filter by [title/name] and [description/content].
Search as the user types (debounced).
Show "No results for [query]" when nothing matches.
```
***
## Navigation Issues
**The problem:** No back button or back gesture.
**Solution:**
```
Add a back button in the top-left that returns to the previous screen.
Also enable the swipe-from-edge gesture to go back.
```
**The problem:** Tab bar disappears on certain screens.
**Solution:**
```
Keep the tab bar visible on all main screens.
Only hide it for modal presentations and detail views.
```
**The problem:** Can't close a popup or sheet.
**Solution:**
```
Add a close button (X) in the top-right corner of the modal.
Also allow swiping down to dismiss.
```
***
## Performance Issues
**The problem:** UI isn't responsive.
**Solutions:**
For list performance:
```
Use lazy loading for the list. Only render items
that are visible on screen.
```
For image performance:
```
Resize and cache images. Don't load full-resolution
images for thumbnails.
```
General:
```
Move heavy work off the main thread.
Show loading indicators for async operations.
```
**The problem:** Initial build is very slow.
**This is normal.** First builds take 30-60 seconds because Xcode compiles everything. Subsequent builds are much faster (5-15 seconds).
If it's consistently slow:
* Close other applications
* Ensure sufficient disk space (10GB+)
* Restart your Mac
**The problem:** App runs slowly in Simulator.
**Solutions:**
* Use a simpler device (iPhone SE vs iPhone 15 Pro Max)
* Close other Simulators
* The Simulator is always slower than real devices — test on TestFlight for true performance
***
## Supabase/Cloud Issues
**The problem:** Connection fails.
**Checklist:**
1. Verify project URL (ends in `.supabase.co`)
2. Use the `anon` key, not `service_role`
3. Check if project is initialized (takes \~2 min after creation)
4. Ensure internet connection
**Tell the AI:**
```
I'm getting connection errors to Supabase.
My URL is [url] and I'm using the anon key.
Can you verify the connection setup?
```
**The problem:** Local changes don't sync.
**Check:**
1. RLS policies allow inserts
2. User is authenticated (if required)
3. Required fields have values
**Tell the AI:**
```
Data isn't saving to Supabase. I've checked RLS policies
and the user is authenticated. Can you add error logging
to see what's happening?
```
**The problem:** Sign up or login fails.
**Check in Supabase:**
1. Authentication → Users: is the user created?
2. Authentication → Settings: is email confirmation enabled?
3. For testing, you can disable email confirmation
**Tell the AI:**
```
Authentication is failing. The error is [error].
Show me what's happening and add proper error messages.
```
**The problem:** Changes don't sync between devices.
**Check:**
1. Real-time is enabled in Supabase (default: on)
2. Subscriptions are set up correctly
3. RLS policies allow selects
**Tell the AI:**
```
Real-time updates aren't working. When I change data
in Supabase dashboard, the app doesn't update.
```
***
## API Integration Issues
**The problem:** External API calls fail.
**Tell the AI:**
```
The API call is failing. Add logging to show:
- The request URL and parameters
- The response status code
- The error message
```
Common causes:
* Invalid API key
* Wrong endpoint URL
* Missing required parameters
* Rate limiting
**The problem:** API returns data but it doesn't display correctly.
**Tell the AI:**
```
Log the raw API response so I can see the data structure.
The data isn't displaying correctly.
```
Then:
```
The API returns data like this: [structure].
Update the model to match this format.
```
***
## Media & Files
**Note:** Camera doesn't work in Simulator. You must test on a real device via TestFlight.
**If permission issues:**
```
Make sure camera permission is requested with a
clear usage description.
```
**The problem:** Images don't display.
**For local images:**
```
Check that images are in the asset catalog and
using the correct names.
```
**For remote images:**
```
Use AsyncImage for loading remote images.
Show a placeholder while loading.
Handle the error case if the image fails to load.
```
**The problem:** App slows down or crashes with large images.
**Solution:**
```
Resize images to appropriate display size before storing.
Use thumbnails for lists and grids.
Load full-resolution only when viewing full screen.
```
***
## App Behavior
**Possible causes:**
1. Missing required data
2. Force unwrapping a nil value
3. Permissions not configured
**Tell the AI:**
```
The app crashes immediately on launch.
Add a try-catch around initialization code
and log any errors that occur.
```
**Possible causes:**
1. Button action not connected
2. Action throws an error silently
3. UI is blocking the button
**Tell the AI:**
```
The [button] doesn't do anything when tapped.
Add a print statement to confirm the tap registers,
then check what happens in the action.
```
**The problem:** Data changes but UI stays the same.
**Tell the AI:**
```
When [data] changes, the UI doesn't update.
Make sure the state is properly observed and
the view refreshes when it changes.
```
***
## Still Stuck?
Comprehensive debugging walkthrough
Quick answers to common questions
More troubleshooting Q\&A
Get help from the community
# Debugging Guide
Source: https://docs.nativeline.ai/guides/debugging
Complete walkthrough for understanding and fixing issues in your app
# Debugging Guide
Things will go wrong. Builds will fail. Features won't work as expected. This guide teaches you everything about debugging in Nativeline — across iPhone, iPad, and Mac apps.
## Understanding Build Errors
When you see "Build Failed" in Nativeline, it means the Swift code couldn't compile. This is normal and happens to everyone.
### What You'll See
When a build fails:
1. The chat shows an error message
2. The error includes the file and line number
3. The AI automatically analyzes and fixes it — no action needed from you
### Common Error Types
| Error Type | What It Means |
| ------------------------ | ---------------------- |
| **Syntax Error** | Typo or malformed code |
| **Type Mismatch** | Wrong data type used |
| **Missing Reference** | Something isn't found |
| **Ambiguous Expression** | Code is unclear |
| **Missing Import** | Framework not imported |
***
## The Automatic Fix Cycle
Nativeline automatically attempts to fix build errors. Here's how it works:
### The 3-Attempt Process
```
Build Fails
↓
Attempt 1: AI automatically fixes
↓
Build Fails Again?
↓
Attempt 2: AI tries different approach
↓
Build Fails Again?
↓
Attempt 3: AI tries another approach
↓
Still Failing?
↓
Manual intervention needed (see below)
```
Most errors are fixed within 1-2 attempts. Complex issues may require all 3.
The AI detects and fixes errors automatically. It doesn't wait for your approval — it just fixes things. You only need to intervene if automatic fixing fails after 3 attempts.
### Watching the Process
You can see what's happening:
* The chat shows each attempt
* Code previews show files being edited in real-time
* Tool cards show what actions the AI is taking
* Build status shows success or failure
### Debug Logging
For more visibility, you can enable debug logging:
```
/debug
```
This toggles verbose logging that shows detailed information about what's happening. Use `/debug` again to turn it off.
***
## When Automatic Fixes Fail
If the AI can't fix the error after 3 attempts, you'll see a **Continue Fixing** prompt in the chat.
### The Manual Fix Process
After 3 failed attempts, a card appears in the chat asking if you want to continue.
The AI will try again with a fresh approach.
You can add a message with more details before clicking Continue.
### Building Your App
Nativeline supports both:
* **Auto builds** — The AI automatically builds after making changes
* **Manual builds** — You can trigger a build when you're ready
Most of the time, auto-builds handle everything. After a successful build, iPhone and iPad apps launch in the **embedded simulator** (right side of the Build tab). Mac apps run natively in their own window — no simulator needed.
### Providing Context
If the automatic fix keeps failing, add context:
> "I was adding a save button. The error mentions 'user' not found — I think the variable should be 'currentUser' from the login screen."
This helps the AI understand what you were trying to do.
***
## Describing Problems Effectively
How you describe issues dramatically affects fix success.
### Bad Descriptions
* ❌ "It's broken"
* ❌ "Fix it"
* ❌ "The build failed"
### Good Descriptions
* ✅ "The build fails with 'Cannot find User in scope' — I think it should use the UserProfile model instead"
* ✅ "This error started after I added the camera feature. The issue seems to be in PhotoView\.swift"
* ✅ "The error says 'Type mismatch' — it's expecting a String but I'm passing an Int from the form"
### The Bug Report Framework
```
What I was trying to do:
[Brief description of the feature or change]
What I expected to happen:
[The expected behavior]
What actually happened:
[The error or unexpected behavior]
When this started:
[After which change or action]
What I think might be wrong:
[Your hypothesis, if any]
```
***
## Using the Code Editor for Debugging
**Pro plan or higher required**
The Code Editor provides powerful debugging tools.
### Viewing Build Errors
1. Open the **Code Editor** tab
2. Files with errors are highlighted
3. Click to see the exact line with the problem
4. The error message appears inline
### Reading Runtime Logs
When your app runs (even successfully), logs show what's happening:
1. Open Code Editor → **Logs** tab
2. Run your app
3. Watch real-time output
4. Look for `print()` statements or errors
### Adding Debug Prints
Ask the AI: "Add print statements to the saveData function so I can see what's happening"
Or manually add them (Pro plan):
```swift theme={null}
print("Save button tapped")
print("Saving data: \(userData)")
print("Save completed: \(success)")
```
***
## Common Errors and Solutions
### "Cannot find 'X' in scope"
**What it means:** A variable, function, or type isn't found.
**Solutions:**
* Check for typos in the name
* Make sure the variable is defined in this file
* Check if an import is missing
* Ask: "Where should \[X] come from? I see it's not found."
### "Type 'X' has no member 'Y'"
**What it means:** You're trying to access something that doesn't exist on that type.
**Solutions:**
* Check the property name
* Verify the type is correct
* Ask: "What properties does \[X] have? I'm trying to access \[Y]."
### "Cannot convert value of type 'X' to expected type 'Y'"
**What it means:** Type mismatch — you're using the wrong type.
**Solutions:**
* Check if you need to convert the value
* Verify the function signature
* Ask: "Convert \[variable] from \[X] to \[Y]"
### "Missing argument for parameter"
**What it means:** A function call is missing required parameters.
**Solutions:**
* Check the function definition
* Add the missing parameter
* Ask: "What parameters does \[function] need?"
### "Value of optional type 'X?' must be unwrapped"
**What it means:** You're using an optional value without handling the nil case.
**Solutions:**
* Ask: "Safely unwrap \[variable] with a default value"
* Or: "Add nil checking before using \[variable]"
***
## Debugging Runtime Issues
Not all issues are build errors. Sometimes the app builds but doesn't work correctly.
### App Crashes After Launch
**Check:**
* Are all required permissions granted?
* Is network data loading correctly?
* Are you accessing something that's nil?
**Ask:** "The app crashes when I \[action]. Add error handling and debug logs."
### Feature Doesn't Work
**Check:**
* Is the button connected to the right action?
* Is data being saved/loaded correctly?
* Are state changes triggering UI updates?
**Ask:** "The \[feature] isn't working. Add debug output to trace what's happening."
### Data Not Saving
**Check:**
* Is the save function being called?
* Are there any silent errors?
* Is local storage set up correctly?
**Ask:** "Add logging to the save process so I can see if data is being saved correctly."
***
## Prevention: Building Without Errors
Reduce debugging by building better:
### 1. Build Incrementally
Don't ask for everything at once. Add features one at a time, testing each.
### 2. Be Specific
Vague requests lead to unexpected implementations. Specific requests reduce errors.
### 3. Test Early and Often
Don't wait until you have 10 features to test. Check after each change.
### 4. Start Simple
Get the basic version working first, then enhance it.
### 5. Use Reference Images
When the AI can see what you want, it makes fewer mistakes.
***
## When to Start Fresh
Sometimes it's faster to start over than to fix:
### Signs You Should Start Fresh
* The same error keeps returning
* The AI is stuck in a loop
* The code structure is fundamentally wrong
* Multiple features are broken simultaneously
### How to Start Fresh (Partially)
"Delete the \[feature] code and rebuild it from scratch"
This removes the problematic code while keeping the rest of your app intact.
### Restore a Previous Version
Before starting completely fresh, try restoring to a version that worked:
1. Open **Version History** in your project
2. Find the last known working state
3. Click **Restore** to roll back
This lets you undo problematic changes without losing everything. See [Version History](/features/version-history) for details.
### How to Start Fresh (Clean Slate)
For the whole project:
1. Create a new project
2. Copy your working ideas over
3. Build more carefully this time
This is rare but sometimes the fastest path.
***
## Debugging Mac Apps
Mac apps run natively — there's no simulator. Debugging works the same way, with these differences:
* **Build output** appears in the same Build tab
* **The app window** opens directly on your Mac
* **Logs** are available in Code Editor → Logs tab
* **Crashes** show the same error output in the chat
If a Mac app crashes on launch, check that you're not using iOS-only APIs (like camera features that require different permissions on Mac).
***
## Getting Help
If you're stuck:
Quick answers to common questions
Restore to a working version
Understanding the simulator
Get help from other users
You can also contact [support@nativeline.ai](mailto:support@nativeline.ai) with:
* Your macOS version
* What you were trying to build
* The error message (screenshot helps)
* Steps to reproduce
# Fixing Build Errors
Source: https://docs.nativeline.ai/guides/fixing-build-errors
When automatic fixes fail, here's how to intervene
# Fixing Build Errors
Nativeline's AI automatically fixes most build errors. But sometimes you need to step in. This guide covers manual intervention when automatic fixes fail.
## When Manual Intervention is Needed
You'll need to intervene when:
* The AI has tried 3 times and still failing
* The same error keeps recurring
* The AI is stuck in a loop
* You understand the problem better than the AI
***
## The Manual Fix Process
### Step-by-Step
If you see the AI attempting fixes repeatedly without success, it's time to intervene.
Click the **Run App** button in the Nativeline interface.
A dialog appears asking what you want to do.
Select **Apply Fix** — the AI will automatically analyze the error and attempt a fix.
### What Happens Next
The AI will:
1. Automatically analyze the error
2. Consider approaches it hasn't tried
3. Attempt a new fix
No additional input is required — clicking Apply Fix triggers automatic fixing.
***
## Providing Additional Context (Optional)
Clicking **Apply Fix** works automatically, but you can optionally help the AI by typing additional context in the chat.
### When to Provide Context
If Apply Fix alone isn't solving the problem, try messaging the AI with details:
```
The error says 'user' isn't found. I think it should be
'currentUser' from the AuthManager I created earlier.
```
```
This started happening after I added the camera feature.
The issue might be related to the new permission code.
```
```
The error mentions a type mismatch. The function expects
a String but I'm passing an Int from the slider value.
```
This is optional — most fixes work automatically without extra context.
***
## Understanding Common Errors
### "Cannot find 'X' in scope"
**What it means:** A variable, function, or type isn't found.
**How to help:**
```
I think 'X' should be [correct name] from [file/location].
```
or
```
I created 'X' in [file]. Maybe it needs to be imported or made public.
```
### "Type 'X' has no member 'Y'"
**What it means:** Accessing a property or method that doesn't exist.
**How to help:**
```
The property might be named differently. Check [struct/class name]
to see what properties it actually has.
```
### "Cannot convert value of type..."
**What it means:** Type mismatch.
**How to help:**
```
It needs a [correct type]. Convert the value or use a different property.
```
### "Missing argument for parameter"
**What it means:** Function call is incomplete.
**How to help:**
```
The function needs [parameter name]. It should be [value/source].
```
### "Value of optional type must be unwrapped"
**What it means:** Using a possibly-nil value unsafely.
**How to help:**
```
Safely unwrap it with a default value or guard statement.
```
***
## When the Same Error Keeps Returning
If the same error persists despite multiple fixes:
### 1. Try a Different Approach
```
This approach isn't working. Try implementing [feature]
using [alternative method] instead.
```
### 2. Simplify
```
/planclear
Let's try a simpler version without [complex part].
```
### 3. Remove and Rebuild
```
Remove the code for [feature] completely and rebuild it from scratch.
```
### 4. Work Around It
```
Skip this feature for now. Let's continue with the rest and
come back to this later.
```
***
## Using the Code Editor (Pro)
With a Pro plan, you can investigate and fix errors yourself:
### Finding the Error
1. Open **Code Editor** tab
2. Files with errors are highlighted
3. Click to see the exact line
4. Error message appears inline
### Making Manual Fixes
If you spot an obvious fix:
1. Edit the code directly
2. Save (Cmd+S)
3. The app rebuilds automatically
### When to Edit Manually
Manual edits work well for:
* Obvious typos
* Simple variable name changes
* Quick value adjustments
* Adding missing imports
Leave complex fixes to the AI.
***
## Breaking the Error Loop
Sometimes the AI gets stuck trying the same thing repeatedly.
### Signs of a Loop
* Same error message over and over
* AI making the same changes
* Undoing its own fixes
* No progress after multiple attempts
### Breaking Out
**Option 1: Explicit Different Approach**
```
Stop trying that approach. Instead, try [specific alternative].
```
**Option 2: Clear and Restart**
```
/planclear
Let's start over with [feature]. Use a simpler approach this time.
```
**Option 3: Manual Intervention**
If you have Pro plan, make the fix yourself in the code editor.
**Option 4: Temporary Skip**
```
Let's leave this for now and work on [other feature].
We'll come back to this later.
```
***
## Preventing Future Errors
### Build Incrementally
Don't request huge features all at once:
❌ "Build a complete e-commerce system"
✅ "Add a product list page" → "Add product details" → "Add cart" → etc.
### Be Specific
Vague requests lead to implementation mistakes:
❌ "Make it work"
✅ "Connect the save button to store the form data in SwiftData"
### Test Frequently
Check after each change. Catching errors early is easier than debugging cascading failures.
### Use Reference Images
Visual references reduce misunderstandings and implementation errors.
***
## When to Start Fresh
Sometimes starting over is faster than fixing:
### Signs It's Time to Rebuild
* Multiple interconnected errors
* Fundamental design flaw
* More time debugging than building
* The code structure is wrong
### Partial Rebuild
```
Delete all the [feature] code and rebuild it from scratch.
Keep everything else.
```
### Full Restart (Rare)
If the whole project is broken:
1. Create a new project
2. Describe your working features
3. Rebuild more carefully
This is rare but sometimes the fastest path.
***
## Getting Help
If you're stuck and nothing works:
Get help from other users
Email with your error details
Include in support requests:
* macOS version
* What you were building
* The error message (screenshot)
* What you've tried
# How Do I...
Source: https://docs.nativeline.ai/guides/how-do-i
Quick answers to the most common Nativeline questions
# How Do I...
Your quick reference for common actions. Find what you need, get the answer, and keep building.
***
## Toolkit / # Commands
Type **#font** in the chat input. A file picker opens — select your TTF or OTF file. Describe how to use it: "Use this font for all headings."
See [#font documentation](/toolkit/font) for details.
Type **#image** in the chat input. Select your image file (PNG, JPEG, SVG, etc.). Describe what it's for: "Use this as the app's splash background."
Note: **#image** adds the file to your app bundle. To show the AI a design reference, drag-and-drop images directly into the chat instead.
See [#image documentation](/toolkit/image) for details.
Type **#color** in the chat input. A color picker opens (not a file picker). Pick your color and name it: "Name this 'BrandBlue' and use it for all buttons."
See [#color documentation](/toolkit/color) for details.
Type **#sound** in the chat input. Select your audio file (MP3, WAV, AIFF). Describe when to play it: "Play this sound when a notification arrives."
See [#sound documentation](/toolkit/sound) for details.
Type **#lottie** in the chat input. Select your Lottie JSON file. Describe where to show it: "Use this as a loading spinner."
Nativeline automatically adds the Lottie package to your project.
See [#lottie documentation](/toolkit/lottie) for details.
Type **#3d** in the chat input. Select your USDZ or Reality file. Describe how to use it: "Show this model in an AR view."
See [#3d documentation](/toolkit/3d) for details.
Type **#data** in the chat input. Select your JSON or CSV file. Describe what it's for: "This is a list of countries, use it for the location picker."
See [#data documentation](/toolkit/data) for details.
Type **#video** in the chat input. Select your video file (MOV, MP4). Describe where to show it: "Play this video on the onboarding screen."
See [#video documentation](/toolkit/video) for details.
***
## AI Modes
Click the AI mode selector in the chat input area. Choose from:
* **Quick** — Fast & efficient, lowest cost
* **Enhanced** — Best designs, the default
* **Max** — Deep reasoning for complex logic
You can also select the mode on the Home Page before starting a project.
See [AI Modes](/features/ai-modes) for details.
**Enhanced** is the default and recommended for most projects. It produces the best designs and makes fewer mistakes.
Use **Quick** for rapid iteration and exploring ideas. Use **Max** for complex logic or debugging difficult issues.
See [AI Modes](/features/ai-modes) for a detailed comparison.
***
## Mac Apps
On the Home Page, select **Mac** from the platform selector before creating your project. Describe your app and go through the wizard as usual.
Mac apps have native macOS patterns: menu bars, keyboard shortcuts, and window management.
See [Building for Mac](/guides/multi-platform) for details.
Go to **Settings → Deploy** and select **DMG Export**. Nativeline will archive, sign, create a DMG, and optionally notarize your app.
Requires an Apple Developer account and App Store Connect API Key.
See [DMG Export](/publishing/dmg-export) for the full guide.
Mac apps run natively in a window on your Mac — no simulator needed. After a successful build, your app opens in its own window.
The chat interface takes the full width when building Mac apps since there's no embedded simulator.
***
## Version History
**Pro plan required**
Open Version History from the Settings tab. Browse the timeline of changes, select a version, and click Restore.
See [Version History](/features/version-history) for details.
**Pro plan required**
Version History shows a timeline grouped by day. Each entry shows what files were modified. Select an entry to see the changes.
***
## Plans & Tasks
Type `/planclear` in the chat.
This clears the current plan and lets you start fresh. Your code remains unchanged — only the plan is cleared.
Just say "continue" or "keep going" in the chat.
The AI remembers where it left off and picks up from there.
1. Type `/planclear` to clear the current plan
2. Then describe what you want to do next
Your code stays intact, but the AI approaches your new request without being influenced by the old plan.
Watch the tool cards in the chat interface.
The AI shows files being created and edited in real-time. You can also use `/plan` to check the current plan status.
Click the **Stop** button in the chat interface, or press **Escape**.
The AI will stop after completing its current action. Any code written will remain.
Just tell it what's wrong or what you'd like changed:
* "That's not quite right, I wanted..."
* "Change the color to blue instead"
* "Make it bigger"
* "Undo that and try a different approach"
***
## Debugging & Errors
After 3 automatic fix attempts:
1. A **Continue Fixing** card appears in the chat
2. Optionally add more context in your message
3. Click **Continue Fixing**
The AI will automatically analyze the error and attempt a new fix with a fresh approach.
Look in the chat — the build error is displayed there. It shows the error message and usually the file/line where it occurred.
On Pro plans, you can also see detailed logs in the Code Editor.
**Pro plan required**
1. Open the **Code Editor** tab
2. Switch to the **Logs** view
3. Run your app
4. Logs appear in real-time
Great for debugging runtime issues, not just build errors.
Try these in order:
1. Describe the issue in your own words to the AI
2. Type `/planclear` and re-explain what you want
3. Close and reopen the project
4. As last resort: delete the problematic code and ask the AI to rebuild it
Say: "Undo that last change" or "Revert what you just did"
The AI can undo its recent work. On Pro plans, you can also use [Version History](/features/version-history) to restore a previous version.
Say: "Try a different approach" or "That didn't work, try another way"
Be specific if you can: "Try using a List instead of a ScrollView" or "Try a simpler implementation"
***
## Building & Testing
Your app runs automatically after each successful build. It appears in the [embedded simulator](/features/embedded-simulator) on the right side of the Build tab.
Mac apps run natively in their own window.
Use the device selector in the embedded simulator's toolbar to switch between devices (iPhone SE, iPhone 16 Pro Max, etc.).
For iPad apps, the iPad simulator is embedded the same way. Mac apps run natively.
In the Simulator menu:
**Device → Erase All Content and Settings**
This resets the Simulator to factory state, clearing all app data and permissions.
Just type directly in the Simulator. Click text fields and type.
For testing quickly: "Add some sample data so I can test how the list looks with multiple items"
First build compiles the entire Xcode project from scratch. This takes 30-60 seconds.
Subsequent builds are incremental and much faster (5-15 seconds).
Yes! Select your platform on the Home Page before creating a project:
* **iPhone** — Standard mobile apps
* **iPad** — Larger canvas with sidebars and split views
* **Mac** — Desktop apps with menu bars and window management
See [Multi-Platform Guide](/guides/multi-platform) for details.
***
## Settings & Configuration
Go to **Settings → App Identity** (or Project Settings).
Change the display name there. This affects:
* Name under the app icon
* Name in the Simulator
* Name on the App Store (if published)
Go to **Settings → App Identity** and upload a new icon image.
For best results: 1024x1024 PNG, no transparency.
Go to **Settings → Permissions**.
Enable the permissions you need (Camera, Location, Photo Library, etc.). Nativeline automatically adds the required usage descriptions.
Or ask the AI: "Add camera permission to the app"
Go to **Settings → Capabilities**.
Enable features like Push Notifications, Sign in with Apple, HealthKit, etc.
Some capabilities require an Apple Developer account.
Go to **Settings → Appearance**.
You can set light, dark, or system-follows modes.
Or ask the AI: "Make the app support dark mode with appropriate colors"
***
## Data & Storage
Connect Supabase in your project settings:
1. Create a Supabase account at supabase.com
2. Get your project URL and anon key
3. Tell the AI: "Connect to Supabase with URL: \[your-url] and key: \[your-key]"
See [Supabase integration](/integrations/supabase/overview) for full details.
Ask the AI: "Save \[data] locally using SwiftData so it persists when the app is closed"
SwiftData is Apple's modern local storage solution.
Use the **#data** command to import JSON or CSV files directly into your app. Type `#data` in the chat, select your file, and describe what it's for.
See [#data documentation](/toolkit/data) for details.
In the Simulator:
1. **Device → Erase All Content and Settings** (full reset)
2. Or delete just your app: long press → Delete App
This clears all local storage for your app.
Projects are stored locally at:
```
~/Documents/Nativeline Projects/
```
Each project has its own folder with the project name.
***
## Code & Editing
**Pro plan or higher required**
Click the **Code** tab to view all Swift code. You can browse files, read code, and make edits.
**Pro plan or higher required**
1. Open the Code Editor
2. Select a file
3. Make your changes
4. Save (Cmd+S)
5. The app will rebuild
Small tweaks (colors, text, spacing) are often faster to do yourself.
**Pro plan or higher required**
Read the generated code in the Code Editor. See how the AI implements features.
Ask: "Explain what this file does" or "How does the \[feature] work?"
***
## Publishing
Deploy to TestFlight:
1. Set up an Apple Developer account (\$99/year)
2. Configure certificates (Nativeline helps with this)
3. Upload to TestFlight
4. Install TestFlight on your iPhone
5. Test your app
See [Publishing](/publishing/overview) for the complete guide.
After testing via TestFlight:
1. Create your App Store listing in App Store Connect
2. Add screenshots and descriptions
3. Submit for review
See [App Store submission](/publishing/app-store/overview) for details.
Use TestFlight:
1. Upload your app to TestFlight
2. Add your friends' emails as testers
3. They install TestFlight and join your beta
4. They can now use your app
TestFlight is free, but you need an Apple Developer account (\$99/year).
Go to **Settings → Deploy** and select **DMG Export**.
Requires an Apple Developer account for code signing and an App Store Connect API Key for notarization.
See [DMG Export](/publishing/dmg-export) for the full guide.
***
## Account & Billing
Look for the usage indicator in Nativeline's toolbar. It shows your remaining bits and resets on your billing date.
1. Go to **Settings → Plans**
2. Select a higher tier
3. Confirm the upgrade
New bits are added immediately. You're charged a prorated amount.
1. Go to **Settings → Subscription**
2. Click **Cancel Subscription**
3. Confirm
Access continues until your billing date. Projects stay on your Mac.
***
## Still Can't Find It?
In-depth debugging walkthrough
More Q\&A organized by topic
# Building for iPhone, iPad, and Mac
Source: https://docs.nativeline.ai/guides/multi-platform
Platform-specific guidance for building on all Apple platforms
Nativeline supports three platforms: **iPhone**, **iPad**, and **Mac**. You choose your platform when creating a new project on the home page, and that choice shapes everything — the UI patterns the AI uses, how your app is tested, and how you distribute it.
## Choosing Your Platform
Each platform has its own strengths. Pick the one that best fits what you're building.
Standard mobile apps. The most common choice. Full iOS feature set with compact, touch-first UI.
Larger canvas with room for sidebars, split views, and richer layouts. Great for productivity and content apps.
Desktop apps with menu bars, keyboard shortcuts, and window management. Native macOS experience.
## iPhone Apps
iPhone apps use standard mobile UI patterns that feel familiar to every iOS user.
**What you get:**
* Tab bars for top-level navigation
* Navigation stacks for drill-down flows
* Lists, forms, and detail views
* Full access to iOS APIs (camera, location, notifications, etc.)
**Testing:** Your app runs in an embedded iPhone simulator right inside Nativeline.
**Distribution:** Publish via TestFlight for beta testing, or submit to the App Store.
**Example prompts:**
```
Create a fitness tracker with daily workout logging and progress charts
```
```
Build a habit tracking app with streaks and daily reminders
```
```
Make a recipe organizer where I can save recipes and generate shopping lists
```
## iPad Apps
iPad apps take advantage of the larger screen to show more content and use richer navigation patterns.
**What you get:**
* Sidebar navigation using `NavigationSplitView`
* Split views for master-detail layouts
* More room for data-dense interfaces
* Support for Apple Pencil interactions
* Full access to iPadOS APIs
**Testing:** Your app runs in an embedded iPad simulator inside Nativeline.
**Distribution:** Publish via TestFlight for beta testing, or submit to the App Store.
**Example prompts:**
```
Create a recipe manager with a sidebar for categories and a detail view for each recipe
```
```
Build a PDF annotator where I can highlight text and add notes
```
```
Make a drawing canvas app with layers and brush customization
```
## Mac Apps
Mac apps are native macOS applications with proper desktop UI conventions. No Catalyst, no iOS port — these are real Mac apps.
**What you get:**
* Menu bar support with custom menus
* Keyboard shortcuts and keyboard navigation
* Window management (resizing, multiple windows)
* Native macOS controls and layout patterns
* Toolbar support
**Testing:** Mac apps run natively in a window on your Mac — no simulator needed.
**Distribution:** Three options:
* **TestFlight** for beta testing
* **App Store** for public distribution
* **DMG export** for distribution outside the App Store
**Example prompts:**
```
Create a clipboard manager that lives in the menu bar
```
```
Build a markdown editor with live preview and file management
```
```
Make a window manager that lets me snap windows to screen regions with keyboard shortcuts
```
## Platform Comparison
| | iPhone | iPad | Mac |
| ---------------- | ---------------------- | ---------------------- | ---------------------------- |
| **Screen size** | Compact | Regular | Full desktop |
| **Navigation** | Tab bar, stack | Sidebar, split view | Menu bar, toolbar |
| **Input** | Touch | Touch + Pencil | Mouse + keyboard |
| **Testing** | Embedded simulator | Embedded simulator | Runs natively |
| **Distribution** | TestFlight / App Store | TestFlight / App Store | TestFlight / App Store / DMG |
## Tips for Each Platform
* Keep your UI simple and focused — screen space is limited
* Use tab bars for 3-5 top-level sections
* Think about one-handed use — put key actions within thumb reach
* Test with different Dynamic Type sizes to make sure text scales well
* Use sheets and modals sparingly to avoid navigation confusion
* Take advantage of sidebars — they're the standard iPad navigation pattern
* Don't just scale up an iPhone layout. Use the extra space for split views and richer content
* Consider landscape and portrait orientations — iPad users rotate frequently
* Multi-column layouts work well for list-detail flows
* Use popovers instead of full-screen modals when possible
* Add keyboard shortcuts for common actions — Mac users expect them
* Use the menu bar for navigation and commands, not just toolbar buttons
* Support window resizing gracefully — your layout should adapt to different window sizes
* Consider adding a menu bar extra (status bar icon) for utility apps
* Respect macOS conventions: Cmd+Q to quit, Cmd+W to close window, Cmd+, for preferences
You can't change a project's platform after creation. If you want to build for a different platform, create a new project.
## Which Platform Should You Pick?
If you're not sure, ask yourself:
* **"Will people use this on the go?"** — Build for iPhone.
* **"Does this need a big canvas or complex navigation?"** — Build for iPad.
* **"Is this a productivity tool or utility people use at their desk?"** — Build for Mac.
You can always create separate projects for different platforms if your app idea works across multiple form factors.
***
Start a new project and choose your platform.
Test your iPhone and iPad apps without leaving Nativeline.
# Optimizing AI Usage
Source: https://docs.nativeline.ai/guides/optimizing-usage
Get more done with fewer bits through smart building strategies
# Optimizing AI Usage
Bits measure your AI usage in Nativeline. Using them wisely means building more with less. This guide shares strategies for efficient building.
## Choose the Right AI Mode
Different AI modes have different bit costs. Picking the right one saves bits.
| Mode | Best For | Bit Cost |
| ------------ | ------------------------------ | -------- |
| **Quick** | Fast iteration, simple changes | Lowest |
| **Enhanced** | Most projects (default) | Low |
| **Max** | Complex logic, deep debugging | Higher |
**Enhanced** is the default for good reason — it produces the best designs and makes fewer mistakes, so you often use *fewer* total bits than Quick mode for the same result.
### When to Switch Modes
* Use **Quick** for rapid color/text tweaks
* Stay on **Enhanced** for building features (default)
* Switch to **Max** only for complex algorithms or stubborn bugs
See [AI Modes](/features/ai-modes) for the full comparison.
***
## Use the Toolkit to Save Bits
The Toolkit's # commands let you attach real assets instead of describing them — saving bits and getting better results.
### Without Toolkit (More Bits)
```
Use a rounded sans-serif font that looks modern and clean,
similar to SF Pro Rounded but with more character
```
→ AI guesses, you iterate
→ **30+ bits**
### With Toolkit (Fewer Bits)
```
#font Use this font for all headings
```
→ AI uses your exact font
→ **10 bits**
### Quick Toolkit Reference
| Command | Instead of Describing... |
| --------- | --------------------------------- |
| `#image` | "Add an image that looks like..." |
| `#font` | "Use a font similar to..." |
| `#color` | "Use a blue like hex #..." |
| `#data` | "Create sample data with..." |
| `#sound` | "Add a notification sound" |
| `#video` | "Add a background video" |
| `#lottie` | "Create a loading animation" |
| `#3d` | "Add a 3D model viewer" |
See [Toolkit](/toolkit/overview) for the full guide.
***
## Understanding Bit Consumption
Not all requests use the same number of bits.
### What Uses More Bits
* Vague requests that need multiple iterations
* Complex features built all at once
* Repeated error-fix cycles
* Large code rewrites
* Back-and-forth clarifications
* Using Max mode for simple tasks
### What Uses Fewer Bits
* Specific, clear requests
* Features built incrementally
* First-time success (fewer fix attempts)
* Small, focused changes
* Using reference images
* Using the Toolkit for assets
* Staying on Enhanced mode for most work
***
## The Specificity Principle
**The more specific your request, the fewer bits it uses.**
### Expensive (Vague)
```
Make the app look better
```
→ AI guesses, you correct, repeat several times
→ **60+ bits**
### Efficient (Specific)
```
Add 16pt padding to all cards, 12pt rounded corners,
and a subtle drop shadow (offset 0, blur 8, opacity 10%)
```
→ AI implements exactly what you want
→ **10-15 bits**
***
## Build Incrementally
Building one feature at a time is more efficient than requesting everything at once.
### Expensive (All at Once)
```
Build a complete fitness app with workout tracking,
meal plans, progress charts, social sharing,
achievements, and calendar integration
```
→ Huge request, more likely to need fixes
→ **60-80 bits** (single message, but often needs follow-ups)
### Efficient (Step by Step)
```
1. Start with workout logging (name, sets, reps)
2. Add exercise history view
3. Add progress charts
4. Add meal logging
5. etc.
```
→ Each step builds on stable foundation
→ **25-40 bits per message** (cleaner results, fewer fixes needed)
***
## Use Reference Images
A picture really is worth a thousand ~~words~~ tokens.
### Without Image
```
I want a card layout where the image is on top,
then the title below it in bold, then a subtitle
in gray, and a price on the right side...
```
→ Multiple iterations to get it right
→ **50+ bits**
### With Image
```
Make my product cards look like this screenshot
[attached image]
```
→ AI sees exactly what you want
→ **15-25 bits**
### How to Use Images
1. Take a screenshot of any app/website you like
2. Drag and drop it into the Nativeline chat
3. Reference it in your prompt
***
## First-Time Success
Getting it right the first time saves bits.
### Before Sending a Prompt
1. **Be specific** — Include exact values, colors, sizes
2. **Be complete** — Mention all requirements upfront
3. **Be clear** — Describe the user experience, not just the UI
### The 30-Second Check
Before sending, ask yourself:
* Have I specified WHERE this should appear?
* Have I specified HOW it should look?
* Have I specified WHAT it should do?
This small investment prevents expensive iterations.
***
## Leverage Pro Plan Features
If you're on Pro plan, use the code editor for small changes.
### AI-Efficient
```
Add a settings screen with notification toggle
```
Use AI for new features and complex logic.
### Manual-Efficient
Open the code editor and change:
```swift theme={null}
.foregroundColor(.blue) // change to .green
.padding(16) // change to 20
Text("Save") // change to "Submit"
```
Save your bits for things that actually need AI.
***
## Optimize Error Handling
Errors consume bits. Reduce them.
### Preventive Prompting
```
Add a save button that saves the form data.
Include error handling if the save fails,
and show a loading indicator while saving.
```
Asking for error handling upfront prevents errors later.
### Quick Error Context
When errors occur, provide helpful context immediately:
```
The error says 'user' not found. It should use
'currentUser' from AuthManager.
```
Good context = faster fix = fewer bits.
***
## Batch Similar Changes
If you need multiple similar changes, batch them:
### Expensive (Separate Requests)
```
Change the home screen button to blue
```
then
```
Change the profile screen button to blue
```
then
```
Change the settings screen button to blue
```
→ **45+ bits** (3 separate operations)
### Efficient (One Request)
```
Change all buttons across the app to use blue (#007AFF)
as the primary color
```
→ **15 bits** (single operation)
***
## Know When to Start Fresh
Sometimes restarting is more efficient than fixing.
### Signs to Rebuild
* Same error returning repeatedly
* Multiple interconnected issues
* Fundamental architecture problem
* More than 5 fix attempts
### Efficient Restart
```
/planclear
Delete the [feature] code completely.
Let's rebuild it with a simpler approach: [description]
```
A clean rebuild often uses fewer bits than endless fixes.
***
## Smart Plan Management
### Don't Interrupt Plans
Let the AI complete its current plan before adding new requests. Interruptions can leave things half-done.
### Clear Plans When Pivoting
If you're changing direction:
```
/planclear
```
Then start fresh. Don't let old plans interfere.
### Review Before Execution
When the AI shows its plan, review it:
* Is this what you want?
* Is it the simplest approach?
* Should anything be different?
Feedback before implementation is cheaper than fixes after.
***
## Bit Usage by Action
### Low Bit Usage (1-10 bits)
* Simple questions
* Single color/text changes
* Spacing adjustments
* Single property changes
### Medium Bit Usage (10-25 bits)
* Multiple styling changes
* Minor bug fixes
* Small UI polish
* Simple additions
### High Bit Usage (25-50 bits)
* New components
* New screens
* Small features
* Multi-step changes
### Very High Bit Usage (50-100+ bits)
* Complete app builds
* Complex features
* Major bug investigations
* Large multi-file changes
***
## Tracking Your Usage
### Monitor in Real-Time
Check the bit counter in Nativeline's toolbar:
* Current remaining bits
* Usage trend
* Reset date
### Plan Your Sessions
If you have 200 bits left:
* ✅ Polish existing features
* ✅ Make small fixes
* ❌ Start a major new feature (save for after reset)
***
## Quick Reference
| Strategy | Savings |
| ------------------------ | --------------------- |
| Specific prompts | 50-70% |
| Reference images | 40-60% |
| Building incrementally | 30-50% |
| Quick error context | 20-40% |
| Manual edits (Pro) | 90% for small changes |
| Batching similar changes | 30-50% |
***
## Next Steps
Master efficient prompting
Choose the right mode for the task
Attach assets to save bits
Understand bit allocation
# Guides Overview
Source: https://docs.nativeline.ai/guides/overview
Deep dives, tutorials, and how-to references for Nativeline
# Guides
Welcome to the Guides section — your resource for mastering Nativeline. Here you'll find deep dives into specific topics, quick references, and solutions to common scenarios.
## Quick Reference
**Your go-to quick reference**
Find immediate answers to common questions: How do I clear a plan? What happens after build errors? How do I read logs?
***
## Core Guides
Master the art of communicating with the AI. Learn prompt structures, see examples, and dramatically improve your results.
Complete walkthrough of debugging in Nativeline. Understanding errors, the 3-attempt cycle, manual fixes, and more.
Learn how AI plans work, how to clear them with /planclear, resume work, and start fresh.
When automatic fixes fail, here's how to intervene manually and get your app building again.
***
## Pro Features
Pro plan feature: Use the code editor's logs to debug runtime issues and understand app behavior.
Get more done with fewer bits. Strategies for efficient prompting and smart building.
***
## Advanced Topics
Specific cases and their solutions: data sync issues, complex UI layouts, performance problems.
Multi-step requests, complex features, and techniques for ambitious projects.
***
## Most Common Questions
People usually come to Guides looking for:
| Question | Answer |
| ----------------------------- | -------------------------------------------------------------------------- |
| How do I clear a plan? | Type `/planclear` in the chat |
| What if the AI keeps failing? | After 3 attempts, press Run App → wait for popup → click Apply Fix |
| How do I see logs? | Pro plan: Code Editor → Logs tab |
| How do I undo changes? | Tell the AI "undo that" or use git history |
| Why is my build slow? | First build takes longer; see [common scenarios](/guides/common-scenarios) |
For more, see the complete [How Do I...](/guides/how-do-i) reference.
***
## Getting Help
If you can't find what you need:
Comprehensive Q\&A organized by topic
Get help from other Nativeline users
# Prompt Writing Workshop
Source: https://docs.nativeline.ai/guides/prompt-workshop
Master the art of communicating with AI to build exactly what you want
# Prompt Writing Workshop
The quality of your prompts directly determines the quality of your apps. This guide teaches you how to communicate effectively with Nativeline's AI.
## The Anatomy of a Good Prompt
Every effective prompt has three elements:
### 1. What (The Action)
What do you want to happen?
* "Add a button"
* "Create a new screen"
* "Fix the layout"
### 2. Where (The Location)
Where should it happen?
* "on the home screen"
* "below the title"
* "in the settings tab"
### 3. How (The Details)
What should it look like or do?
* "with a blue background and white text"
* "that saves the user's preferences"
* "with 16pt padding"
***
## Good vs. Bad Prompts
"Make the app look better"
**Problem:** The AI has to guess what "better" means to you. It might change colors you liked or add effects you don't want.
"Add 16pt padding to all cards, use 12pt rounded corners, and add a subtle shadow"
**Why it works:** Exact values, clear scope, predictable result.
"Build me a complete social media app with posts, comments, likes, follows, profiles, messaging, notifications, and a discover feed"
**Problem:** Too many features at once leads to errors and confusion.
"Start with a feed of posts. Each post has a title, body, and author name. Users can scroll through posts."
**Why it works:** One focused feature. You can add comments, likes, etc. later.
***
## The WHAT-WHERE-HOW Framework
Use this framework for consistent results:
### Example 1: Adding a Button
```
Add a submit button [WHAT]
at the bottom of the form [WHERE]
that's full-width with a green background, white text, and 12pt rounded corners [HOW]
```
### Example 2: Creating a Screen
```
Create a settings screen [WHAT]
accessible from the profile tab [WHERE]
with toggle switches for notifications, dark mode, and sounds [HOW]
```
### Example 3: Fixing an Issue
```
Fix the text overlap [WHAT]
on the task list items [WHERE]
by adding proper spacing and truncating long titles with ellipsis [HOW]
```
***
## Describing User Experiences
Some of the best prompts describe what users should experience:
### Instead of technical specs...
❌ "Create a UIButton with a closure that increments a @State variable"
### Describe the user experience...
✅ "Add a button that counts taps. Show the count above the button. Each tap should feel responsive with a quick animation."
The AI knows the technical implementation — your job is to describe the experience.
***
## Using Reference Images
Images are incredibly powerful. You can:
### Share Screenshots
Paste a screenshot of an app you like:
> "Make my list look like this screenshot — same spacing and style"
### Share Mockups
Sketch something in Figma or on paper:
> "Here's my design mockup. Implement this exactly"
### Share Examples
Find a UI element you want:
> "Add a card that looks like this example"
A picture is worth a thousand tokens. Images dramatically reduce back-and-forth and bit usage.
***
## Prompt Templates
### Adding a Feature
```
Add [feature name] that lets users [user action].
Show it [where in the app].
When users [interact], it should [result].
Style it with [visual details].
```
**Example:**
```
Add a favorites feature that lets users mark items as favorites.
Show a heart icon on each item card.
When users tap the heart, it should fill in and save the favorite.
Style it with a red filled heart for favorites, gray outline for non-favorites.
```
### Fixing a Bug
```
There's a problem with [what's broken].
What I expect: [expected behavior]
What happens instead: [actual behavior]
This occurs when [steps to reproduce].
```
**Example:**
```
There's a problem with the save button.
What I expect: Tapping save should store my data and show a confirmation.
What happens instead: Nothing happens when I tap it.
This occurs when I fill out the form and tap the save button.
```
### Changing Design
```
Update the [element] to have:
- [property 1]: [value]
- [property 2]: [value]
- [property 3]: [value]
Keep everything else the same.
```
**Example:**
```
Update the header to have:
- Background: dark blue (#1a365d)
- Title font: 24pt, bold, white
- Padding: 20pt top and bottom
Keep everything else the same.
```
***
## 50+ Example Prompts
### UI Elements
| Need | Prompt |
| ---------- | ---------------------------------------------------------------- |
| Button | "Add a rounded button with blue background that says 'Continue'" |
| Text field | "Add an email input field with placeholder 'Enter your email'" |
| Toggle | "Add a dark mode toggle switch in settings" |
| Slider | "Add a volume slider from 0 to 100" |
| Card | "Display items as cards with image, title, and subtitle" |
| List | "Show a scrollable list of items with swipe-to-delete" |
| Tab bar | "Add a tab bar with Home, Search, and Profile tabs" |
| Navigation | "Add a back button that returns to the previous screen" |
| Modal | "Show a confirmation dialog when deleting items" |
| Alert | "Show an error alert when login fails" |
### Data & Storage
| Need | Prompt |
| ------------ | ------------------------------------------------------------ |
| Save locally | "Save user preferences so they persist between app launches" |
| Load data | "Load the saved items when the app opens" |
| Delete data | "Add a 'Clear All' button that removes all saved items" |
| Search | "Add a search bar that filters the list as I type" |
| Sort | "Add buttons to sort by name, date, or priority" |
| Filter | "Add filter chips for categories at the top" |
### Visual Design
| Need | Prompt |
| --------- | ---------------------------------------------------- |
| Spacing | "Add 16pt padding around all content" |
| Colors | "Use blue (#007AFF) as the primary color throughout" |
| Fonts | "Use a larger, bolder font for headings" |
| Shadows | "Add subtle shadows to all cards" |
| Corners | "Round all corners to 12pt" |
| Dark mode | "Support dark mode with appropriate colors" |
| Animation | "Add a subtle bounce animation when items are added" |
### Interactions
| Need | Prompt |
| --------------- | ------------------------------------------- |
| Pull to refresh | "Add pull-to-refresh to update the list" |
| Swipe | "Add swipe gestures to show action buttons" |
| Long press | "Show a menu on long press" |
| Drag and drop | "Let users reorder items by dragging" |
| Pinch to zoom | "Add pinch-to-zoom on images" |
| Haptics | "Add haptic feedback when actions complete" |
### User Feedback
| Need | Prompt |
| ----------- | ---------------------------------------------------- |
| Loading | "Show a loading spinner while data loads" |
| Success | "Show a checkmark animation when saved successfully" |
| Error | "Show inline error messages under invalid fields" |
| Empty state | "Show a friendly message when the list is empty" |
| Progress | "Show a progress bar while uploading" |
***
## Common Mistakes
### 1. Being Too Technical
❌ "Implement a @StateObject with a published array using MVVM architecture"
✅ "Create a list that updates in real-time when items are added"
**Why:** The AI handles architecture. Describe the behavior you want.
### 2. Asking for Everything at Once
❌ "Build a fitness app with workouts, meal plans, progress tracking, social features, Apple Watch integration, and gamification"
✅ Start with: "Build a workout tracker where I can log exercises with name, sets, and reps"
**Why:** Build incrementally. Add features one at a time.
### 3. Not Providing Context
❌ "Add a button"
✅ "Add a 'Save Changes' button below the form that saves the edited profile information"
**Why:** Context helps the AI place and style things appropriately.
### 4. Ignoring Errors
When builds fail, don't just say "fix it."
✅ "The build is failing because the variable 'userName' isn't found. I think it should come from the login screen."
**Why:** Your context helps the AI fix issues faster.
***
## Iterating Effectively
You won't get perfection on the first try. Here's how to iterate:
### Start Broad, Then Refine
1. **First prompt:** "Add a profile section with user avatar and name"
2. **Refinement:** "Make the avatar larger, about 80pt"
3. **Refinement:** "Add a border around the avatar"
4. **Refinement:** "Center everything horizontally"
### Give Specific Feedback
Instead of: "That's not right"
Say: "The button is too small. Make it taller (50pt) and full-width"
### Reference What Works
"Keep the header exactly as it is, but change the body font to be larger"
***
## Efficiency Tips
### Save Bits with Better Prompts
| Expensive | Efficient |
| ------------------------------ | -------------------------- |
| Multiple vague iterations | One specific request |
| "Make it better" | "Add these exact changes" |
| Building huge features at once | Building incrementally |
| Not using images | Providing reference images |
### The 30-Second Rule
Before sending a prompt, take 30 seconds to:
1. Add specific values (colors, sizes, spacing)
2. Clarify where the change should happen
3. Describe the expected outcome
This small investment saves significant bits.
***
## Practice Exercise
Try rewriting these vague prompts:
**Better version:**
"Create a login screen with:
* Email and password text fields
* A 'Log In' button below the fields
* A 'Forgot Password?' link below the button
* App logo centered at the top
* Clean white background"
**Better version:**
"Create a settings screen with toggles for:
* Push notifications (default on)
* Dark mode (default off)
* Sound effects (default on)
Group them with a 'Preferences' header. Add a 'Log Out' button at the bottom."
**Better version:**
"The save button doesn't work. When I tap it after filling out the form, nothing happens. I expect it to save my data and show a confirmation. This started after adding the new profile picture feature."
***
## Next Steps
Complex features and multi-step requests
Leverage screenshots and mockups
# Working with Plans
Source: https://docs.nativeline.ai/guides/working-with-plans
Understand how the AI works and manage it effectively
# Working with Plans
When you ask Nativeline to build something, the AI creates an internal plan and immediately starts executing it. Understanding how this works helps you collaborate more effectively.
## How the AI Works
When you describe what you want, the AI:
1. Analyzes your request
2. Breaks it into logical steps internally
3. Executes each step in order
4. Shows you code previews and tool cards as it works
5. Builds and tests your app automatically
The AI doesn't wait for approval — it starts working immediately. You can watch the progress through code previews and redirect if needed.
### Example
You say: "Add a profile screen with user avatar, name, and settings"
The AI internally plans to:
1. Create ProfileView\.swift
2. Add avatar image component
3. Add name display
4. Add settings section
5. Connect to navigation
6. Build and test
You'll see code being written in real-time as the AI executes each step.
***
## Slash Commands
Nativeline provides commands to help manage the AI:
| Command | What it does |
| ------------ | ----------------------------------------- |
| `/help` | Shows all available commands |
| `/plan` | Shows the current internal plan status |
| `/planclear` | Clears the current plan (keeps your code) |
| `/debug` | Toggles debug logging on/off |
### The /planclear Command
**`/planclear`** clears the current plan and lets you start fresh.
**When to use it:**
* You want to work on something different
* The AI seems stuck or going in the wrong direction
* You've changed your mind about what you want
* The AI keeps trying to complete something you no longer need
**How to use it:**
```
/planclear
```
**What it does NOT do:**
* Does NOT undo any code changes
* Does NOT delete your files
* Does NOT reset your project
It only clears the internal plan — your code stays exactly as it is.
### The /plan Command
Use `/plan` to see what the AI is currently working on:
```
/plan
```
This shows the internal plan status, which can help you understand what's happening if the AI seems busy.
***
## Resuming Work
### Coming Back to a Project
If you had work in progress and return later:
**Option 1: Continue where you left off**
```
continue
```
or
```
keep going
```
**Option 2: Start fresh**
```
/planclear
```
Then describe what you want to do instead.
### What if the AI is Stuck?
If the AI keeps trying and failing:
1. Try: "Let's try a different approach to \[the stuck task]"
2. Or: `/planclear` and re-describe what you want
3. Or: Provide more specific guidance about what's going wrong
***
## Best Practices
### 1. Let the AI Figure Out the Details
You don't need to tell the AI exactly what files to create or what code to write. Just describe the feature and let it work.
**Don't:**
```
Create a file called ProfileView.swift with a struct that has an @State variable for the username...
```
**Do:**
```
Add a profile screen where users can edit their username and email
```
### 2. Watch and Redirect
As the AI works, you'll see code previews showing what it's creating. You can:
* **Let it work:** Most of the time, just watch it build
* **Redirect:** "Actually, don't include email, just username"
* **Clarify:** "That's not quite what I want, let me explain differently"
### 3. Keep Requests Focused
One clear request = focused work.
**Too broad:**
```
Build my whole app with user profiles, posts, comments, likes, and messaging
```
**Just right:**
```
Start with user profiles where people can set their name and avatar
```
After that works, add the next feature.
### 4. Don't Interrupt Mid-Task (Usually)
Let the AI complete its current task before adding new requests. Interrupting can lead to half-finished work.
However, if you see it going wrong, it's fine to say:
```
Stop, that's not what I meant. Let me clarify...
```
***
## Handling Build Errors
If a build fails while the AI is working:
1. The AI automatically detects the error
2. It attempts to fix it (up to 3 times)
3. After fixing, it continues with remaining work
4. You don't need to restart anything
See [Debugging Guide](/guides/debugging) for more details.
***
## Common Scenarios
### "I want to change direction"
```
/planclear
```
Then describe your new direction.
### "I want to add more features"
Wait for the current work to complete, then:
```
Now also add [new feature]
```
### "The AI keeps failing on something"
```
Let's skip that for now and try a simpler approach.
```
Or:
```
/planclear
Let's take a simpler approach to [feature]
```
### "I don't understand what's happening"
```
Explain what you're doing and why
```
The AI will describe its approach in plain English.
***
## AI Memory
The AI remembers:
* What it's already built and tried
* Previous conversation context
* Your project's structure and patterns
* Your preferences and style
This memory helps it:
* Avoid repeating failed approaches
* Build consistently with existing code
* Remember your preferences
### The .nativeline Folder
Your project contains a hidden `.nativeline` folder with AI memory about your project. Don't delete this folder unless you want to reset the AI's memory completely.
***
## Troubleshooting
Make sure you type exactly: `/planclear`
It should work immediately. If not, try closing and reopening the project.
1. Type `/planclear` explicitly
2. Wait for confirmation
3. Then start your new request
Clear it and start smaller:
```
/planclear
Let's start with just [the core feature]. We'll add more later.
```
Try:
```
What are you currently working on? Can you summarize?
```
Or use `/plan` to check the status, then `/planclear` if needed.
***
## Next Steps
Handle build errors effectively
Write better prompts for better results
# Do You Need a Backend?
Source: https://docs.nativeline.ai/integrations/do-you-need-backend
Help deciding if your app needs cloud services
# Do You Need a Backend?
Not every app needs a backend or cloud services. This guide helps you decide what your app actually needs.
## Quick Decision Flow
```
Does your app need user accounts?
├── Yes → You need Supabase (Auth + Database)
└── No
├── Does data need to sync across devices?
│ ├── Yes → You need Supabase
│ └── No
│ ├── Does data need to persist when app is deleted?
│ │ ├── Yes → Consider Supabase or iCloud
│ │ └── No → Local storage is fine (SwiftData)
│ └── Do you need external data (weather, AI, etc.)?
│ ├── Yes → You need specific APIs
│ └── No → No backend needed!
```
***
## When You DON'T Need a Backend
### Apps That Work Completely Offline
These apps store everything locally:
* Personal calculators
* Unit converters
* Simple note apps (single device)
* Timers and stopwatches
* Single-player games
* Personal habit trackers (single device)
* Shopping lists (single device)
### Built-in iOS Features
These features don't require external services:
* Camera and Photos
* Calendar integration (via iOS Calendar)
* Contacts (via iOS Contacts)
* Reminders (via iOS Reminders)
* HealthKit data (stored by iOS)
* Core Location (GPS)
* Local notifications
***
## When You DO Need a Backend
### User Accounts
If your app needs:
* Signup / Login
* User profiles
* Private user data
* Social features
**Solution:** Supabase Authentication
### Cloud Data Storage
If your app needs:
* Data that syncs between devices
* Data accessible from web/other platforms
* Data stored even if app is deleted
* Shared data between users
**Solution:** Supabase Database
### File Uploads
If your app needs:
* Profile photo uploads
* User-generated content (images, documents)
* Media sharing between users
**Solution:** Supabase Storage
### Real-Time Features
If your app needs:
* Live chat
* Collaborative editing
* Live activity feeds
* Instant notifications of changes
**Solution:** Supabase Realtime
### External Data or Functionality
| Need | Solution |
| --------------------- | ------------------------------------- |
| AI / ChatGPT features | OpenAI API |
| Payment processing | Stripe |
| Weather data | WeatherKit or OpenWeather |
| Email sending | SendGrid, Mailgun |
| SMS sending | Twilio |
| Push notifications | Apple APNS (via Supabase or Firebase) |
***
## Local Storage vs Cloud Storage
### Local Storage (SwiftData)
**Pros:**
* Works offline
* Fast (no network latency)
* Free (no external service)
* Private (data stays on device)
**Cons:**
* Lost if app is deleted
* Single device only
* No sharing between users
**Best for:**
* Personal productivity apps
* Single-device tools
* Offline-first apps
### Cloud Storage (Supabase)
**Pros:**
* Syncs across devices
* Survives app deletion
* Can share between users
* Accessible from web
**Cons:**
* Requires internet
* Has network latency
* Costs money at scale
* More complex
**Best for:**
* Social apps
* Multi-device sync
* Apps with user accounts
* Collaborative features
### Hybrid Approach
Many apps use both:
1. Store locally for speed
2. Sync to cloud for backup/multi-device
3. Work offline, sync when online
***
## Cost Considerations
### Free Options
| Service | Free Tier |
| ----------- | ------------------------------------------- |
| Supabase | 500MB database, 1GB storage, 50K auth users |
| OpenWeather | 1,000 calls/day |
| WeatherKit | 500K calls/month |
| Firebase | Generous free tier |
### When You'll Pay
You'll exceed free tiers when:
* Thousands of active users
* Storing lots of images/files
* Heavy API usage
* Enterprise-level needs
For most indie apps, free tiers are sufficient.
***
## Common App Types and What They Need
### Personal Journal App
**Features:** Write entries, add photos, search history
**Needs:**
* Local storage for entries (SwiftData) ✅
* Photo storage (local or Supabase Storage)
* No user accounts needed
* **Backend: Optional** (only if you want cloud sync)
### Social Recipe App
**Features:** Share recipes, follow users, comment
**Needs:**
* User accounts (Supabase Auth) ✅
* Recipe database (Supabase Database) ✅
* Photo uploads (Supabase Storage) ✅
* Real-time comments (Supabase Realtime) ✅
* **Backend: Required**
### Weather App
**Features:** Show current weather, forecast, locations
**Needs:**
* Weather API (WeatherKit or OpenWeather) ✅
* Location services (built-in) ✅
* Save favorite locations (local) ✅
* **Backend: Just weather API**
### AI Writing Assistant
**Features:** Help write content, suggest improvements
**Needs:**
* OpenAI API ✅
* Local storage for drafts ✅
* **Backend: Just OpenAI API**
### Fitness Tracker
**Features:** Log workouts, track progress, goals
**Needs:**
* Local storage (SwiftData) ✅
* HealthKit integration (built-in) ✅
* Optional cloud sync (Supabase)
* **Backend: Optional**
***
## Making Your Decision
### Start Simple
1. Build your app with local storage first
2. Get core features working
3. Add cloud features if needed
### Add Cloud Features When
* Users ask for multi-device sync
* You need user accounts
* You want social features
* Data loss concerns (cloud backup)
### Questions to Ask
1. Does my app work if the user has no internet?
2. Do users expect their data on multiple devices?
3. Do users interact with each other?
4. Is user data valuable enough to need cloud backup?
***
## Still Unsure?
### Start Local, Add Cloud Later
Most apps can start with local storage and add Supabase later. This approach:
* Gets you to market faster
* Validates your idea first
* Adds complexity only when needed
### Just Use Supabase
If you think you might need any cloud features:
* Supabase has a generous free tier
* Better to set it up early
* Easier than migrating later
***
## Next Steps
Learn about Supabase
Integrate external APIs
# Maps & Location
Source: https://docs.nativeline.ai/integrations/external-apis/maps
Add maps, directions, and location features
# Maps & Location
Add interactive maps, directions, place search, and location tracking using Apple's built-in frameworks.
## What You Can Build
* **Map Display** — Show maps with markers
* **User Location** — Track where users are
* **Directions** — Route calculation and navigation
* **Place Search** — Find locations by name
* **Geocoding** — Convert addresses to coordinates
***
## Built-In vs External
### Apple MapKit (Built-In)
**Pros:**
* No API key needed
* Free (included in iOS)
* Privacy-focused
* Native performance
**Cons:**
* iOS only
* Limited customization
* No Street View
### Google Maps (External)
**Pros:**
* More detailed in some areas
* Street View
* Cross-platform
**Cons:**
* Requires API key
* Has usage costs
* More setup
**Recommendation:** Start with Apple MapKit. It covers most needs and is easier to set up.
***
## Displaying a Map
### Basic Map
```
Add a map that shows the user's current location
with a blue dot indicator.
```
### Map with Markers
```
Show a map with markers for each location in my list.
Each marker should show the location name when tapped.
```
### Customizing the Map
```
Configure the map to:
- Show standard view (not satellite)
- Enable user location
- Allow zooming and panning
- Start centered on San Francisco
```
***
## User Location
### Requesting Permission
```
Request location permission when the map loads.
Show an explanation of why we need location.
```
Permission is required to access location:
* **When In Use** — Only while app is open
* **Always** — Even in background (rarely needed)
### Getting Current Location
```
Get the user's current location and show it on the map.
Add a button to re-center on their location.
```
### Tracking Location
```
Track the user's location as they move.
Update the map to follow them.
Show their path as a line.
```
***
## Place Search
### Search by Name
```
Add a search bar that finds places:
- User types a query (e.g., "coffee shops")
- Show results in a list below
- Tap result to show on map
```
### Search Nearby
```
Search for restaurants within 1 mile of the user.
Show results as markers on the map.
```
***
## Directions
### Getting Directions
```
Add directions from user's location to a selected place:
- Calculate the route
- Show the path on the map
- Display distance and estimated time
```
### Multiple Routes
```
Show multiple route options:
- Fastest route
- Alternative routes
- User can tap to select
```
### Turn-by-Turn Instructions
```
Show turn-by-turn directions as a list:
- Each step with instruction
- Distance for each segment
- Scroll to highlight current step
```
***
## Geocoding
### Address to Coordinates
```
Convert an address to map coordinates:
- User enters address
- Convert to latitude/longitude
- Show marker on map
```
### Coordinates to Address
```
Convert tapped location to address:
- User taps on map
- Get the street address
- Display in a popup
```
***
## Map Annotations
### Custom Markers
```
Use custom icons for map markers:
- Restaurants: fork and knife icon
- Shops: shopping bag icon
- User location: blue dot
```
### Marker Details
```
When user taps a marker:
- Show detail card with name and address
- "Get Directions" button
- "Call" button if phone number available
```
### Clustering
```
When there are many markers close together,
group them into clusters showing the count.
Tap to zoom into the cluster.
```
***
## Common Use Cases
### Store Locator
```
Create a store locator:
- Show all store locations on map
- List view below the map
- Search by city or zip
- Filter by features (24hr, drive-thru)
- Tap for directions
```
### Delivery Tracking
```
Build delivery tracking:
- Show driver location (live)
- Show destination
- Draw route between them
- Update ETA as driver moves
```
### Location Check-In
```
Add location check-in:
- Detect when user is near a place
- Prompt to "check in"
- Record the check-in with timestamp
```
***
## Location Settings
### Accuracy Levels
| Level | Use Case | Battery |
| ---------------- | ---------------- | ------- |
| Best | Precise tracking | High |
| Kilometer | City-level | Medium |
| Three Kilometers | Region | Low |
```
Use kilometer accuracy to save battery while
still showing relevant nearby places.
```
### Background Location
Background location drains battery and requires special justification for App Store approval. Only use if truly necessary.
***
## Privacy Considerations
### Permission Best Practices
* Only request location when needed
* Use "When In Use" unless you need background
* Explain why you need location
* Work gracefully without location
### Handling Denied Permission
```
If location is denied:
- Show a friendly message
- Let users enter location manually
- Show button to open Settings
```
***
## Troubleshooting
* Check internet connection
* Verify map region is set
* Check if map view is sized correctly
* Is permission granted?
* Simulator: Set location in Features menu
* Real device: Check Privacy settings
* Check the query isn't empty
* Try broader search terms
* Verify network connection
* Start and end points valid?
* Route possible by selected mode?
* Network connection available?
***
## Testing Location
### In Simulator
Set simulated locations:
* Features → Location → Custom Location
* Or choose preset (City Run, Freeway Drive)
### On Device
Real device uses actual GPS. Walk around to test tracking.
***
## Next Steps
Add weather to location features
Store location data in the cloud
# OpenAI Integration
Source: https://docs.nativeline.ai/integrations/external-apis/openai
Add AI chat and text generation to your app
# OpenAI Integration
Add powerful AI capabilities to your app using OpenAI's GPT models. Create chatbots, generate content, analyze text, and more.
## What You Can Build
* **AI Chat** — Conversational interfaces
* **Content Generation** — Write text, summarize, translate
* **Q\&A Bots** — Answer questions about your content
* **Creative Tools** — Story writing, brainstorming
* **Analysis** — Sentiment analysis, categorization
***
## Prerequisites
* OpenAI account with API access
* API key from OpenAI dashboard
* Credit balance (new accounts get \$5 free)
***
## Getting Your API Key
Go to [platform.openai.com](https://platform.openai.com) and sign up
Click your profile → View API Keys
Click "Create new secret key"
Copy the key immediately — it won't be shown again!
Keep your API key secret! Anyone with your key can make API calls charged to your account.
***
## Setting Up in Nativeline
Tell Nativeline about your API:
```
Add OpenAI integration with my API key: sk-xxxxx
```
Or configure via settings if available.
***
## Building an AI Chat
### Basic Chat Interface
```
Create an AI chat interface:
- Text input at bottom
- Messages list above
- User messages on right (blue)
- AI responses on left (gray)
- Loading indicator while waiting
- Send button and keyboard return to send
```
### Connecting to OpenAI
```
When user sends a message:
1. Add their message to the chat
2. Show loading indicator
3. Send to OpenAI with conversation history
4. Display the AI response
5. Hide loading indicator
```
***
## OpenAI Models
| Model | Best For | Speed | Cost |
| --------------- | -------------------------- | ------ | ------ |
| `gpt-4o` | Complex tasks, reasoning | Medium | Higher |
| `gpt-4o-mini` | Simple tasks, chat | Fast | Lower |
| `gpt-3.5-turbo` | Basic chat, cost-sensitive | Fast | Lowest |
### Choosing a Model
```
Use gpt-4o-mini for the chat feature (fast and affordable)
```
***
## API Parameters
### Temperature
Controls randomness (0 = focused, 1 = creative):
```
Use temperature 0.7 for creative writing
Use temperature 0.3 for factual Q&A
```
### Max Tokens
Limits response length:
```
Limit responses to 500 tokens to keep them concise
```
### System Prompt
Sets the AI's behavior:
```
Add a system prompt:
"You are a helpful cooking assistant. Answer questions about recipes,
ingredients, and cooking techniques. Be concise and friendly."
```
***
## Example Use Cases
### Chatbot
```
Create a customer service chatbot that:
- Greets users
- Answers FAQs about [your topic]
- Asks clarifying questions
- Suggests related topics
```
### Content Generator
```
Build a blog post generator:
- User enters topic
- Select tone (professional, casual, humorous)
- Generate outline first
- Then expand each section
- Allow regeneration of sections
```
### Summarizer
```
Add a summarize feature:
- User pastes long text
- Tap "Summarize"
- Show condensed version
- Option for bullet points vs paragraph
```
### Writing Assistant
```
Create a writing assistant:
- Text editor for user's draft
- "Improve" button to polish text
- "Expand" button to add detail
- "Simplify" button for clarity
```
***
## Handling Conversations
### Maintaining Context
Include conversation history for context:
```
Send the full conversation history to OpenAI so it
understands the context of the conversation.
```
### Trimming History
For long conversations, trim old messages:
```
Keep the last 10 messages in history to stay within
token limits while maintaining context.
```
***
## Error Handling
### Common Errors
| Error | Cause | Solution |
| ------------------ | -------------------- | ----------------------------- |
| Invalid API key | Wrong or expired key | Check key in OpenAI dashboard |
| Rate limited | Too many requests | Wait and retry with backoff |
| Insufficient quota | Out of credits | Add credits in OpenAI billing |
| Context too long | Too many tokens | Trim conversation history |
### Handling in App
```
Handle OpenAI errors gracefully:
- Rate limit: "Please wait a moment"
- Network error: "Check your connection"
- Other errors: "Something went wrong, try again"
Show retry button after errors.
```
***
## Cost Management
### Monitoring Usage
Check usage at [platform.openai.com/usage](https://platform.openai.com/usage)
### Reducing Costs
* Use `gpt-4o-mini` instead of `gpt-4o`
* Set max tokens limit
* Cache common responses
* Trim conversation history
### Setting Limits
In OpenAI dashboard:
1. Settings → Billing → Usage limits
2. Set monthly budget
3. Get notified before exceeding
***
## Best Practices
Clear system prompts improve results:
* Define the AI's role
* Specify tone and style
* Set boundaries
* Include examples
Implement exponential backoff:
* Wait 1 second, retry
* If fails, wait 2 seconds
* Then 4, 8, etc.
API calls take time. Show:
* Loading indicator
* "Thinking..." message
* Disable send button
Check user input before sending:
* Not empty
* Within length limits
* No obvious abuse
***
## Advanced: Streaming
For longer responses, stream tokens as they arrive:
```
Stream the AI response so text appears word by word
instead of waiting for the complete response.
```
This provides better UX for longer generations.
***
## DALL-E (Image Generation)
OpenAI also offers image generation:
```
Add image generation:
- User enters description
- Generate image with DALL-E
- Display the result
- Option to save or regenerate
```
DALL-E has separate pricing. Check OpenAI pricing page for current rates.
***
## Next Steps
Monetize your AI features
Generic API integration guide
# Other APIs
Source: https://docs.nativeline.ai/integrations/external-apis/other
Generic guide for integrating any REST API
# Integrating Any API
This guide covers how to integrate any REST API with your Nativeline app. Use this for services not specifically covered elsewhere.
## Understanding REST APIs
Most APIs follow REST conventions:
```
Your App → HTTP Request → API Server
(GET, POST) ↓
Your App ← JSON Response ← API Server
```
***
## Finding APIs
### Popular API Directories
* [RapidAPI](https://rapidapi.com) — Thousands of APIs
* [Public APIs](https://github.com/public-apis/public-apis) — Free public APIs
* [APIs.guru](https://apis.guru) — OpenAPI directory
### Common Categories
* **Communication:** Twilio (SMS), SendGrid (Email)
* **Social:** Twitter, Instagram, TikTok
* **Data:** News APIs, Stock APIs
* **Utilities:** URL shorteners, QR codes
* **AI:** Stability AI, Replicate
***
## Typical Integration Steps
Identify the service that provides what you need
Understand endpoints, parameters, and authentication
Sign up and get your API key or tokens
Tell the AI about the API and provide credentials
Build the features that use the API
***
## API Authentication Types
### API Key (Header)
Most common. Include key in request header:
```
Add [Service] API with key in Authorization header:
Key: your-api-key-here
```
### API Key (Query Parameter)
Some APIs want the key in the URL:
```
Add [Service] API with key as query parameter:
Key: your-api-key-here
```
### Bearer Token
Common for OAuth and modern APIs:
```
Add [Service] API with Bearer token:
Token: your-token-here
```
### OAuth 2.0
For user-authorized access (e.g., accessing user's social media):
```
Add OAuth authentication for [Service]:
- Client ID: xxxxx
- Client Secret: xxxxx
- Redirect URL: your-app://callback
```
***
## Making API Requests
### GET Request
Retrieve data:
```
Fetch the list of items from [API]:
Endpoint: GET https://api.service.com/items
```
### POST Request
Send data:
```
Send user data to [API]:
Endpoint: POST https://api.service.com/users
Body: { name, email }
```
### With Parameters
```
Search [API] with query parameters:
Endpoint: GET https://api.service.com/search?q={query}&limit=10
```
***
## Handling Responses
### JSON Parsing
Most APIs return JSON. Tell Nativeline the structure:
```
The API returns:
{
"results": [
{ "id": 1, "name": "Item 1" },
{ "id": 2, "name": "Item 2" }
],
"total": 100
}
Parse this and display the results in a list.
```
### Creating Models
```
Create a model for the API response:
- Item has: id (Int), name (String), description (String?)
- Response has: results (array of Items), total (Int)
```
***
## Error Handling
### Common HTTP Status Codes
| Code | Meaning | Handle |
| ---- | ------------ | ---------------------- |
| 200 | Success | Process data |
| 400 | Bad request | Check your parameters |
| 401 | Unauthorized | Check API key |
| 403 | Forbidden | Check permissions |
| 404 | Not found | Resource doesn't exist |
| 429 | Rate limited | Wait and retry |
| 500 | Server error | Retry later |
### Implementing Error Handling
```
Handle API errors:
- 401: Show "Invalid API key"
- 404: Show "Not found"
- 429: Wait 30 seconds and retry
- 500: Show "Service unavailable, try later"
```
***
## Rate Limiting
Most APIs limit requests:
### Understanding Limits
* **Requests per minute/hour/day**
* **Check headers:** `X-RateLimit-Remaining`
### Handling Rate Limits
```
If rate limited:
- Show "Please wait" message
- Wait for limit reset
- Use exponential backoff
- Cache responses to reduce calls
```
***
## Caching
Reduce API calls by caching:
```
Cache API responses:
- Store response with timestamp
- Use cached data if less than 5 minutes old
- Refresh in background
- Show cached data immediately while loading fresh data
```
***
## Security Best Practices
Keys should be stored securely, not in source code or logs.
All API calls should use HTTPS to encrypt data in transit.
Don't assume API responses are always correct or safe.
For sensitive APIs, route calls through your server to hide keys.
***
## Example: News API
```
Integrate NewsAPI.org:
1. API Key: your-news-api-key
2. Endpoint: GET https://newsapi.org/v2/top-headlines
3. Parameters: country=us, category=technology
Display:
- List of articles
- Each shows: title, source, thumbnail
- Tap to open in Safari
```
***
## Example: Giphy API
```
Integrate Giphy:
1. API Key: your-giphy-key
2. Endpoint: GET https://api.giphy.com/v1/gifs/search
3. Parameters: q={searchTerm}, limit=20
Display:
- Grid of GIF thumbnails
- Tap to view full GIF
- Share button
```
***
## Example: Currency Conversion
```
Integrate ExchangeRate-API:
1. API Key: your-key
2. Endpoint: GET https://v6.exchangerate-api.com/v6/{key}/latest/USD
Build:
- Currency converter
- Select from/to currencies
- Enter amount
- Show converted result
- Cache rates for 1 hour
```
***
## Testing APIs
### Postman or Similar
Test APIs outside your app first:
1. Download [Postman](https://postman.com)
2. Test endpoints manually
3. Verify responses
4. Then integrate into app
### Nativeline Testing
```
Add a test screen that:
- Makes a test API call
- Logs the response
- Shows success/failure
```
***
## When APIs Don't Work
### Debugging Steps
1. Check API key is valid
2. Verify endpoint URL
3. Check request format
4. Look at error response
5. Test in Postman
6. Check API documentation
7. Contact API support
### Common Issues
| Issue | Solution |
| ------------ | --------------------------------- |
| CORS errors | Usually not an issue for iOS apps |
| Invalid JSON | Check API response format |
| Timeout | Increase timeout, check network |
| Wrong data | Verify endpoint and parameters |
***
## Related
AI integration
Payment processing
Backend services
# External APIs Overview
Source: https://docs.nativeline.ai/integrations/external-apis/overview
Integrate third-party services into your app
# External APIs
External APIs let you add specialized functionality to your app — AI capabilities, payment processing, weather data, and more.
## What Are External APIs?
APIs (Application Programming Interfaces) let your app communicate with external services:
```
Your App → HTTP Request → External Service
↓
Your App ← Response Data ← External Service
```
***
## Available Integrations
Add AI chat, text generation, and completion features
Accept payments and manage subscriptions
Apple Maps, directions, and geocoding
WeatherKit and OpenWeather data
Generic guide for any API
***
## How API Integration Works
### 1. Get API Credentials
Most APIs require authentication:
* **API Key** — A secret string identifying your app
* **OAuth** — User-authorized access (for user data)
### 2. Configure in App
Tell Nativeline about the API:
```
Add OpenAI integration with API key: sk-xxxxx
```
### 3. Make Requests
The AI handles the technical details. You describe what you want:
```
When user taps "Generate", send their text to OpenAI
and display the response.
```
***
## API Security
Never expose API keys in your code or share them publicly. Keys give access to your account and can incur charges.
### Nativeline Security
Nativeline stores API keys securely:
* Encrypted in macOS Keychain
* Not committed to source code
* Not visible in compiled app (properly)
### Best Practices
* Use environment variables when possible
* Rotate keys if exposed
* Set spending limits in API dashboards
* Consider server-side proxies for production
***
## Common API Patterns
### Request-Response
Most APIs follow this pattern:
```swift theme={null}
// 1. Build request with data
let request = OpenAIRequest(prompt: userInput)
// 2. Send to API
let response = try await openAI.complete(request)
// 3. Use the response
displayResult(response.text)
```
### Handling Errors
APIs can fail — handle errors gracefully:
```
Handle API errors:
- Network errors: Show "Check your connection"
- Rate limits: Show "Please wait and try again"
- Invalid key: Show "Configuration error"
```
### Loading States
Show progress while waiting for responses:
```
While waiting for the API response:
- Show loading indicator
- Disable the send button
- Show progress text like "Thinking..."
```
***
## Free vs Paid APIs
### Typically Free
* Apple Maps (built-in)
* WeatherKit (with Apple Developer account)
* Many APIs have free tiers
### Typically Paid (with free tiers)
| API | Free Tier |
| ----------- | ------------------------------- |
| OpenAI | \$5 credit for new accounts |
| Stripe | Free until you process payments |
| Google Maps | \$200/month credit |
| OpenWeather | 1,000 calls/day |
### Cost Considerations
* Monitor usage in API dashboards
* Set spending limits
* Cache responses to reduce calls
* Use rate limiting in your app
***
## Choosing the Right API
### For AI Features
→ [OpenAI](/integrations/external-apis/openai)
Best for: Chat bots, text generation, content creation, summarization
### For Payments
→ [Stripe](/integrations/external-apis/stripe)
Best for: One-time payments, subscriptions, marketplace payouts
### For Maps & Location
→ [Apple Maps](/integrations/external-apis/maps)
Best for: Maps display, directions, place search, geocoding
### For Weather
→ [WeatherKit or OpenWeather](/integrations/external-apis/weather)
Best for: Current conditions, forecasts, historical data
### For Anything Else
→ [Generic API Guide](/integrations/external-apis/other)
Works with any REST API
***
## Getting Started
Pick the service that provides what you need
Sign up at the provider's website
Usually found in settings or developer dashboard
Add the key and tell the AI to use it
Describe what you want to accomplish
***
## Next Steps
Add AI capabilities
Accept payments
# Stripe Payments
Source: https://docs.nativeline.ai/integrations/external-apis/stripe
Accept payments and subscriptions in your app
# Stripe Payments
Stripe lets you accept payments in your iOS app. Process one-time purchases, set up subscriptions, and manage customers.
Payment integration is complex and has legal/financial implications. Test thoroughly before going live. Consider consulting with a developer or accountant.
## What You Can Build
* **One-time Payments** — Single purchases
* **Subscriptions** — Recurring billing
* **In-App Purchases** — Digital content
* **Marketplace** — Split payments
***
## Prerequisites
* Stripe account (free to create)
* Apple Developer account (for real device testing)
* Understanding of your pricing model
***
## Important Considerations
### Apple's Rules
For digital goods and services (like app features or subscriptions), Apple requires you to use In-App Purchases, not Stripe directly.
**Use Stripe for:**
* Physical goods
* Services delivered outside the app
* Business-to-business transactions
**Use Apple In-App Purchase for:**
* Premium app features
* Digital subscriptions
* Virtual currency/items
### PCI Compliance
Stripe handles credit card data, so you stay PCI compliant. Never store card numbers in your app.
***
## Setting Up Stripe
Go to [stripe.com](https://stripe.com) and sign up
Dashboard → Developers → API keys
* Use **Test mode** keys during development
* Switch to **Live mode** keys for production
```
Add Stripe integration with:
- Publishable key: pk_test_xxxxx
- Secret key: sk_test_xxxxx (for server-side, if needed)
```
***
## Test vs Live Mode
### Test Mode
* Use `pk_test_` and `sk_test_` keys
* Use test card numbers
* No real money processed
* Perfect for development
### Test Card Numbers
| Card | Number | Use |
| ------------- | ------------------- | -------------- |
| Successful | 4242 4242 4242 4242 | Normal success |
| Declined | 4000 0000 0000 0002 | Test decline |
| Requires auth | 4000 0025 0000 3155 | Test 3D Secure |
### Live Mode
* Use `pk_live_` and `sk_live_` keys
* Real money processed
* Only after thorough testing
***
## Basic Payment Flow
### Collect Payment
```
Create a checkout flow:
1. User selects product/amount
2. Show payment sheet with Stripe
3. User enters card details
4. Process payment
5. Show confirmation or error
```
### Using Stripe Payment Sheet
The easiest integration uses Stripe's pre-built UI:
```
Use Stripe Payment Sheet for the checkout:
- Shows Apple Pay if available
- Shows card input
- Handles all validation
- Professional appearance
```
***
## Implementation Approaches
### Client-Side Only (Simple)
For simple use cases:
1. Create PaymentIntent on Stripe dashboard
2. Confirm payment from app
**Limitation:** Less secure, limited functionality
### Client + Server (Recommended)
More secure and flexible:
1. Your server creates PaymentIntent
2. App receives client secret
3. App confirms payment
4. Server receives webhook confirmation
Server-side component typically requires additional development beyond Nativeline. Consider services like Firebase Functions or Supabase Edge Functions.
***
## Common Scenarios
### Single Purchase
```
Create a simple purchase flow:
- Product card shows price ($9.99)
- "Buy Now" button
- Stripe Payment Sheet opens
- On success, unlock the feature
- Save purchase status to Supabase
```
### Subscription
```
Add subscription management:
- Show subscription plans (monthly/yearly)
- "Subscribe" opens Stripe
- On success, update user's subscription status
- Check subscription status on app launch
- Handle subscription expiration
```
### Tipping / Variable Amount
```
Create a tip screen:
- Preset buttons ($5, $10, $20)
- Custom amount input
- Payment with Stripe
- Thank you message
```
***
## Apple Pay
Stripe supports Apple Pay for faster checkout:
```
Enable Apple Pay in the Stripe Payment Sheet
```
Requirements:
* Apple Developer account
* Merchant ID configured in Stripe
* Device with Apple Pay capability
***
## Webhooks
For reliable payment confirmation, use webhooks:
1. Stripe sends event to your server
2. Server updates your database
3. App reflects the change
```
Set up Stripe webhooks to notify when:
- Payment succeeds
- Payment fails
- Subscription renews
- Subscription cancels
```
***
## Security Best Practices
Stripe handles all card data. Your app never sees the actual card number.
Don't trust client-side confirmations alone. Use webhooks to verify.
Always develop with test keys. Only switch to live for production.
Users can modify client code. Always verify amounts on your server.
***
## Error Handling
### Common Errors
| Error | User Message |
| ------------------ | -------------------------------------------------- |
| Card declined | "Your card was declined. Please try another card." |
| Insufficient funds | "Insufficient funds. Please try another card." |
| Expired card | "Your card has expired. Please update your card." |
| Network error | "Connection error. Please try again." |
### Handling in App
```
Handle Stripe errors gracefully:
- Show user-friendly messages
- Allow retry
- Log errors for debugging
- Never show raw error codes to users
```
***
## Refunds
Process refunds from Stripe Dashboard:
1. Payments → Find payment
2. Click "Refund"
3. Full or partial refund
For automated refunds, use Stripe API from your server.
***
## Testing Checklist
Before going live:
* [ ] Successful payment completes
* [ ] Declined card shows error
* [ ] Network failure handled
* [ ] Loading states shown
* [ ] Confirmation displayed
* [ ] Purchase recorded in database
* [ ] Refund process works
* [ ] Subscription renewal works
* [ ] Cancellation handled
***
## Going Live
Add business details, bank account for payouts
Cover all scenarios
Update API keys in your app/server
Use your own card for a small amount
Verify refund works
Watch Stripe dashboard for issues
***
## Next Steps
Add mapping features
Generic API guide
# Weather APIs
Source: https://docs.nativeline.ai/integrations/external-apis/weather
Add weather data to your app
# Weather APIs
Display current weather, forecasts, and weather alerts using WeatherKit or third-party services like OpenWeather.
## Available Options
| Service | Cost | Ease of Setup | Data Quality |
| --------------- | ------------------- | ------------- | ------------ |
| **WeatherKit** | Free (with limits) | Easy | Excellent |
| **OpenWeather** | Free tier available | Medium | Good |
***
## WeatherKit (Apple)
Apple's native weather service. Recommended for iOS apps.
### Pros
* Built into iOS (no external SDK)
* High-quality data (powered by Apple Weather)
* Privacy-focused
* Free tier: 500K calls/month
### Cons
* Requires Apple Developer account
* iOS 16+ only
* Must enable capability in Xcode
***
## WeatherKit Setup
In Nativeline: Settings → Capabilities → WeatherKit → Enable
Or ask:
```
Enable WeatherKit capability for this app
```
Weather data needs location (or specific coordinates)
```
Get the current weather for the user's location using WeatherKit.
Display temperature, conditions, and a weather icon.
```
***
## WeatherKit Data
### Current Weather
```
Show current weather:
- Temperature (with high/low)
- Condition (sunny, cloudy, rain)
- Humidity
- Wind speed and direction
- UV index
- Feels like temperature
```
### Forecast
```
Show a 7-day forecast:
- Day of week
- Weather icon
- High/low temperatures
```
### Hourly
```
Show hourly forecast for next 24 hours:
- Hour
- Temperature
- Condition icon
- Precipitation chance
```
***
## OpenWeather API
Alternative weather service with more customization options.
### Setup
Go to [openweathermap.org](https://openweathermap.org) and sign up
Dashboard → API Keys → Generate
```
Add OpenWeather API with key: your-api-key
```
### Free Tier
* 1,000 calls per day
* Current weather
* 5-day forecast
* Geocoding
***
## OpenWeather Data
### Current Weather
```
Get current weather from OpenWeather:
- Temperature
- Description
- Icon
- Wind
- Humidity
```
### Forecast
```
Get 5-day forecast from OpenWeather
with 3-hour intervals
```
***
## Building Weather UI
### Current Weather Card
```
Create a weather card showing:
- Large temperature display
- Weather condition icon
- Condition text (e.g., "Partly Cloudy")
- High/low for today
- Location name
```
### Forecast List
```
Show forecast as horizontal scrolling cards:
- Each card has day, icon, temps
- Today highlighted differently
- Smooth scrolling
```
### Weather Details
```
Add a details section showing:
- Feels like
- Humidity percentage
- Wind speed (mph)
- UV index
- Visibility
- Pressure
```
***
## Dynamic UI Based on Weather
### Background Changes
```
Change the background based on weather:
- Sunny: Blue gradient
- Cloudy: Gray gradient
- Rainy: Dark blue
- Snowy: Light blue/white
- Night: Dark purple
```
### Weather Animations
```
Add subtle animations:
- Rain drops falling
- Clouds drifting
- Sun rays
```
***
## Location-Based Weather
### Current Location
```
Get weather for the user's current location.
Update when location changes significantly.
```
### Search Location
```
Add city search:
- User types city name
- Show search results
- Select to see weather
- Save as favorite
```
### Saved Locations
```
Let users save multiple locations:
- Add/remove favorites
- Swipe between cities
- Show all on one screen
```
***
## Weather Alerts
### With WeatherKit
```
Check for active weather alerts.
If any, show warning banner with:
- Alert type (storm, heat, etc.)
- Severity level
- Tap for details
```
### Alert Types
* Severe storms
* Heat warnings
* Flood alerts
* Air quality alerts
* Winter weather
***
## Caching Weather Data
Weather doesn't change every second. Cache to reduce API calls:
```
Cache weather data for 10 minutes.
Show cached data immediately, refresh in background.
Show "Last updated" timestamp.
```
***
## Error Handling
### Common Issues
| Issue | User Message |
| ----------- | -------------------------------- |
| No location | "Enable location to see weather" |
| API error | "Unable to load weather" |
| No network | "Check your internet connection" |
### Graceful Degradation
```
If weather fails to load:
- Show cached data if available
- Show "Unable to load" message
- Provide retry button
- Don't crash the app
```
***
## WeatherKit vs OpenWeather
| Feature | WeatherKit | OpenWeather |
| ----------- | ------------ | ----------- |
| Setup | Easiest | Medium |
| Cost | Free 500K/mo | Free 1K/day |
| Data source | Apple | OpenWeather |
| Alerts | Yes | Paid tier |
| Historical | No | Paid tier |
| iOS version | 16+ | Any |
### Recommendation
* **Most apps:** Use WeatherKit
* **iOS 15 support needed:** Use OpenWeather
* **Historical data needed:** Use OpenWeather paid tier
***
## Testing Weather
### In Simulator
Set Simulator location to test different conditions:
* Features → Location → Custom Location
### Different Conditions
Test various weather types by setting location to cities with different climates.
***
## Next Steps
Combine weather with maps
Generic API guide
# Integrations Overview
Source: https://docs.nativeline.ai/integrations/overview
Connect your app to external services and APIs
# Integrations
Take your app beyond local functionality by connecting to external services. Store data in the cloud, add AI capabilities, process payments, and more.
## Do You Need Integrations?
Not every app needs external services. Here's a quick decision guide:
| Your App Needs | Integration Required |
| --------------------------- | ----------------------- |
| Save data on device only | No integration needed |
| User accounts & login | Yes - Supabase Auth |
| Cloud data storage | Yes - Supabase Database |
| Data sync across devices | Yes - Supabase |
| AI features (ChatGPT, etc.) | Yes - OpenAI API |
| Accept payments | Yes - Stripe |
| Maps and directions | Built-in Apple Maps |
| Weather data | Yes - Weather API |
[Detailed decision guide →](/integrations/do-you-need-backend)
***
## Available Integrations
### Supabase (Recommended Backend)
The easiest way to add cloud features to your Nativeline app.
What is Supabase and when to use it
Connect Supabase to your app
User signup, login, and sessions
Store and query your data
Upload files and images
Live updates and subscriptions
### External APIs
Connect to third-party services for specialized functionality.
How to add external APIs
Add AI capabilities
Accept payments
Apple Maps, directions, geocoding
WeatherKit and OpenWeather
Generic API integration guide
***
## Integration Complexity
| Integration | Difficulty | Setup Time |
| ----------------- | ---------- | ---------- |
| Apple Maps | Easy | 5 minutes |
| WeatherKit | Easy | 10 minutes |
| Supabase Auth | Medium | 20 minutes |
| Supabase Database | Medium | 30 minutes |
| OpenAI API | Medium | 15 minutes |
| Stripe Payments | Complex | 1-2 hours |
***
## Getting Started
### For Most Apps: Start with Supabase
If you need any of these, Supabase is your best choice:
* User accounts
* Cloud data storage
* File uploads
* Real-time features
Step-by-step guide to connect Supabase
### For Specific Features
* **AI Chat/Completion** → [OpenAI Integration](/integrations/external-apis/openai)
* **Payments** → [Stripe Integration](/integrations/external-apis/stripe)
* **Weather Data** → [Weather APIs](/integrations/external-apis/weather)
* **Maps** → [Maps & Location](/integrations/external-apis/maps)
***
## Common Integration Patterns
### User Data App
```
User signs up → Supabase Auth
User data stored → Supabase Database
Profile photos → Supabase Storage
```
### AI-Powered App
```
User input → Your app
API call → OpenAI
Response → Your app displays
```
### E-Commerce App
```
Product data → Supabase Database
Checkout → Stripe
Order confirmation → Push notification
```
***
## Security Considerations
Never store API keys in your code. Use secure methods:
* Store in iOS Keychain
* Use environment variables
* Consider server-side proxies for sensitive APIs
Nativeline helps you store credentials securely. When you connect services, API keys are stored in your Mac's Keychain, encrypted locally.
***
## Next Steps
Decision guide with flowchart
Learn about Supabase
# Supabase Authentication
Source: https://docs.nativeline.ai/integrations/supabase/authentication
Add user signup, login, and session management
# Supabase Authentication
Add user accounts to your app with Supabase Auth. Users can sign up, log in, reset passwords, and maintain sessions across app launches.
## Prerequisites
* [Supabase connected](/integrations/supabase/setup)
* Your Nativeline project
***
## Setting Up Auth
Tell Nativeline what you need:
```
Add user authentication with Supabase:
- Email/password signup
- Email/password login
- Password reset
- Session persistence (stay logged in)
```
Nativeline will create:
* Auth service/manager
* Login screen
* Signup screen
* Session handling
***
## Authentication Flow
### Signup Flow
```
User enters email + password
↓
App calls Supabase signUp()
↓
Supabase creates user
↓
(Optional) Email verification
↓
User is logged in
```
### Login Flow
```
User enters email + password
↓
App calls Supabase signIn()
↓
Supabase validates credentials
↓
Session token returned
↓
User is logged in
```
### Session Persistence
Supabase handles session tokens automatically:
* Tokens stored securely
* Auto-refresh before expiry
* User stays logged in across app launches
***
## Creating Auth Screens
### Signup Screen
```
Create a signup screen with:
- Email field with validation
- Password field (minimum 6 characters)
- Confirm password field
- "Create Account" button
- Link to "Already have an account? Log in"
- Show errors inline under fields
```
### Login Screen
```
Create a login screen with:
- Email field
- Password field
- "Log In" button
- "Forgot Password?" link
- Link to "Don't have an account? Sign up"
- Show error message if login fails
```
### Password Reset
```
Add a forgot password screen:
- Email field
- "Send Reset Link" button
- Success message after sending
- Link back to login
```
***
## Handling Auth State
### Check if User is Logged In
```
When the app starts, check if the user is logged in.
If logged in, go to the home screen.
If not logged in, show the login screen.
```
### Get Current User
```
Show the current user's email on the profile screen
```
### Sign Out
```
Add a sign out button that:
- Logs the user out of Supabase
- Returns to the login screen
- Clears local session data
```
***
## Email Verification (Optional)
By default, Supabase can require email verification:
### Enable in Supabase Dashboard
1. Authentication → Settings
2. Toggle "Enable email confirmations"
3. Customize email template if desired
### Handle in App
```
After signup, show a message:
"Please check your email to verify your account"
```
### Disable for Testing
For development, you can disable email confirmation:
1. Supabase Dashboard → Authentication → Settings
2. Disable "Enable email confirmations"
***
## Protecting Data with User IDs
### Associate Data with Users
When saving data, include the user's ID:
```
When creating a new task, save the current user's ID with it
so each user only sees their own tasks.
```
### Row Level Security
In Supabase, create policies so users only see their data:
```sql theme={null}
-- Users can only see their own tasks
CREATE POLICY "Users see own tasks"
ON tasks FOR SELECT
USING (auth.uid() = user_id);
-- Users can only create tasks for themselves
CREATE POLICY "Users create own tasks"
ON tasks FOR INSERT
WITH CHECK (auth.uid() = user_id);
```
***
## Handling Auth Errors
### Common Errors
| Error | Cause | Solution |
| ------------------- | ---------------- | ------------------------------------- |
| Invalid email | Bad format | Validate email format |
| Weak password | Too short | Require 6+ characters |
| User exists | Duplicate signup | Show "Account exists, try logging in" |
| Invalid credentials | Wrong password | Show "Incorrect email or password" |
| Too many requests | Rate limited | Show "Please wait and try again" |
### Error Handling in App
```
Handle authentication errors gracefully:
- Show specific error messages
- Don't reveal if email exists (security)
- Allow retry after errors
```
***
## Auth Best Practices
Validate inputs before sending to Supabase. But also rely on Supabase's server-side validation — don't trust client validation alone.
Require at least 6 characters (Supabase default). Consider:
* Minimum 8 characters
* Mix of letters and numbers
* Password strength indicator
Let Supabase handle token refresh automatically. Don't store passwords locally. Clear sessions on logout.
When login fails, say "Invalid email or password" — not "User not found." This prevents account enumeration attacks.
***
## Testing Auth
### In Simulator
1. Create a test account
2. Verify login works
3. Close and reopen app (should stay logged in)
4. Test logout
5. Test password reset flow
### Reset Test Users
In Supabase Dashboard:
1. Authentication → Users
2. Find test user
3. Delete or modify as needed
***
## Advanced: Social Auth (Future)
Supabase supports social logins (Google, Apple, GitHub). These require additional setup:
* Apple: Requires Apple Developer account
* Google: Requires Google Cloud setup
* OAuth: Various providers
Contact Nativeline support for guidance on social auth setup.
***
## Next Steps
Store user data in tables
Upload user profile photos
# Supabase Database
Source: https://docs.nativeline.ai/integrations/supabase/database
Store and query data in PostgreSQL
# Supabase Database
Supabase provides a full PostgreSQL database for storing your app's data. Create tables, write queries, and let your data scale.
## Prerequisites
* [Supabase connected](/integrations/supabase/setup)
* Basic understanding of your data needs
***
## Creating Tables
### In Supabase Dashboard
1. Go to **Table Editor** in sidebar
2. Click **Create a new table**
3. Name your table (e.g., `tasks`)
4. Add columns
### Via Nativeline
You can also ask Nativeline:
```
Create a Supabase table for tasks with:
- id (auto-generated UUID)
- user_id (links to auth users)
- title (text, required)
- is_completed (boolean, default false)
- created_at (timestamp, auto)
```
***
## Common Column Types
| Type | Use For | Example |
| ------------- | ------------ | ------------------------- |
| `uuid` | Unique IDs | Primary key, foreign keys |
| `text` | Strings | Names, descriptions |
| `int4/int8` | Numbers | Counts, quantities |
| `bool` | True/false | Is completed, is active |
| `timestamptz` | Dates/times | Created at, due date |
| `jsonb` | Complex data | Settings, metadata |
| `float8` | Decimals | Prices, coordinates |
***
## Example: Tasks Table
```sql theme={null}
CREATE TABLE tasks (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
user_id UUID REFERENCES auth.users(id) NOT NULL,
title TEXT NOT NULL,
description TEXT,
is_completed BOOLEAN DEFAULT false,
due_date TIMESTAMPTZ,
created_at TIMESTAMPTZ DEFAULT now(),
updated_at TIMESTAMPTZ DEFAULT now()
);
```
***
## Row Level Security (RLS)
Always enable RLS on tables with user data. Without it, anyone with your API key can read everything!
### Enable RLS
1. Table Editor → Select table
2. Toggle "RLS" to enabled
3. Add policies
### Common Policies
**Users see only their data:**
```sql theme={null}
CREATE POLICY "Users view own tasks"
ON tasks FOR SELECT
USING (auth.uid() = user_id);
```
**Users create own data:**
```sql theme={null}
CREATE POLICY "Users create own tasks"
ON tasks FOR INSERT
WITH CHECK (auth.uid() = user_id);
```
**Users update own data:**
```sql theme={null}
CREATE POLICY "Users update own tasks"
ON tasks FOR UPDATE
USING (auth.uid() = user_id);
```
**Users delete own data:**
```sql theme={null}
CREATE POLICY "Users delete own tasks"
ON tasks FOR DELETE
USING (auth.uid() = user_id);
```
***
## CRUD Operations
### Create (Insert)
```
Add a function to create a new task with the given title.
Save it to Supabase with the current user's ID.
```
### Read (Select)
```
Load all tasks for the current user from Supabase.
Order them by created_at, newest first.
```
### Update
```
Add a function to mark a task as complete.
Update the is_completed field in Supabase.
```
### Delete
```
Add a function to delete a task from Supabase.
Show confirmation before deleting.
```
***
## Querying Data
### Basic Queries
```swift theme={null}
// All tasks for current user (handled by RLS)
let tasks = try await supabase
.from("tasks")
.select()
.execute()
// Filter by completion status
let incomplete = try await supabase
.from("tasks")
.select()
.eq("is_completed", value: false)
.execute()
// Order by date
let ordered = try await supabase
.from("tasks")
.select()
.order("due_date", ascending: true)
.execute()
```
### Filtering Options
| Method | Use | Example |
| --------- | ---------------- | ------------------------------------- |
| `.eq()` | Equals | `eq("status", "active")` |
| `.neq()` | Not equals | `neq("status", "deleted")` |
| `.gt()` | Greater than | `gt("price", 100)` |
| `.lt()` | Less than | `lt("age", 30)` |
| `.gte()` | Greater or equal | `gte("rating", 4)` |
| `.like()` | Pattern match | `like("name", "%John%")` |
| `.in()` | In array | `in("status", ["active", "pending"])` |
| `.is()` | Is null/bool | `is("deleted_at", nil)` |
***
## Relationships
### One-to-Many
Tasks belong to a category:
```sql theme={null}
CREATE TABLE categories (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
user_id UUID REFERENCES auth.users(id),
name TEXT NOT NULL
);
CREATE TABLE tasks (
...
category_id UUID REFERENCES categories(id),
...
);
```
### Querying with Relationships
```swift theme={null}
// Get tasks with category names
let tasks = try await supabase
.from("tasks")
.select("*, categories(name)")
.execute()
```
***
## Handling Errors
### Common Database Errors
| Error | Cause | Solution |
| --------------------- | ---------------------- | ----------------------------- |
| RLS policy violation | No matching policy | Check your policies |
| Foreign key violation | Referenced row missing | Ensure referenced data exists |
| Not null violation | Required field empty | Provide all required fields |
| Unique violation | Duplicate value | Check for existing records |
### Error Handling in App
```
Handle database errors gracefully:
- Show user-friendly error messages
- Log detailed errors for debugging
- Retry on network errors
```
***
## Performance Tips
If you often query by a column (like `user_id`), add an index:
```sql theme={null}
CREATE INDEX tasks_user_id_idx ON tasks(user_id);
```
Instead of `select("*")`, specify columns:
```swift theme={null}
.select("id, title, is_completed")
```
```swift theme={null}
.range(from: 0, to: 19) // First 20 items
```
Store frequently-accessed data locally and sync with Supabase.
***
## Testing Database Operations
### In Supabase Dashboard
1. Table Editor → Select table
2. View, add, edit, delete rows manually
3. Great for testing and debugging
### Via SQL Editor
1. SQL Editor in Supabase sidebar
2. Write and run queries directly
3. Test policies and queries
***
## Next Steps
Upload files and images
Live data updates
# Supabase Overview
Source: https://docs.nativeline.ai/integrations/supabase/overview
The easiest way to add cloud features to your app
# Supabase Overview
Supabase is an open-source backend-as-a-service that provides everything you need for cloud-powered apps: authentication, database, storage, and real-time features.
## What is Supabase?
Supabase gives you:
* **Authentication** — User signup/login
* **Database** — PostgreSQL database for your data
* **Storage** — File and image uploads
* **Realtime** — Live data subscriptions
All accessible through a simple API that works perfectly with Nativeline.
***
## Why Supabase?
### Perfect for Nativeline
Nativeline has built-in Supabase support:
* Easy connection setup
* AI understands Supabase patterns
* Automatic code generation
* Secure credential storage
### Generous Free Tier
Get started without paying:
* 500 MB database
* 1 GB file storage
* 50,000 monthly active users
* Unlimited API requests
Most indie apps never exceed these limits.
### Open Source
* No vendor lock-in
* Self-host if you want
* Active community
* Transparent pricing
***
## What You Can Build
### Apps with User Accounts
* Signup with email/password
* Social login (coming soon)
* Password reset
* Session management
### Apps with Cloud Data
* Store any data type
* Query and filter
* Relationships between data
* Full-text search
### Apps with File Uploads
* Profile photos
* User-generated content
* Documents and PDFs
* Audio and video
### Apps with Live Features
* Real-time chat
* Live feeds
* Collaborative editing
* Instant notifications
***
## Supabase Architecture
```
┌─────────────────────────────────────────────────┐
│ Your App │
│ (Nativeline iOS) │
└─────────────────────┬───────────────────────────┘
│ API Calls
▼
┌─────────────────────────────────────────────────┐
│ Supabase Cloud │
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ Auth │ │ Database │ │ Storage │ │
│ │ │ │(Postgres)│ │ (Files) │ │
│ └──────────┘ └──────────┘ └──────────┘ │
│ │
│ ┌──────────┐ ┌──────────┐ │
│ │ Realtime │ │Edge Func │ │
│ │ │ │(Optional)│ │
│ └──────────┘ └──────────┘ │
└─────────────────────────────────────────────────┘
```
***
## Key Concepts
### Project
A Supabase project is your isolated backend environment. Each project has its own:
* Database
* Storage buckets
* Auth configuration
* API keys
### API Keys
Two types of keys:
* **anon key** — Safe for client apps, respects Row Level Security
* **service\_role key** — Full access, server-only, never in app
Nativeline uses the anon key, which is safe to include in your app.
### Row Level Security (RLS)
Controls who can see and modify data. Essential for multi-user apps.
Example: "Users can only see their own tasks"
```sql theme={null}
CREATE POLICY "Users see own tasks"
ON tasks FOR SELECT
USING (auth.uid() = user_id);
```
***
## Free vs Paid
### Free Tier Includes
| Feature | Limit |
| ------------ | ---------- |
| Database | 500 MB |
| Storage | 1 GB |
| Auth users | 50,000 MAU |
| API requests | Unlimited |
| Realtime | Yes |
| Support | Community |
### When to Upgrade
Consider Pro (\$25/month) when you need:
* More storage
* Larger database
* Daily backups
* Email support
* More projects
***
## Getting Started
### Prerequisites
* A Supabase account (free)
* A Nativeline project
### Quick Start Steps
1. Create Supabase account at [supabase.com](https://supabase.com)
2. Create a new project
3. Get your project URL and anon key
4. Connect in Nativeline
Step-by-step Supabase setup
***
## Common Use Cases
### User Authentication
Let users create accounts and log in:
* Email/password signup
* Session management
* Password reset
* Profile data
[Authentication Guide →](/integrations/supabase/authentication)
### Data Storage
Store your app's data in the cloud:
* Create tables for your data
* Query and filter
* Relationships (one-to-many, etc.)
* Full-text search
[Database Guide →](/integrations/supabase/database)
### File Storage
Upload and serve files:
* User profile photos
* Document uploads
* Media files
* Public or private access
[Storage Guide →](/integrations/supabase/storage)
### Real-Time Updates
Get instant updates when data changes:
* Chat messages appearing instantly
* Live activity feeds
* Collaborative editing
* Notifications
[Realtime Guide →](/integrations/supabase/realtime)
***
## Supabase vs Alternatives
| Feature | Supabase | Firebase | AWS Amplify |
| -------------- | -------- | -------- | ----------- |
| Open source | ✅ | ❌ | ❌ |
| PostgreSQL | ✅ | ❌ | ✅ |
| Free tier | Generous | Generous | Limited |
| Self-host | ✅ | ❌ | ❌ |
| Learning curve | Easy | Easy | Medium |
| iOS support | Great | Great | Good |
***
## Next Steps
Connect Supabase to your app
Add user accounts
Store and query data
Upload files
# Supabase Realtime
Source: https://docs.nativeline.ai/integrations/supabase/realtime
Live data updates and subscriptions
# Supabase Realtime
Supabase Realtime lets your app receive instant updates when data changes — perfect for chat apps, live feeds, and collaborative features.
## What is Realtime?
Instead of constantly polling for new data, Realtime pushes changes to your app instantly:
```
Without Realtime:
App → "Any new messages?" → Server (every 5 seconds)
With Realtime:
Server → "New message!" → App (instantly when it happens)
```
***
## Prerequisites
* [Supabase connected](/integrations/supabase/setup)
* A table to subscribe to
* RLS policies configured
***
## Enabling Realtime
### In Supabase Dashboard
1. Go to **Database → Tables**
2. Select your table
3. Click "Realtime" toggle to enable
Or via SQL:
```sql theme={null}
ALTER TABLE messages REPLICA IDENTITY FULL;
```
***
## Basic Subscription
Ask Nativeline:
```
Subscribe to the messages table in Supabase.
When a new message is added, automatically add it to the list.
Don't require a refresh to see new messages.
```
### Subscription Code Pattern
```swift theme={null}
// Subscribe to changes
let channel = supabase.channel("messages")
channel.on("postgres_changes", filter: .init(
schema: "public",
table: "messages",
event: .all
)) { payload in
// Handle the change
switch payload.eventType {
case .insert:
// New message added
case .update:
// Message updated
case .delete:
// Message deleted
}
}
await channel.subscribe()
```
***
## Event Types
| Event | When It Fires |
| --------- | --------------------- |
| `insert` | New row added |
| `update` | Existing row modified |
| `delete` | Row removed |
| `*` (all) | Any change |
***
## Use Cases
### Live Chat
```
Create a chat interface:
- Load existing messages on open
- Subscribe to new messages
- New messages appear instantly at bottom
- Show typing indicators
```
### Activity Feed
```
Build a live activity feed:
- Show recent activities
- Subscribe to activity table
- New activities slide in from top
- Animate new items
```
### Collaborative Lists
```
Make the todo list collaborative:
- Multiple users can add tasks
- Changes appear instantly for everyone
- Show who made each change
- Handle conflicts gracefully
```
### Live Notifications
```
Add live notifications:
- Subscribe to notifications table
- Show badge count
- Toast notification for new items
- Mark as read when viewed
```
***
## Filtering Subscriptions
### By Column Value
Only listen for messages in a specific chat:
```swift theme={null}
channel.on("postgres_changes", filter: .init(
schema: "public",
table: "messages",
event: .insert,
filter: "chat_id=eq.123"
)) { payload in
// Only messages for chat 123
}
```
### By User
Only listen for the current user's notifications:
```swift theme={null}
filter: "user_id=eq.\(currentUserId)"
```
***
## Handling Changes
### Insert (New Data)
```
When a new message is inserted:
1. Parse the new message from payload
2. Add to local messages array
3. Scroll to bottom
4. Play notification sound (optional)
```
### Update (Modified Data)
```
When a message is updated:
1. Find the message in local array by ID
2. Replace with updated version
3. UI updates automatically
```
### Delete (Removed Data)
```
When a message is deleted:
1. Find the message in local array by ID
2. Remove from array
3. Animate removal
```
***
## Unsubscribing
Always clean up subscriptions when leaving a screen:
```swift theme={null}
// When view disappears
channel.unsubscribe()
// Or remove all subscriptions
supabase.removeAllChannels()
```
***
## Realtime + RLS
Realtime respects Row Level Security:
* Users only receive events for rows they can SELECT
* Your existing RLS policies apply automatically
* No additional security configuration needed
***
## Performance Considerations
Don't subscribe to tables you don't need. Each subscription uses resources.
Use column filters to reduce events received. Don't subscribe to all messages if you only need one chat room.
Always unsubscribe when leaving screens. Orphaned subscriptions waste resources.
Supabase handles reconnection automatically, but you may want to refresh data after a reconnection.
***
## Troubleshooting
* Is Realtime enabled on the table?
* Are RLS policies allowing SELECT?
* Is the subscription active?
* Check Supabase dashboard logs
* Check filter syntax
* Verify column name is correct
* Ensure filter value matches data type
* May have multiple subscriptions
* Unsubscribe when view disappears
* Use unique channel names
Supabase auto-reconnects, but after prolonged disconnection:
* Refresh data when connection restores
* Show connection status to user
***
## Example: Building Live Chat
* id (uuid)
* chat\_id (uuid)
* user\_id (uuid)
* content (text)
* created\_at (timestamp)
Users can read messages in chats they're part of.
Toggle Realtime on the messages table.
Subscribe to inserts filtered by chat\_id.
Append to local array, scroll to bottom.
Unsubscribe when leaving chat screen.
***
## Next Steps
You now have a complete picture of Supabase:
User accounts and sessions
Store and query data
Upload files
Other integrations
# Supabase Setup
Source: https://docs.nativeline.ai/integrations/supabase/setup
Step-by-step guide to connect Supabase to your Nativeline app
# Supabase Setup
This guide walks you through creating a Supabase project and connecting it to your Nativeline app.
## Prerequisites
* Nativeline installed with a project
* Email address for Supabase account
***
## Step 1: Create Supabase Account
Visit [supabase.com](https://supabase.com) and click **Start your project**.
Create an account with:
* GitHub (recommended)
* Or email/password
If using email, verify via the confirmation link.
***
## Step 2: Create a Project
From the dashboard, click **New Project**.
* **Name:** Your app name (e.g., "My Todo App")
* **Database Password:** Generate a strong password (save this!)
* **Region:** Choose closest to your users
Takes \~2 minutes to provision your project.
Save your database password somewhere secure. You'll need it if you ever connect directly to the database.
***
## Step 3: Get Your Credentials
Once your project is ready:
Click the **Settings** icon (gear) in the sidebar.
Select **API** from the settings menu.
You need two things:
* **Project URL:** `https://xxxxx.supabase.co`
* **anon public key:** A long string starting with `eyJ...`
The anon key is safe to use in your app. It respects Row Level Security policies. Never use the `service_role` key in client apps.
***
## Step 4: Connect to Nativeline
In your Nativeline chat:
```
Connect to Supabase with:
- URL: https://your-project-id.supabase.co
- Key: your-anon-key-here
```
Or go to **Settings → Database** and enter your credentials there.
Nativeline will:
1. Save your credentials securely
2. Set up the Supabase client
3. Be ready to use Supabase features
***
## Step 5: Verify Connection
Test that everything works:
```
Create a simple test to verify Supabase is connected properly.
Try to read from Supabase and log the result.
```
You should see a successful connection message in your build output.
***
## Project Structure After Setup
Nativeline creates Supabase-related files:
```
YourApp/
├── Services/
│ └── SupabaseService.swift # Supabase client
├── Models/
│ └── (your data models)
└── ...
```
***
## Common Setup Issues
* Make sure you're using the **anon** key, not service\_role
* Check for extra spaces when copying
* Verify the key matches your project URL
* Double-check the project URL
* Ensure the project finished initializing
* URL should be `https://xxxxx.supabase.co` (not dashboard URL)
* Check your internet connection
* Project might still be initializing (wait 2-3 minutes)
* Try refreshing Supabase dashboard
Supabase allows requests from anywhere by default. If you see CORS errors:
* Verify you're using the correct URL
* Check Supabase dashboard for any restrictions
***
## Security Best Practices
### Use Row Level Security
Always enable RLS on your tables:
1. In Supabase dashboard → Table Editor
2. Click on your table
3. Enable "RLS" toggle
4. Add policies
Without RLS, anyone with your anon key can read all data!
### Secure Credentials
Nativeline stores your credentials in:
* macOS Keychain (encrypted)
* Not in your source code
Never commit credentials to git or share them publicly.
### Minimal Permissions
Only enable the Supabase features you need. Don't enable Storage if you're only using Auth.
***
## What's Next?
Now that Supabase is connected, add features:
Signup and login
Store your data
Upload images and files
Live data updates
# Supabase Storage
Source: https://docs.nativeline.ai/integrations/supabase/storage
Upload and manage files and images
# Supabase Storage
Supabase Storage lets you upload files, images, and documents. Perfect for user avatars, photo uploads, and any file your app needs to store.
## Prerequisites
* [Supabase connected](/integrations/supabase/setup)
* Basic understanding of file handling
***
## Storage Concepts
### Buckets
Buckets are containers for your files — like folders at the top level.
Examples:
* `avatars` — User profile photos
* `uploads` — User-uploaded content
* `documents` — PDFs and files
### Objects
Objects are the actual files inside buckets. Each has:
* A unique path (e.g., `avatars/user123.jpg`)
* Metadata (size, type, etc.)
* Access permissions
***
## Creating a Bucket
### In Supabase Dashboard
1. Go to **Storage** in sidebar
2. Click **Create a new bucket**
3. Name it (e.g., `avatars`)
4. Choose public or private
### Public vs Private
| Type | Use Case | Access |
| ----------- | ------------------------------- | --------------- |
| **Public** | Profile photos, shared media | Anyone with URL |
| **Private** | User documents, sensitive files | Requires auth |
***
## Uploading Files
### Basic Upload
Ask Nativeline:
```
Add profile photo upload:
- Let user pick from camera or photo library
- Upload to Supabase Storage 'avatars' bucket
- Save the URL to the user's profile
```
### Upload Code Pattern
```swift theme={null}
// Upload image
let imageData = image.jpegData(compressionQuality: 0.8)!
let path = "\(userId)/avatar.jpg"
try await supabase.storage
.from("avatars")
.upload(path: path, data: imageData, options: .init(
contentType: "image/jpeg"
))
```
***
## Organizing Files
### By User
```
avatars/
├── user-123/
│ └── avatar.jpg
├── user-456/
│ └── avatar.jpg
```
### By Content Type
```
uploads/
├── images/
│ └── photo-1.jpg
├── documents/
│ └── report.pdf
```
***
## Getting File URLs
### Public Buckets
```swift theme={null}
// Get public URL (no auth needed to access)
let url = supabase.storage
.from("avatars")
.getPublicURL(path: "user-123/avatar.jpg")
```
### Private Buckets
```swift theme={null}
// Get signed URL (temporary, authenticated)
let url = try await supabase.storage
.from("private-docs")
.createSignedURL(path: "user-123/document.pdf", expiresIn: 3600)
```
***
## Downloading Files
```swift theme={null}
// Download file data
let data = try await supabase.storage
.from("avatars")
.download(path: "user-123/avatar.jpg")
// Convert to image
let image = UIImage(data: data)
```
***
## Deleting Files
```swift theme={null}
// Delete single file
try await supabase.storage
.from("avatars")
.remove(paths: ["user-123/avatar.jpg"])
// Delete multiple files
try await supabase.storage
.from("uploads")
.remove(paths: ["file1.jpg", "file2.jpg"])
```
***
## Storage Security
### Bucket Policies
Like RLS for database, set policies for storage:
**Allow users to upload to their own folder:**
```sql theme={null}
CREATE POLICY "Users upload own avatars"
ON storage.objects FOR INSERT
WITH CHECK (
bucket_id = 'avatars' AND
auth.uid()::text = (storage.foldername(name))[1]
);
```
**Allow anyone to view public avatars:**
```sql theme={null}
CREATE POLICY "Public avatar access"
ON storage.objects FOR SELECT
USING (bucket_id = 'avatars');
```
### Setting Policies in Dashboard
1. Storage → Select bucket
2. Policies tab
3. Add new policy
4. Choose template or write custom
***
## Common Use Cases
### Profile Photo Upload
```
Add a profile photo feature:
- Tap avatar to change
- Option for camera or library
- Crop to square
- Upload to 'avatars' bucket
- Update profile with new URL
- Show loading indicator
```
### Document Upload
```
Add document upload:
- User can attach files to tasks
- Support PDF, images
- Store in 'attachments' bucket
- Show download button
- Handle errors
```
### Image Gallery
```
Create a photo gallery:
- User uploads photos
- Store in 'gallery' bucket
- Display in grid
- Tap to view full screen
- Swipe to delete
```
***
## File Size and Types
### Limits
* Default max file size: 50 MB
* Can be increased in settings
### Accepted Types
By default, all types are accepted. You can restrict in bucket settings.
### Compression
```
Before uploading images, compress them to reduce size:
- Use JPEG compression 80%
- Resize large images to max 1024px
```
***
## Best Practices
Large images use storage and bandwidth. Compress and resize before uploading.
Include user ID and timestamp to avoid conflicts:
`user-123/1704067200-photo.jpg`
Private buckets need policies. Public buckets are open — use carefully.
Show progress, handle errors gracefully, allow retry.
***
## Troubleshooting
* Check bucket exists
* Verify policies allow upload
* Check file size limits
* Ensure user is authenticated (for private buckets)
* Public bucket? Use `getPublicURL`
* Private bucket? Use `createSignedURL`
* Check RLS policies
* Compress images before upload
* Use appropriate quality settings
* Check network connection
***
## Next Steps
Live updates when data changes
Store file metadata in tables
# Account Setup
Source: https://docs.nativeline.ai/introduction/account-setup
Create your Nativeline account and choose a plan
# Account Setup
Your Nativeline account lets you save projects, track usage, and access premium features. Here's how to get set up.
## Creating an Account
When you create your first app (or try to access account features), you'll be prompted to create an account.
Type your email address in the signup form.
You'll receive an 8-digit verification code within a minute.
Type the 8-digit code into Nativeline to verify your email.
Your account is created and ready to use.
Check your spam folder if you don't see the verification email. It comes from nativeline.ai.
***
## Choosing a Plan
Nativeline uses a "bits" system to measure AI usage. Different plans give you different amounts of bits each month.
### Understanding Bits
Bits represent your AI usage budget. They're consumed per message:
| Action | Bits per Message |
| --------------------------- | ---------------- |
| Simple change (color, text) | 10-15 bits |
| New feature | 25-40 bits |
| New screen | 30-50 bits |
| First app generation | 40-50 bits |
For a detailed breakdown, see [Plans & Pricing](/introduction/plans-and-pricing).
### Available Plans
**1,000 bits included**
* AI builds your app automatically
* AI fixes issues for you
* Unlimited projects
* Test in iOS Simulator
* Perfect for getting started
**2,250 bits included**
Everything in Builder, plus:
* Full code editor access
* View and edit Swift code
* Detailed build information
* Most popular choice
**4,800-50,000 bits**
Everything in Pro, plus:
* Customize your bit amount
* Priority support
* Early access to new features
* For serious builders
### Which Plan Should I Choose?
Start with **Builder** (\$25/month). It gives you enough bits to build a simple app and learn how Nativeline works. You can upgrade anytime if you need more.
Choose **Pro** (\$50/month). The code editor lets you make quick tweaks yourself and learn Swift by seeing what the AI generates.
Consider **Scale** (\$100+/month). You can choose your exact bit amount based on your needs, and you get priority support.
***
## Managing Your Account
### Checking Your Usage
Your remaining bits are displayed in the Nativeline app:
* Look for the usage indicator in the toolbar
* A warning appears when you've used 80% of your bits
* Bits reset monthly on your billing date
### Upgrading Your Plan
To upgrade:
1. Click on your profile or **Settings**
2. Select **Plans** or **Subscription**
3. Choose a new plan
4. Confirm your upgrade
Upgrades take effect immediately, and you'll receive a prorated credit for your current plan.
### Downgrading Your Plan
You can also downgrade:
1. Go to **Settings → Plans**
2. Select a lower tier plan
3. Confirm the change
Your current plan continues until your billing date, then the new tier begins.
Downgrading from Pro or higher means losing code editor access. Make sure you don't have unsaved edits before downgrading.
### Canceling Your Subscription
If you need to cancel:
1. Go to **Settings → Subscription**
2. Click **Cancel Subscription**
3. Confirm cancellation
Your access continues until the end of your current billing period. Your projects remain saved locally on your Mac.
***
## Account Security
### Your Data
* **Projects** are stored locally on your Mac in `~/Documents/Nativeline Projects/`
* **Account info** is stored securely in our cloud
* **Credentials** (like database passwords) are encrypted in your Mac's Keychain
* **We never see your passwords** — they're encrypted locally
### Signing Out
To sign out:
1. Click your profile
2. Select **Sign Out**
3. Confirm
Signing out doesn't delete your local projects — they stay on your Mac.
### Deleting Your Account
To delete your account entirely:
1. Contact [support@nativeline.ai](mailto:support@nativeline.ai)
2. We'll verify your identity
3. Your account and cloud data will be permanently deleted
Account deletion is permanent and cannot be undone. Make sure to back up any projects you want to keep.
***
## Troubleshooting
If the email with your code isn't showing up:
1. Check your spam/junk folder
2. Wait a few minutes (can take up to 5 min)
3. Make sure you entered the correct email
4. Click "Resend code"
5. Check if your email provider blocks automated emails
If your code isn't working:
1. Make sure you're entering all 8 digits
2. Check that you're using the most recent code (if you requested multiple)
3. Request a new code and try again
4. Codes expire after 10 minutes
If you're having trouble logging in:
1. Double-check your email address
2. Request a new verification code
3. Check your spam folder
4. Contact [support@nativeline.ai](mailto:support@nativeline.ai) if issues persist
If your subscription payment didn't go through:
1. Check your card details are correct
2. Ensure the card isn't expired
3. Check with your bank for blocked transactions
4. Try a different payment method
***
## Next Steps
With your account set up, you're ready to start building!
Create something amazing in 10 minutes
Learn how to navigate your workspace
# Installation
Source: https://docs.nativeline.ai/introduction/installation
Get Nativeline up and running on your Mac
# Installing Nativeline
Getting started with Nativeline takes just a few minutes. Download, install, and you're ready to build.
## Before You Start
Sequoia or later required. Check via → About This Mac.
Required for AI features and downloading dependencies.
That's it. Nativeline automatically installs everything else you need on first launch — including Xcode, iOS Simulator, and all development tools.
***
## Download and Install
Go to [nativeline.ai](https://nativeline.ai) and click the **Download** button.
Once downloaded, double-click the `.dmg` file to open it.
Drag the Nativeline icon to your Applications folder.
Open Nativeline from your Applications folder or Spotlight (Cmd+Space, type "Nativeline").
If you see a security warning saying the app is from an unidentified developer, right-click the app and select "Open" to bypass Gatekeeper for the first launch.
***
## First Launch
When you open Nativeline for the first time, everything you need is installed automatically.
### Automatic Setup
Nativeline downloads and installs all required development tools:
* **Xcode** — Apple's developer tools (\~12GB)
* **Command Line Tools** — Build utilities
* **iOS Simulator** — For testing your apps
This happens automatically in the background. You'll see progress indicators as components are installed.
First launch takes longer due to downloading Xcode (\~12GB). Make sure you have a stable internet connection and at least 20GB of free disk space.
### What You'll See
1. **Progress indicators** as Xcode downloads
2. **Brief welcome animation** introducing Nativeline
3. **Home page** when setup is complete
Once setup finishes, you're ready to start building.
***
## The Home Page
After setup, you'll land on the Home Page where you can:
* **Create a new app** — Start a fresh project
* **Open existing projects** — Continue where you left off
* **Access account settings** — Manage your plan and preferences
***
## Troubleshooting Installation
This is a macOS security feature. To open anyway:
1. Right-click (or Control-click) on the Nativeline app
2. Select **Open** from the menu
3. Click **Open** in the dialog that appears
You only need to do this once.
If the automatic setup seems stuck:
1. Check your internet connection — Xcode is a \~12GB download
2. Make sure you have at least 20GB free disk space
3. Restart Nativeline and let it retry
4. Contact [support@nativeline.ai](mailto:support@nativeline.ai) if it continues to fail
Try these steps:
1. Make sure you're running macOS 15.1 or later
2. Delete and re-download the app from [nativeline.ai](https://nativeline.ai)
3. Check Console.app for error messages
4. Contact [support@nativeline.ai](mailto:support@nativeline.ai) with the crash report
If Xcode fails to download:
1. Check your internet connection
2. Try a wired connection if possible (large download)
3. Ensure you have 20GB+ free space
4. Restart your Mac and try again
5. Contact support if persistent
Nativeline requires about 20GB of free space for Xcode and the iOS Simulator. Free up space by:
1. Emptying Trash
2. Removing unused applications
3. Clearing Downloads folder
4. Using Storage Management (Apple Menu → About This Mac → Storage → Manage)
***
## Keeping Nativeline Updated
Nativeline regularly receives updates with new features, improvements, and bug fixes.
### Checking for Updates
To manually check for updates:
1. Click **Nativeline** in the menu bar
2. Select **Check for Updates...**
3. If an update is available, click **Install Update**
4. Nativeline will restart with the new version
### Automatic Update Checking
By default, Nativeline checks for updates automatically when you launch the app. You can adjust this in preferences.
### Viewing Your Version
To see which version you're running:
1. Click **Nativeline** in the menu bar
2. Select **About Nativeline**
3. Your version number is displayed
Keep Nativeline updated to get the latest AI improvements and features.
***
## What's Next?
You're all set up! Now it's time to create an account and build your first app.
Sign up and choose a plan
Create something amazing in 10 minutes
# Plans & Pricing
Source: https://docs.nativeline.ai/introduction/plans-and-pricing
Choose the right Nativeline plan for your needs
# Plans & Pricing
Nativeline offers flexible plans to match how you build. Whether you're exploring, building your first app, or shipping products, there's a plan for you.
## Understanding Bits
Nativeline uses a **bits** system to measure AI usage. Bits are your monthly AI budget — think of them like data on a phone plan.
When the AI thinks, plans, writes code, or debugs, it uses bits. More complex tasks use more bits.
### How Bits Are Consumed
| Action | Approximate Bits |
| -------------------------------------- | ------------------- |
| Simple question | 1-5 bits |
| Change a color or text | 10-15 bits |
| Add a simple component (button, field) | 25-40 bits |
| Create a new screen | 30-50 bits |
| Build a complex feature | 40-80 bits |
| Debug stubborn errors | 15-50 bits (varies) |
### Why Usage Varies
Bit consumption depends on:
* **Complexity** — More complex features = more AI thinking
* **Specificity** — Vague requests require more iterations
* **AI Mode** — [Max mode](/features/ai-modes) uses more bits per request than Quick or Enhanced
* **Errors** — Build failures trigger debugging cycles
* **Project size** — Larger projects need more context processing
Specific, clear prompts use fewer bits than vague requests. "Add a blue button with white text" is cheaper than "make it look better."
***
## Available Plans
### \$2 one-time
**150 bits**
* One-time purchase, no subscription
* AI builds your app
* Unlimited projects
* Test in Simulator
*Best for: Quick one-off needs, trying the platform*
### \$25/month
**1,000 bits included**
* AI builds your app automatically
* AI fixes issues for you
* Unlimited projects
* Test in Simulator
* Email support
*Best for: Getting started, simple apps, exploring*
### \$50/month
**2,250 bits included**
Everything in Builder, plus:
* Full code editor access
* View and edit Swift code
* Database management
* Version history
* App logs for debugging
*Best for: Regular users, learning Swift, serious projects*
### $100-$1,000/month
**4,800-50,000 bits**
Everything in Pro, plus:
* Customize your bit amount
* Priority support
* Early access to new features
* Dedicated assistance
*Best for: Power users, agencies, multiple projects*
***
## Choosing Your Plan
### Decision Guide
**Start with Coffee (\$2 one-time)**
150 bits gives you enough to:
* Generate your first app (40-50 bits)
* Make a few changes and tweaks
* See if Nativeline is right for you
No subscription, no commitment.
**Start with Builder (\$25/month)**
1,000 bits gives you plenty of room to:
* Generate your first app (40-50 bits)
* Add features and make changes
* Experiment freely without worrying about limits
Most users find Builder more than enough to get started.
**Builder ($25) or Pro ($50)**
First app generation is typically 40-50 bits. Consider:
* **Builder** if you just want the app built
* **Pro** if you want to see the code, manage your database, and track version history
Pro is worth it if you're curious about how things work.
**Pro (\$50/month) or higher**
The code editor lets you:
* View all generated Swift code
* Make quick edits yourself
* Read logs for debugging
* Learn Swift by doing
Code access requires Pro or Scale.
**Scale (\$100+/month)**
Building several apps or one ambitious project? Scale lets you:
* Choose exactly how many bits you need
* Get priority support
* Access new features early
Scale gives you the flexibility to build as much as you need without running out.
### Quick Comparison
| Feature | Coffee | Builder | Pro | Scale |
| -------------------- | --------------- | --------------- | ------- | -------------- |
| Price | \$2 once | \$25/mo | \$50/mo | \$100-1,000/mo |
| Bits | 150 | 1,000 | 2,250 | 4,800-50,000 |
| Unlimited projects | ✅ | ✅ | ✅ | ✅ |
| Toolkit (# Commands) | ✅ | ✅ | ✅ | ✅ |
| AI Modes | Quick, Enhanced | Quick, Enhanced | All 3 | All 3 |
| Embedded Simulator | ✅ | ✅ | ✅ | ✅ |
| Code editor | ❌ | ❌ | ✅ | ✅ |
| Database management | ❌ | ❌ | ✅ | ✅ |
| Version history | ❌ | ❌ | ✅ | ✅ |
| App logs | ❌ | ❌ | ✅ | ✅ |
| Priority support | ❌ | ❌ | ❌ | ✅ |
| Early access | ❌ | ❌ | ❌ | ✅ |
***
## Example: Per-Message Costs
Here's what typical messages cost in bits:
"Create a task list app with add and complete features"
"Add due dates to tasks with a date picker"
"Tasks aren't saving when I close the app"
"Make the cards have rounded corners and shadows"
"How do I add a search bar?"
Every app is different, so total costs vary based on complexity and how many changes you make.
[Enhanced mode](/features/ai-modes) often costs the same or less than Quick mode for the same task — it makes fewer mistakes and needs fewer iterations. It's the default for a reason.
***
## Managing Your Bits
### Checking Usage
Your remaining bits are always visible in Nativeline:
* Look for the bits indicator in the toolbar
* A progress bar shows usage percentage
* Warning appears at 80% usage
* Bits reset monthly on your billing date
### When Bits Run Low
**At 80% usage:**
* Warning notification appears
* Consider upgrading or being more efficient
**At 100% usage:**
* AI features pause until reset
* Your projects remain safe
* You can still open and view your code
* Bits reset on your billing date
### Tips to Use Bits Efficiently
"Add 16pt padding and 12pt rounded corners" uses fewer bits than "make it look better"
Drop assets in with # commands instead of describing them — the AI gets it right the first time
Add features one at a time, testing each before moving on
On Pro+, use the code editor for tiny tweaks like colors and text
***
## Billing & Subscription
### Upgrading
1. Go to **Settings → Plans**
2. Select a higher tier
3. Confirm the upgrade
4. New bits are added immediately
5. You're charged a prorated amount
Upgrades take effect instantly.
### Downgrading
1. Go to **Settings → Plans**
2. Select a lower tier
3. Confirm the change
4. Continues at current tier until billing date
5. New tier starts at next billing cycle
Downgrading from Pro or higher means losing code editor access. Make sure you don't have unsaved edits before downgrading.
### Canceling
1. Go to **Settings → Subscription**
2. Click **Cancel Subscription**
3. Confirm cancellation
4. Access continues until end of billing period
5. Projects remain on your Mac
Your projects are stored locally — they stay on your Mac even after cancellation. You can always resubscribe later.
***
## Frequently Asked Questions
Your projects stay on your Mac in `~/Documents/Nativeline Projects/`. You can still open them in Xcode. You just can't use AI features without an active plan.
Yes! Upgrade to a higher tier anytime. New bits are added immediately and you're charged a prorated amount.
No, bits reset monthly. Unused bits don't carry over to the next month.
Yes! The Coffee plan is a one-time \$2 purchase that gives you 150 bits with no subscription. Great for trying Nativeline or quick one-off needs.
Complex requests with errors use more bits due to debugging cycles. Try being more specific or breaking into smaller requests. Also check your [AI mode](/features/ai-modes) — Max mode uses more bits per request.
Check [nativeline.ai](https://nativeline.ai) for current offers and trial availability.
We accept all major credit cards and debit cards through Stripe.
***
## Get Started
Install and set up in minutes
Sign up and choose your plan
# System Requirements
Source: https://docs.nativeline.ai/introduction/system-requirements
What you need to run Nativeline
# System Requirements
Nativeline runs on any modern Mac. Here's what you need.
## Minimum Requirements
**Sequoia or later**
Check your version: → About This Mac
**Required for AI features**
Needed for building, dependency downloads, and updates
## Recommended Specs
While Nativeline runs on any Mac meeting the minimum requirements, here's what works best:
| Component | Minimum | Recommended |
| ------------- | -------------------------- | ------------------------ |
| **macOS** | 15.1 (Sequoia) | Latest version |
| **Processor** | Any Apple Silicon or Intel | Apple Silicon (M1/M2/M3) |
| **RAM** | 8GB | 16GB+ |
| **Storage** | 20GB free | 50GB+ free |
| **Internet** | Any connection | Stable broadband |
### Storage Breakdown
Nativeline needs disk space for:
| Component | Size |
| ---------------------- | ---------------- |
| Nativeline app | \~200MB |
| Xcode (auto-installed) | \~12GB |
| iOS Simulator | \~5GB |
| Your projects | Varies |
| **Total recommended** | **20GB minimum** |
Apple Silicon Macs (M1, M2, M3) offer the best performance for building and running the iOS Simulator.
***
## Supported Macs
Nativeline works on any Mac that can run macOS 15.1 (Sequoia):
### Apple Silicon Macs (Recommended)
* MacBook Air (M1, 2020 and later)
* MacBook Pro (M1, 2020 and later)
* Mac mini (M1, 2020 and later)
* Mac Studio (M1 Max/Ultra, 2022 and later)
* Mac Pro (M2 Ultra, 2023 and later)
* iMac (M1, 2021 and later)
### Intel Macs
* MacBook Air (2020)
* MacBook Pro (2018 and later)
* Mac mini (2018 and later)
* Mac Pro (2019 and later)
* iMac (2019 and later)
* iMac Pro (2017)
Intel Macs work but may be slower for builds and Simulator performance. Apple Silicon is recommended for the best experience.
***
## Checking Your System
### macOS Version
1. Click the Apple menu () in the top-left corner
2. Select **About This Mac**
3. Your macOS version is displayed
If you're on an older version, update via **System Settings → General → Software Update**.
### Available Storage
1. Click the Apple menu ()
2. Select **About This Mac**
3. Click **More Info**
4. Select **Storage** in the sidebar
You need at least 20GB free for Nativeline and its dependencies.
### Processor Type
1. Click the Apple menu ()
2. Select **About This Mac**
3. Look for "Chip" (Apple Silicon) or "Processor" (Intel)
***
## What Gets Installed Automatically
When you first launch Nativeline, it automatically installs everything needed to build iOS apps:
### Xcode (\~12GB)
Apple's complete development environment. Nativeline downloads and installs this automatically.
### Command Line Tools
Build utilities required for compiling Swift code.
### iOS Simulator
Virtual iPhones and iPads for testing your apps without a physical device.
First launch takes 15-30 minutes depending on your internet speed due to the Xcode download. This only happens once.
***
## What You DON'T Need
Nativeline handles everything for you. You don't need:
* ❌ Previous programming experience
* ❌ Xcode installed manually
* ❌ Command line knowledge
* ❌ Apple Developer account (until publishing)
* ❌ Physical iPhone or iPad (Simulator is included)
***
## Network Requirements
Nativeline requires internet access for:
* **AI features** — All building happens via cloud AI
* **First launch** — Downloading Xcode and dependencies
* **Updates** — App and dependency updates
* **Account** — Authentication and subscription
### Firewall & VPN
If you're on a corporate network or using a VPN:
* Ensure access to `nativeline.ai`
* Ensure access to Apple's servers for Xcode downloads
***
## Performance Tips
### For Faster Builds
1. **Use Apple Silicon** — M1/M2/M3 Macs build significantly faster
2. **Close unused apps** — Free up RAM for the build process
3. **Use SSD storage** — All modern Macs have SSDs, but external drives may be slower
4. **Keep macOS updated** — Latest versions include performance improvements
### For Better Simulator Performance
1. **Choose simpler devices** — iPhone SE runs faster than iPhone 15 Pro Max
2. **Close other Simulators** — Only run one at a time
3. **Restart occasionally** — Fresh simulator boots run better
### For Stable AI Connection
1. **Use wired internet if possible** — More stable than WiFi for long sessions
2. **Avoid saturated networks** — Other heavy downloads can cause timeouts
3. **Check connection before long sessions** — Ensure stable connectivity
***
## Troubleshooting
Unfortunately, Nativeline requires macOS 15.1 (Sequoia) which has specific hardware requirements. Check Apple's compatibility list for your Mac model.
Options:
* Consider upgrading to a newer Mac
* Check if your Mac supports macOS 15.1 but just needs updating
Free up 20GB+ by:
1. Empty Trash
2. Remove unused apps
3. Clear Downloads folder
4. Use → About This Mac → Storage → Manage for recommendations
5. Move large files to external storage
Improve build performance:
1. Close other applications
2. Restart your Mac
3. Ensure sufficient free storage (10GB+)
4. Check Activity Monitor for CPU/memory usage
5. Consider upgrading RAM if using Intel Mac with 8GB
If you're having connectivity problems:
1. Test your connection with other sites
2. Try a different network
3. Disable VPN temporarily
4. Check firewall settings
5. Contact your IT department if on corporate network
***
## Ready to Install?
Download and set up Nativeline in minutes
# Updating Nativeline
Source: https://docs.nativeline.ai/introduction/updating
Keep Nativeline up to date with the latest features
# Updating Nativeline
Nativeline receives regular updates with new AI capabilities, features, and improvements. Here's how to stay current.
## Checking for Updates
### Manual Check
To manually check for updates:
Click **Nativeline** in the menu bar at the top of your screen.
Select **Check for Updates...** from the dropdown.
If an update is available, click **Install Update**.
Nativeline will restart automatically with the new version.
### Automatic Checking
By default, Nativeline checks for updates each time you launch the app. If an update is available, you'll see a notification.
You can adjust automatic update settings in **Nativeline → Preferences**.
***
## What Gets Updated
Nativeline updates include:
### AI Improvements
* Smarter code generation
* Better error detection and fixing
* Improved understanding of your requests
* New capabilities and features
### App Features
* New tools and interface improvements
* Performance optimizations
* Bug fixes
* New integrations
### Compatibility
* Support for latest iOS versions
* macOS compatibility updates
* Xcode compatibility fixes
Updates are designed to be seamless. Your projects, settings, and conversation history are preserved.
***
## Viewing Your Current Version
To see which version of Nativeline you're running:
1. Click **Nativeline** in the menu bar
2. Select **About Nativeline**
3. Your version number is displayed (e.g., "Version 1.2.3")
***
## Update Best Practices
### Before Updating
* **Save your work** — Finish any active builds before updating
* **Note your version** — In case you need to report issues
### After Updating
* **Check release notes** — See what's new in this version
* **Test your projects** — Verify existing projects work correctly
* **Explore new features** — Try out any new capabilities
***
## Troubleshooting Updates
If an update fails to install:
1. Check your internet connection
2. Ensure you have enough disk space (at least 500MB)
3. Quit Nativeline completely and try again
4. Download the latest version directly from [nativeline.ai](https://nativeline.ai)
If Nativeline won't open after updating:
1. Restart your Mac
2. Try opening Nativeline again
3. If still failing, download fresh from [nativeline.ai](https://nativeline.ai)
4. Contact [support@nativeline.ai](mailto:support@nativeline.ai) with any error messages
If a project behaves differently after updating:
1. Close and reopen the project
2. Try rebuilding from scratch (the AI will recreate everything)
3. Clear the conversation and describe what you need again
4. Contact support if the issue persists
We don't officially support downgrading, as older versions may be incompatible with our current AI services.
If an update causes issues:
1. Report the problem to [support@nativeline.ai](mailto:support@nativeline.ai)
2. We'll prioritize fixes for critical issues
3. Updates with fixes typically ship within days
***
## Release Notes
Stay informed about what's new in each update:
* **In-app** — View release notes when an update is available
* **Website** — Check [nativeline.ai](https://nativeline.ai) for announcements
* **Discord** — Join our [Discord community](https://discord.gg/nativeline) for the latest news
***
## Beta Updates
Occasionally, we offer beta versions of Nativeline with experimental features.
### Joining the Beta
To access beta updates:
1. Check the Discord community for beta announcements
2. Request beta access from support
3. Beta builds are provided as separate downloads
### Beta Considerations
* Betas may have bugs or incomplete features
* Your feedback helps improve Nativeline
* We recommend backing up important projects before testing betas
* You can always switch back to the stable version
***
## Xcode Updates
Nativeline uses Xcode (Apple's developer tools) behind the scenes. Xcode updates are handled separately.
### When Xcode Needs Updating
* Nativeline will notify you if a newer Xcode version is required
* Updates happen automatically when needed
* Large updates may take time to download
### Manual Xcode Updates
If needed, you can update Xcode manually:
1. Open **Xcode** from Applications (or via Spotlight)
2. Follow any update prompts
3. Or update via **System Settings → Software Update**
Xcode updates can be large (several GB). Ensure you have sufficient disk space and a stable internet connection.
***
## Stay Connected
For update announcements and news:
Get notified about updates and chat with other users
Follow for announcements and tips
# Welcome to Nativeline
Source: https://docs.nativeline.ai/introduction/welcome
Build native iPhone, iPad, and Mac apps with AI — no coding required
# Welcome to Nativeline
Nativeline is an AI-powered Mac app that turns your ideas into real, native applications for iPhone, iPad, and Mac. Just describe what you want, and watch it come to life.
## What You Can Build
Nativeline creates **real, native apps** — not prototypes or web wrappers. Your apps run natively on iPhones, iPads, and Macs with full access to platform features.
Todo lists, habit trackers, note-taking apps, journaling
Chat apps, community platforms, social networks
Calculators, converters, timers, menu bar utilities
Fitness trackers, meal planners, meditation apps
Recipe apps, travel guides, reference apps
Inventory management, CRM, booking systems
## How It Works
Tell the AI what you want to build in plain English. "Create a recipe app where I can save my favorite meals" is all you need. Choose your target platform — iPhone, iPad, or Mac.
Use the [Toolkit](/toolkit/overview) to drop in custom fonts, colors, images, sounds, data files, animations, and 3D models with simple # commands. No setup required.
Nativeline writes real Swift code, creates your UI, and handles all the technical complexity automatically. Choose from [four AI modes](/features/ai-modes) to match your needs.
Your app runs in the [embedded simulator](/features/embedded-simulator) right inside Nativeline. Mac apps run natively in a window. See changes in real-time as you iterate.
Ask for changes, add features, fix issues — the AI handles it all. Keep refining until it's perfect.
When you're ready, Nativeline helps you submit to TestFlight and the App Store. Mac apps can also be exported as DMG files.
## Why Nativeline?
### Real Native Apps
Unlike no-code builders that create web wrappers, Nativeline generates genuine Swift code using Apple's SwiftUI framework. Your apps are indistinguishable from those built by professional developers.
### Three Platforms, One App
Build for iPhone, iPad, or Mac — all from the same tool. Each platform gets native UI patterns: mobile layouts for iPhone, split views for iPad, and menu bars for Mac.
### Built-in Toolkit
Drop fonts, colors, sounds, data files, Lottie animations, videos, and 3D models directly into your app with [# commands](/toolkit/overview). No manual setup, no configuration files.
### Smart AI Modes
Four AI modes let you optimize for speed, design quality, or deep reasoning. [Enhanced mode](/features/ai-modes) delivers polished designs at low cost — it's the default for every project.
### No Coding Required
You never need to write code. The AI handles everything — from UI components to data storage to complex features. Just describe what you want.
### Full Control When You Want It
On Pro plans and above, access the full code editor. View, learn from, and even edit the Swift code yourself.
### From Idea to App Store
Nativeline covers the entire journey: building, testing, debugging, and publishing. Everything happens in one app.
## Who Is Nativeline For?
Turn your app idea into reality without hiring developers. Validate concepts quickly, iterate based on feedback, and launch to real users.
Build custom apps for your business — booking systems, inventory trackers, customer portals — without enterprise software costs.
Bring your designs to life. See your UI concepts become functional apps, then refine them visually until they're perfect.
Build apps for fun, for friends, or for learning. With Pro plans, see the code and learn Swift by doing.
Rapidly prototype ideas before investing engineering time. Get a working app in minutes instead of days.
## What Makes It Different
| Feature | Nativeline | No-Code Builders | Traditional Development |
| ---------------------- | --------------- | ---------------- | ----------------------- |
| Real native apps | ✅ Swift/SwiftUI | ❌ Web wrappers | ✅ |
| iPhone, iPad, & Mac | ✅ All three | Limited | ✅ |
| No coding needed | ✅ | ✅ | ❌ |
| Full code access | ✅ (Pro) | ❌ | ✅ |
| Built-in asset toolkit | ✅ | ❌ | ❌ |
| AI-powered | ✅ | ❌ | ❌ |
| App Store ready | ✅ | Limited | ✅ |
| Time to first app | Minutes | Hours | Days/Weeks |
## What You'll Need
Any Mac running macOS 15.1 (Sequoia) or later
Required for AI features and dependency downloads
That's it. Nativeline automatically installs everything else you need — Xcode, simulators, development tools — on first launch.
## Ready to Start?
Download and set up Nativeline in minutes
Build your first app in 10 minutes
Choose the right plan for your needs
Add fonts, colors, sounds, and more with # commands
# After Approval
Source: https://docs.nativeline.ai/publishing/app-store/after-approval
What happens after your app is approved
# After Approval
Congratulations! Your app is approved. Here's what comes next.
## Release Your App
If you selected manual release, it's time to go live:
Navigate to your app
Should show "Pending Developer Release"
In the version section, click "Release This Version"
Your app will appear on the App Store within 24 hours
After clicking release, it can take up to 24 hours for your app to appear in App Store search. Often it's much faster.
***
## First 24 Hours
### Verify Your Listing
Once live, check:
* [ ] App appears in App Store search
* [ ] Screenshots display correctly
* [ ] Description is accurate
* [ ] Links work (website, support)
* [ ] Pricing is correct
### Download and Test
Download from the App Store and verify:
* App installs correctly
* Core functionality works
* Any server connections work
* No first-launch issues
### Monitor for Issues
Watch for:
* Crash reports in App Store Connect
* Early user feedback
* Rating drops
* Support requests
***
## App Analytics
### App Store Connect Analytics
Access via App Store Connect → Analytics:
#### Metrics Available
| Metric | What It Shows |
| ------------------ | ----------------------------- |
| Impressions | How often your app is shown |
| Product Page Views | Who visited your listing |
| App Units | Downloads (excluding updates) |
| Sessions | How often app is opened |
| Retention | Users who return |
| Crash Rate | Crashes per session |
#### Understanding the Funnel
```
Impressions → Product Page Views → Downloads
↓ ↓ ↓
People who People who People who
saw you clicked installed
```
### Key Insights
**Conversion Rate:**
Downloads ÷ Product Page Views = How well your listing converts
**Sources:**
See where downloads come from:
* App Store Search
* App Store Browse
* Web Referral
* App Referral
***
## Responding to Reviews
### Why Reviews Matter
* Affect App Store ranking
* Influence potential users
* Provide feedback for improvements
### Best Practices
**Do:**
* Respond promptly (within 24-48 hours)
* Thank users for positive reviews
* Address concerns in negative reviews
* Offer to help with issues
**Don't:**
* Get defensive
* Argue with users
* Copy/paste generic responses
* Ignore negative reviews
### Example Responses
**Positive Review:**
```
Thank you so much for the kind words! We're glad you're
enjoying the app. Stay tuned for exciting updates!
```
**Negative Review (bug report):**
```
We're sorry you experienced this issue. We've identified
the bug and it's fixed in our next update. Thank you for
bringing this to our attention!
```
**Negative Review (feature request):**
```
Thank you for the feedback! This is a great suggestion
and we've added it to our roadmap. Keep the ideas coming!
```
***
## Pushing Updates
### When to Update
* Bug fixes (prioritize critical issues)
* New features
* Performance improvements
* iOS version compatibility
* User-requested improvements
### Update Process
Update your app as needed
Update version for new features
Always increment build number
Use TestFlight for testing
Same process as initial upload
Updates go through review (usually faster)
### Update Review Times
Updates typically review faster than initial submissions:
* Most: Same day
* Complex changes: 24-48 hours
***
## Marketing Your App
### App Store Optimization (ASO)
Improve discoverability:
**Keywords:**
* Research competitor keywords
* Use all 100 characters
* Test and iterate
**Screenshots:**
* A/B test different styles
* Highlight best features first
* Keep updated with new features
**Description:**
* Front-load important information
* Use clear formatting
* Update for new features
### External Marketing
**Social Media:**
* Share on your channels
* Show the app in action
* Encourage users to share
**Press:**
* Create a press kit
* Reach out to relevant blogs
* Share with influencers in your niche
**Your Network:**
* Ask friends and family to download
* Request honest reviews
* Word of mouth is powerful
***
## Handling Problems
### Crashes Increasing
If crash rate rises after update:
1. Check App Store Connect crash reports
2. Identify the cause
3. Prepare hotfix build
4. Submit with expedited review request if critical
### Negative Reviews Surge
If you see sudden negative reviews:
1. Identify the cause (usually a bug)
2. Respond to reviews acknowledging the issue
3. Push fix quickly
4. Update review responses after fix
### App Ranking Dropping
If downloads decline:
1. Review recent changes
2. Check competitor activity
3. Refresh screenshots/description
4. Consider promotional pricing
***
## Monetization
### If Free with Ads
* Monitor ad revenue in your ad platform
* Track user engagement with ads
* Optimize ad placement
### If Paid
* Monitor sales in App Store Connect
* Consider promotional pricing
* Watch for piracy
### If Subscription/IAP
* Track conversion rates
* Monitor cancellations
* Optimize pricing
***
## Long-Term Success
Apps that update regularly rank better and retain users. Even small improvements show you're active.
Reviews and feedback are gold. Users tell you exactly what they want. Use it.
Nothing kills an app faster than bugs. Prioritize stability over new features.
Update for new iOS versions. Users on latest iOS expect apps to work well.
***
## Managing Multiple Versions
### TestFlight + App Store
You can have:
* TestFlight for beta testing next version
* App Store with current live version
Both can run simultaneously.
### Version Numbers
Use semantic versioning:
```
MAJOR.MINOR.PATCH
1.0.0 → 1.0.1 (bug fix)
1.0.1 → 1.1.0 (new feature)
1.1.0 → 2.0.0 (major change)
```
***
## Annual Maintenance
### Yearly Tasks
* Renew Apple Developer membership
* Update privacy policy if data practices change
* Review and update app for latest iOS
* Refresh screenshots and description
* Check for deprecated APIs
### Developer Program Renewal
Apple sends reminders before your \$99 renewal:
* 30 days before
* 7 days before
* Day of expiration
If you miss renewal, your apps remain on the App Store but you can't submit updates.
***
## Celebrate!
You did it. Your app is on the App Store. That's a real achievement.
Publishing overview
Get help with issues
# App Store Connect
Source: https://docs.nativeline.ai/publishing/app-store/app-store-connect
Set up your app's store listing
# App Store Connect
App Store Connect is Apple's portal for managing your App Store presence. Here's how to set up your app listing.
## Accessing App Store Connect
1. Go to [appstoreconnect.apple.com](https://appstoreconnect.apple.com)
2. Sign in with your Apple Developer Apple ID
3. Click "My Apps"
***
## Creating Your App (If Not Done)
If you haven't created your app yet:
In My Apps, click "+" then "New App"
Choose iOS
This appears on the App Store (can be changed later)
Your main language
Must match your Nativeline project exactly
Any unique identifier for your reference (e.g., "myapp001")
Your app is now in App Store Connect
***
## App Information
### General Information
| Field | Description | Tips |
| ------------------ | --------------------------------- | ------------------------ |
| Name | App Store display name (30 chars) | Clear, memorable, unique |
| Subtitle | Appears under name (30 chars) | Brief value proposition |
| Category | Primary category | Choose most relevant |
| Secondary Category | Optional | Can help discoverability |
### Content Rights
Confirm you have rights to all content in your app:
* Original content you created
* Licensed content with proper permissions
* No copyrighted material without authorization
***
## App Privacy
Apple requires detailed privacy disclosures:
### Privacy Policy
Provide URL to your privacy policy. It must:
* Be accessible to all users
* Be in the primary language of your app
* Clearly explain what data you collect
### App Privacy Details
Answer questions about data collection:
1. **Contact Info** — Name, email, phone, address
2. **Health & Fitness** — Health, fitness data
3. **Financial Info** — Payment info, credit score
4. **Location** — Precise or coarse location
5. **Contacts** — Address book
6. **User Content** — Photos, videos, files
7. **Browsing History** — Web browsing
8. **Search History** — In-app searches
9. **Identifiers** — User ID, device ID
10. **Usage Data** — App analytics
11. **Diagnostics** — Crash logs
For each type, specify:
* Whether it's linked to user identity
* Whether it's used for tracking
If your app only uses standard analytics (like Apple's), you likely only need to declare "Usage Data" and "Diagnostics" as not linked to identity.
***
## Version Information
### What's New
For updates, describe what changed:
* Bug fixes
* New features
* Improvements
Example:
```
• Added dark mode support
• Fixed issue with photo saving
• Improved app performance
```
### Description
Up to 4000 characters describing your app:
**Structure:**
1. Hook (what does it do?)
2. Key features (bullet points)
3. Social proof (if any)
4. Call to action
**Good Example:**
```
Take stunning photos and edit them with powerful filters — all from your iPhone.
KEY FEATURES:
• 50+ professional filters
• One-tap enhancement
• Share directly to social media
• Save to camera roll
Join millions of users who trust PhotoApp for their daily photos.
Download free today!
```
### Keywords
Up to 100 characters, comma-separated:
**Tips:**
* No spaces after commas
* Don't repeat words from your name
* Use singular forms
* Think like a user searching
**Example:** `photo,filter,camera,edit,enhance,portrait,selfie`
### Promotional Text
170 characters that can be changed anytime:
Use for:
* Limited promotions
* Feature announcements
* Seasonal messaging
***
## App Previews & Screenshots
See [Screenshots & Preview](/publishing/app-store/screenshots) for detailed guidance.
***
## Age Rating
Answer Apple's questionnaire about content:
* Violence (cartoon, realistic, etc.)
* Sexual content
* Profanity
* Drug/alcohol references
* Gambling
* Horror/fear themes
* User-generated content
Your answers determine the age rating (4+, 9+, 12+, 17+).
Be honest. If your rating doesn't match your content, Apple will reject your app.
***
## Pricing and Availability
### Price
Choose from Apple's price tiers or select Free.
| Tier | USD | Note |
| ------ | ------ | --------------- |
| Free | \$0 | Most common |
| Tier 1 | \$0.99 | Entry paid tier |
| Tier 2 | \$1.99 | |
| Tier 3 | \$2.99 | |
| ... | | Up to \$999.99 |
### Availability
Select countries/regions:
* All (default)
* Select specific ones
* Consider language support
### Pre-Order
Optionally allow users to pre-order:
* Set up to 180 days in advance
* Users charged at launch
* Generates early buzz
***
## Review Information
### Contact Information
Apple may contact you during review:
* Email (required)
* Phone (required)
* Should be monitored during review period
### Demo Account
If your app requires login:
* Provide test credentials
* Ensure the account is active and works
* Don't use production accounts with real data
### Notes
Explain anything Apple might find confusing:
* Special testing instructions
* Why you need certain permissions
* How to access specific features
***
## App Clips (Optional)
If your app has App Clips:
* Upload the App Clip binary
* Provide metadata for the clip
* Set up the App Clip experience
***
## Submission Checklist
Before submitting, verify:
* [ ] App name finalized
* [ ] Description is compelling and accurate
* [ ] Keywords optimized (100 chars)
* [ ] Screenshots uploaded for all sizes
* [ ] Age rating questionnaire completed
* [ ] Privacy policy URL works
* [ ] Support URL works
* [ ] Content rights confirmed
* [ ] Privacy details completed
* [ ] Build uploaded and selected
* [ ] Demo account provided (if login required)
***
## Saving vs Submitting
### Save for Later
You can save incomplete listings and return later:
* Click "Save" at top right
* Come back anytime to continue
### Ready to Submit
When everything is complete:
* All required fields filled
* Build uploaded and processed
* Ready to send for review
***
## Next Steps
Required visual assets
Send to Apple review
# App Store Overview
Source: https://docs.nativeline.ai/publishing/app-store/overview
Launch your app to the world
# App Store Publishing
You've built your app, tested with beta users, and you're ready to share it with the world. This section covers everything about getting your app on the App Store.
## The App Store Journey
```
Prepare Assets → Create Listing → Submit for Review → Approval → Launch!
```
***
## What You'll Need
Before submitting, gather these:
### Required
| Asset | Details |
| ------------------ | ---------------------------------------- |
| App icon | 1024x1024 PNG |
| Screenshots | Multiple sizes (see Screenshots section) |
| App description | Clear explanation of what your app does |
| Keywords | Up to 100 characters |
| Category | Primary and optional secondary |
| Privacy policy URL | Hosted on the web |
| Support URL | Where users get help |
### Recommended
| Asset | Details |
| ----------------- | ---------------------------------- |
| App preview video | Up to 30 seconds |
| Promotional text | 170 characters, can change anytime |
| Subtitle | 30 characters under your app name |
***
## Timeline
What to expect:
| Phase | Typical Duration |
| --------------------- | ---------------------- |
| Creating listing | 1-3 hours |
| Uploading screenshots | 30 minutes |
| Submission to review | 5 minutes |
| App Store review | 24-48 hours |
| After approval | Immediate or scheduled |
Review times vary. First submissions, complex apps, and apps with in-app purchases may take longer.
***
## App Review Process
Apple reviews every app before it goes live:
### What They Check
1. **Functionality** — App works as described
2. **Performance** — No crashes or major bugs
3. **Design** — Follows Human Interface Guidelines
4. **Safety** — No harmful content
5. **Privacy** — Proper data handling
6. **Legal** — No copyright/trademark issues
### Possible Outcomes
| Result | What Happens |
| --------------------- | ----------------------------- |
| **Approved** | You can release to App Store |
| **Rejected** | Must fix issues and resubmit |
| **Metadata Rejected** | Only listing issues, easy fix |
| **In Review** | Still being evaluated |
***
## Common Rejection Reasons
Avoid these pitfalls:
Your app must be stable. Test thoroughly before submitting, especially the main user flows.
All features should work. No "coming soon" buttons or placeholder screens.
Description, screenshots, and category must accurately represent your app.
Must include privacy policy and request permissions only when needed.
All links (privacy policy, support URL, etc.) must work.
***
## Pricing Options
### Free
* No barrier to download
* Revenue from ads, in-app purchases, or as a free service
* Most common model
### Paid
* One-time purchase price
* No recurring revenue from existing users
* Higher barrier to download
### Freemium
* Free download
* In-app purchases for premium features
* Subscriptions for ongoing access
* Most popular revenue model for successful apps
For digital content and app features, you must use Apple's In-App Purchase system. Apple takes 15-30% of transactions.
***
## Geographic Availability
Choose where your app is available:
* Select specific countries/regions
* Or make available worldwide
* Consider language support when choosing
***
## Publishing Sections
Set up your app listing
Required visual assets
What Apple looks for
The submission process
Launch and beyond
***
## Before You Start
### Quality Checklist
* [ ] All features work correctly
* [ ] No crashes on main user flows
* [ ] Tested on multiple device sizes
* [ ] All text is spelled correctly
* [ ] Placeholder content removed
* [ ] Privacy policy is accurate and accessible
### Account Readiness
* [ ] Apple Developer account active
* [ ] Payment information up to date
* [ ] Agreements accepted in App Store Connect
* [ ] App created in App Store Connect
***
## First-Time Tips
First submissions often take longer and may need revisions. Plan for 1-2 weeks from submission to launch.
Apple provides specific reasons. Address each point precisely in your resubmission.
If rejected, fix the issue rather than debating with review. Appeals rarely succeed.
Beta testing catches most issues before App Store review. Use that feedback.
# App Review Guidelines
Source: https://docs.nativeline.ai/publishing/app-store/review-guidelines
What Apple looks for when reviewing your app
# App Review Guidelines
Apple reviews every app before it goes on the App Store. Understanding what they look for helps you avoid rejection.
## The Five Principles
Apple organizes guidelines around five themes:
### 1. Safety
Your app must be safe for users:
* No harmful or objectionable content
* User privacy respected
* No dangerous physical activities encouraged
### 2. Performance
Your app must work well:
* No crashes or bugs
* Accurate metadata
* Complete functionality
### 3. Business
Fair business practices:
* Clear pricing
* No misleading claims
* Proper use of Apple's payment systems
### 4. Design
Quality user experience:
* Follow Human Interface Guidelines
* Intuitive navigation
* Accessible to all users
### 5. Legal
Compliance with laws:
* No copyright infringement
* No illegal activities
* Proper licensing
***
## Most Common Rejection Reasons
### 1. Crashes and Bugs
**Issue:** App crashes during use or review
**Prevention:**
* Test thoroughly on real devices
* Test all user flows
* Test edge cases (no internet, low storage)
* Use TestFlight feedback to find issues
### 2. Broken Links
**Issue:** Links in app or metadata don't work
**Check:**
* Privacy policy URL
* Support URL
* Website links
* Deep links within app
### 3. Placeholder Content
**Issue:** "Lorem ipsum" or "coming soon" in app
**Prevention:**
* Remove all placeholder text
* Disable or hide incomplete features
* Only submit when app is complete
### 4. Inaccurate Description
**Issue:** Description doesn't match what app does
**Prevention:**
* Describe actual features
* Don't overpromise
* Update description when features change
### 5. Insufficient Functionality
**Issue:** App doesn't do enough to be useful
**Prevention:**
* Ensure core value proposition works
* Don't submit "hello world" apps
* Have at least one complete feature set
***
## Privacy Requirements
Apple takes privacy seriously:
### Required Privacy Disclosures
For any data you collect:
1. Declare in App Store Connect
2. Include in privacy policy
3. Request user permission where needed
### Permission Requests
When asking for permissions:
* Explain why you need it (usage description)
* Request only when relevant
* Accept "no" gracefully
### Data Usage
If you collect data:
* Tell users what you collect
* Tell users how it's used
* Tell users who it's shared with
***
## Design Requirements
### Human Interface Guidelines
Follow Apple's design patterns:
* Standard navigation patterns
* Appropriate use of system features
* Consistent with iOS look and feel
### Accessibility
Apps should be usable by everyone:
* VoiceOver support
* Dynamic Type support
* Sufficient color contrast
### App Completeness
No half-finished apps:
* All buttons must work
* All screens must be complete
* No "under construction" areas
***
## Content Restrictions
### Prohibited Content
* Pornography or explicit sexual content
* Violence for shock value
* Discrimination or hate speech
* Illegal activities
* False information that could cause harm
### Regulated Content
Some content requires age restrictions:
* Alcohol/tobacco references
* Gambling
* Horror/fear themes
* Medical/health information
***
## In-App Purchases
### When Required
Apple's IAP system is required for:
* Digital content consumption (within app)
* Premium features/subscriptions
* Virtual goods/currency
* Unlocking functionality
### When Not Required
External payment allowed for:
* Physical goods
* Services consumed outside app
* Business-to-business apps
Using external payments for digital content can result in app rejection or removal.
***
## Metadata Guidelines
### App Name
* No prices
* No excessive keywords
* Not misleading
* Not too similar to existing apps
### Description
* Must be accurate
* No irrelevant content
* No other platform mentions
* No pricing (use App Store pricing)
### Screenshots
* Must be from the actual app
* No device frames showing competitor devices
* Must represent actual app functionality
* No fake reviews or endorsements
***
## Specific Content Types
### Kids Category
Extra requirements for apps targeting children:
* No external links
* No advertising
* Stricter privacy (no data collection)
* Age-appropriate content
### Health and Medical
Apps with health claims need:
* Accurate information
* Disclaimers where appropriate
* Compliance with medical regulations
### Financial Apps
Apps handling money need:
* Security measures
* Clear disclosures
* Regulatory compliance
***
## Review Process
### Timeline
* Most reviews: 24-48 hours
* Can be faster or slower
* First submissions may take longer
### Communication
If Apple needs information:
* Check email regularly during review
* Respond promptly to questions
* Provide demo accounts if requested
### Expedited Reviews
For critical issues:
* Request at [developer.apple.com/contact](https://developer.apple.com/contact)
* Only for genuine emergencies
* Not for convenience
***
## Handling Rejections
### If Rejected
1. **Read the rejection carefully** — Apple provides specific reasons
2. **Fix the issues** — Address each point
3. **Resubmit** — With a new build if needed
### Metadata Rejection
If only metadata was rejected:
* Fix text/screenshots/links
* Resubmit without new build
* Usually faster resolution
### Appeal Process
If you believe rejection was wrong:
* Reply to the rejection email
* Explain your position clearly
* Provide evidence if applicable
* Don't be confrontational
***
## Pre-Submission Checklist
* [ ] All features work
* [ ] No crashes on main flows
* [ ] Edge cases handled
* [ ] Works offline (if applicable)
* [ ] No placeholder text
* [ ] All content is appropriate
* [ ] Age rating is correct
* [ ] No copyrighted material without license
* [ ] Privacy policy is accurate
* [ ] App privacy details completed
* [ ] Permission requests explained
* [ ] Data handling disclosed
* [ ] Description is accurate
* [ ] Screenshots show actual app
* [ ] All links work
* [ ] Contact info is correct
***
## Further Reading
* [Full App Store Review Guidelines](https://developer.apple.com/app-store/review/guidelines/)
* [Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/)
* [App Store Product Page](https://developer.apple.com/app-store/product-page/)
***
## Next Steps
Ready to submit
What happens next
# Screenshots & Preview
Source: https://docs.nativeline.ai/publishing/app-store/screenshots
Create compelling App Store visuals
# Screenshots & Preview
Screenshots are often the deciding factor in whether someone downloads your app. Make them count.
## What You Need
### Required Screenshots
You need screenshots for each device size you support:
| Device | Size (pixels) | Required |
| -------------- | ------------- | --------------------------- |
| iPhone 6.7" | 1290 x 2796 | Yes (if supporting Pro Max) |
| iPhone 6.5" | 1284 x 2778 | Yes |
| iPhone 5.5" | 1242 x 2208 | Yes |
| iPad Pro 12.9" | 2048 x 2732 | Yes (if iPad app) |
| iPad Pro 11" | 1668 x 2388 | Optional |
### Screenshot Limits
* Minimum: 3 screenshots per device size
* Maximum: 10 screenshots per device size
* App previews count toward the 10 limit
App Store Connect can automatically scale from larger to smaller sizes. Upload for 6.7" and it can generate 6.5" and 5.5".
***
## Screenshot Best Practices
### Show the App, Not Just Screens
**Good:** App in use with context
**Bad:** Raw screenshots with no explanation
### Highlight Key Features
Focus on what makes your app valuable:
1. Main feature first (most visible in search)
2. Supporting features after
3. End with credibility (awards, reviews, etc.)
### Use Text Overlays
Add brief explanatory text:
* Large, readable fonts
* 5 words or fewer per screen
* Consistent style throughout
### Examples
**First Screenshot:** Hero shot of main feature
```
"Edit photos in seconds"
[Phone showing photo editor]
```
**Second Screenshot:** Key feature
```
"50+ professional filters"
[Filter selection screen]
```
**Third Screenshot:** Benefit
```
"Share anywhere instantly"
[Share screen]
```
***
## Creating Screenshots
### From Simulator
1. Run app in Simulator
2. Navigate to desired screen
3. Press **Cmd + S** to save screenshot
4. Find in designated folder
### Set Simulator Size
Match App Store requirements:
* **6.7":** iPhone 15 Pro Max
* **6.5":** iPhone 14 Plus or iPhone 15 Plus
* **5.5":** iPhone 8 Plus
### Adding Context
Use design tools to enhance:
* Add device frames (optional)
* Add text overlays
* Add backgrounds
* Maintain consistent style
***
## App Preview Videos
Optional 15-30 second videos showing your app in action.
### Specifications
| Aspect | Requirement |
| ---------- | -------------------------- |
| Length | 15-30 seconds |
| Format | H.264, .mov or .mp4 |
| Frame rate | 30 fps |
| Resolution | Match screenshot size |
| Audio | Optional, max 12 weeks old |
### What to Show
Open with your best feature
Demonstrate actual interactions
Focus on 2-3 key features
Leave viewers wanting to try it
### Recording Tips
* Use QuickTime Player → File → New Screen Recording
* Record the Simulator in action
* Keep movements smooth and intentional
* Don't show loading screens or errors
***
## Screenshot Strategies
### Strategy 1: Feature Showcase
Each screenshot highlights a different feature:
1. Main feature
2. Secondary feature
3. Third feature
4. ...
### Strategy 2: User Journey
Walk through using the app:
1. Getting started
2. Main action
3. Result
4. Sharing/completion
### Strategy 3: Problem → Solution
Show the value proposition:
1. "Tired of X?"
2. "Here's how we solve it"
3. Result
4. How easy it was
***
## Design Guidelines
### Do
* ✅ Use high contrast text
* ✅ Match your app's color scheme
* ✅ Be consistent across all screenshots
* ✅ Show real content (not Lorem ipsum)
* ✅ Test readability on small screens
### Don't
* ❌ Use tiny text
* ❌ Overwhelm with too much information
* ❌ Show empty states or errors
* ❌ Include device status bars
* ❌ Use copyrighted content without permission
***
## Localization
If your app supports multiple languages:
* Provide screenshots for each language
* Translate text overlays
* Use region-appropriate content
* Consider cultural differences in design
***
## Uploading Screenshots
Navigate to your app → App Store tab
Find the Media section
Click on each size tab
Upload screenshots in desired order
Drag to rearrange
***
## Screenshot Order
Order matters — especially the first three:
| Position | Visibility | Content |
| -------- | ----------------- | -------------------------------- |
| 1st | Search results | Your best, most compelling image |
| 2nd | Search results | Second most important feature |
| 3rd | Search results | Third key feature |
| 4th+ | Product page only | Supporting features |
***
## Testing Your Screenshots
### Preview in App Store Connect
Use the preview feature to see how screenshots appear in:
* Search results
* Product page
* Different device sizes
### Check Competitors
Look at top apps in your category:
* What style do they use?
* How much text?
* What order?
### A/B Testing (after launch)
App Store Connect offers product page optimization:
* Test different screenshots
* See which perform better
* Apply winners
***
## Common Mistakes
Adding text overlays and context significantly increases conversion. A plain screenshot doesn't sell your app.
Keep text minimal. If users have to read a paragraph, they'll scroll past.
Your best screenshot should be first. Don't bury the best feature.
Use the same fonts, colors, and layout style throughout for professional appearance.
***
## Tools for Screenshots
### Free Options
* **Figma** — Design screenshots with overlays
* **Canva** — Templates for app screenshots
* **Screenshot from Simulator** — Base images
### Paid Options
* **Sketch** — Professional design tool
* **Adobe Photoshop** — Advanced editing
* **AppLaunchpad** — Specialized app screenshot tool
***
## Next Steps
What Apple looks for
Ready to submit
# Submitting for Review
Source: https://docs.nativeline.ai/publishing/app-store/submission
Send your app to Apple for review
# Submitting for Review
You've prepared everything. Now it's time to submit your app to Apple for review.
## Pre-Submission Checklist
Before clicking submit, verify:
### Build
* [ ] Build uploaded and processed in App Store Connect
* [ ] Build number is correct
* [ ] No processing errors
### App Information
* [ ] App name finalized
* [ ] Subtitle set (optional but recommended)
* [ ] Category selected
* [ ] Content rights confirmed
### Privacy
* [ ] Privacy policy URL works and is accessible
* [ ] App Privacy details completed
* [ ] All data collection disclosed
### Media
* [ ] Screenshots for all required device sizes
* [ ] Screenshots are accurate and compelling
* [ ] App preview video uploaded (optional)
### Metadata
* [ ] Description complete and accurate
* [ ] Keywords set (up to 100 characters)
* [ ] Age rating questionnaire completed
* [ ] Support URL works
### Review Information
* [ ] Contact email monitored
* [ ] Contact phone number valid
* [ ] Demo account provided (if login required)
* [ ] Review notes explain anything unusual
***
## Submitting Your App
Go to [appstoreconnect.apple.com](https://appstoreconnect.apple.com) and select your app
Navigate to the main App Store submission page
In the Build section, click "+" and select your processed build
Scroll through and verify everything is complete (green checkmarks)
At the top right, click "Submit for Review"
* Export compliance (usually HTTPS exemption)
* Content rights confirmation
* Advertising identifier usage
Click "Submit" to send to Apple
***
## After Submission
### Status Changes
Your app will show these statuses:
| Status | Meaning |
| ------------------------- | --------------------------- |
| Waiting for Review | In Apple's queue |
| In Review | Apple is actively reviewing |
| Pending Developer Release | Approved, waiting for you |
| Ready for Sale | Live on App Store |
| Rejected | Issues to address |
| Metadata Rejected | Only metadata issues |
### Timeline
Typical timeline after submission:
* **Waiting for Review:** Hours to 1-2 days
* **In Review:** Minutes to hours
* **Total:** Usually 24-48 hours
Review times vary. First submissions, complex apps, and apps with IAP may take longer.
### Stay Reachable
During review:
* Monitor email (including spam folder)
* Keep phone available (rare, but Apple may call)
* Be ready to respond quickly to questions
***
## Release Options
### Automatic Release
After approval, app goes live immediately.
**Pros:**
* Fastest to market
* No additional action needed
**Cons:**
* No control over timing
* Can't coordinate with marketing
### Manual Release
After approval, you choose when to release.
**Pros:**
* Control timing
* Coordinate with announcements
* Final quality check
**Cons:**
* Requires action
* Approval expires after 30 days
### Scheduled Release
Set a specific date and time.
**Pros:**
* Plan marketing around exact date
* No manual action needed at release time
**Cons:**
* Must be approved before scheduled date
* Less flexibility if plans change
To set release option:
1. Before submission, in Version Release section
2. Select your preference
3. Set date if scheduling
***
## Common Questions
No. Once submitted, you can't edit. You'd need to reject your submission, make changes, and resubmit.
In App Store Connect → My Apps → Your App. Status shows at the top of the page.
If minor, wait for review. If critical, reject your submission, fix, and resubmit with new build.
Only for critical situations. Request at developer.apple.com/contact. Use sparingly.
***
## If You're Rejected
### Don't Panic
Rejection is common, especially for first submissions. It's fixable.
### Read the Feedback
Apple provides specific rejection reasons. Read carefully and address each point.
### Types of Rejection
**Binary Rejected:**
* Issue with the app itself
* Requires new build
* More significant fixes
**Metadata Rejected:**
* Issue with listing only
* No new build needed
* Usually quick to fix
### Fixing and Resubmitting
Read Apple's feedback completely
Address each point specifically
For binary rejection, upload fix
In App Store Connect, respond to Apple explaining your fixes
Click "Submit for Review" again
***
## Responding to App Review
### Through Resolution Center
In App Store Connect → Your App → Resolution Center:
* View rejection details
* Reply to Apple
* Ask questions if unclear
### Tips for Responses
**Do:**
* Be polite and professional
* Explain exactly what you fixed
* Provide additional context if needed
* Ask for clarification if rejection is unclear
**Don't:**
* Be confrontational
* Argue without fixing
* Ignore the feedback
* Make excuses
### Example Response
```
Thank you for your feedback. I've addressed the issues:
1. Crash on login (2.1): Fixed null pointer exception in
authentication flow. Tested on all supported devices.
2. Missing privacy disclosure (5.1.1): Added camera permission
disclosure to App Privacy section and updated privacy policy.
Build 15 contains these fixes. Please let me know if you need
any additional information.
```
***
## Expedited Review Request
For genuine emergencies only:
### Valid Reasons
* Critical bug affecting users
* Security vulnerability
* Time-sensitive legal issue
* Major event tie-in (be cautious)
### How to Request
1. Go to [developer.apple.com/contact](https://developer.apple.com/contact)
2. Select "App Review"
3. Choose "Request Expedited Review"
4. Explain your situation
Overusing expedited review requests can harm future requests. Reserve for genuine emergencies.
***
## Submission Success Tips
Most rejections are for bugs or crashes. TestFlight with external testers catches most issues.
Description, screenshots, and functionality should match exactly. Don't oversell.
If login required, provide working test credentials. Many rejections happen because reviewers can't access the app.
In review notes, explain anything that might confuse reviewers. Context helps.
***
## Next Steps
Launch and beyond
Avoid rejection
# Apple Developer Account
Source: https://docs.nativeline.ai/publishing/apple-developer-account
Enroll in the Apple Developer Program
# Apple Developer Account
To distribute your app beyond your own device, you need an Apple Developer Program membership. Here's everything you need to know.
## Why You Need It
| Capability | Free Apple ID | Developer Account |
| ----------------------- | --------------- | ----------------- |
| Run on your iPhone | ✓ (7-day limit) | ✓ (1 year) |
| TestFlight distribution | ✗ | ✓ |
| App Store distribution | ✗ | ✓ |
| Push notifications | ✗ | ✓ |
| Sign in with Apple | ✗ | ✓ |
| App Groups | ✗ | ✓ |
***
## Cost
**\$99 per year** (USD)
* Charged annually
* Can be cancelled anytime
* Price varies by country
The fee is per developer account, not per app. You can publish unlimited apps with one account.
***
## Account Types
### Individual
**Best for:** Solo developers, personal projects
* Uses your personal name
* You appear as the seller on App Store
* Easier approval process
### Organization
**Best for:** Companies, teams, businesses
* Uses company/organization name
* Requires D-U-N-S number (free to obtain)
* Can add team members with different roles
* Longer approval process
***
## Enrollment Requirements
### For Individuals
* Apple ID with two-factor authentication
* Valid credit card
* Government-issued ID (for verification)
* 18 years or older
### For Organizations
* Everything above, plus:
* D-U-N-S number (takes 1-2 weeks to obtain)
* Legal entity information
* Authority to bind the organization
***
## How to Enroll
Go to [developer.apple.com](https://developer.apple.com) and sign in with your Apple ID
Click "Account" then "Join the Apple Developer Program"
Select Individual or Organization
Apple will verify your identity (may require ID upload or phone call)
Complete payment of \$99 (or local equivalent)
Usually 24-48 hours, sometimes faster
***
## Identity Verification
Apple verifies all developers to prevent fraud. This process varies:
### Automatic Verification
If your Apple ID has payment history and matches your ID, verification may be instant.
### Manual Verification
You may be asked to:
* Upload a photo of government-issued ID
* Take a selfie for comparison
* Have a phone or video call with Apple
Use the same name on your Apple ID that appears on your government ID to speed up verification.
***
## D-U-N-S Number (Organizations Only)
A D-U-N-S number is a unique nine-digit identifier for businesses issued by Dun & Bradstreet.
### Checking for Existing Number
Many businesses already have one. Check at [dnb.com](https://www.dnb.com/duns-number.html)
### Requesting a New Number
1. Go to [Apple's D-U-N-S lookup](https://developer.apple.com/enroll/duns-lookup/)
2. Search for your organization
3. If not found, request a free D-U-N-S number
4. Takes 1-2 weeks to process
***
## After Enrollment
Once approved, you can:
### Access Developer Resources
* App Store Connect (manage apps)
* Certificates, Identifiers & Profiles
* Developer documentation
* Technical support incidents (2/year)
### Start Distributing
* Upload builds to TestFlight
* Submit apps to App Store
* Configure push notifications
* Use advanced capabilities
***
## Managing Your Account
### Renewal
* Apple sends reminders before expiration
* Auto-renewal available
* If expired, your apps remain on App Store but you can't submit updates
### Adding Team Members
Organizations can add team members with roles:
| Role | Capabilities |
| ----------- | ------------------------------- |
| Admin | Full access, manage team |
| App Manager | Manage apps, TestFlight |
| Developer | Upload builds, access dev tools |
| Marketing | App Store listing, analytics |
| Finance | Financial reports, agreements |
***
## Common Issues
This can take up to 2 weeks for organizations. Ensure all documents are clear and information matches exactly.
Make sure your Apple ID name exactly matches your government ID. Contact Apple Developer support if issues persist.
Request a new one through Apple's portal. It's free but takes 1-2 weeks.
You cannot convert between Individual and Organization. You'd need to create a new account.
***
## Enterprise Program
For large companies distributing internally only (not on App Store):
* **Apple Developer Enterprise Program**
* \$299/year
* Distribute to employees only
* Not for public apps
Enterprise Program is strictly for internal distribution. Apple actively terminates accounts that misuse it for public distribution.
***
## Next Steps
Set up code signing
Start beta testing
# Certificates & Profiles
Source: https://docs.nativeline.ai/publishing/certificates-profiles
Understanding code signing for iOS apps
# Certificates & Profiles
Code signing is how Apple verifies that your app comes from you and hasn't been tampered with. Nativeline handles most of this automatically, but understanding the basics helps when troubleshooting.
## The Simple Version
```
Your App + Certificate + Profile = Signed App
(who you are) (what's allowed)
```
Apple requires every app to be signed before it can run on a device or be distributed.
***
## Why Code Signing Exists
1. **Identity** — Proves you made the app
2. **Integrity** — Ensures the app hasn't been modified
3. **Authorization** — Controls what the app can do
***
## Key Concepts
### Certificates
A certificate proves your identity as a developer.
| Type | Purpose |
| ------------ | ------------------------------------------- |
| Development | Run apps on your devices during development |
| Distribution | Distribute via TestFlight and App Store |
### Provisioning Profiles
A profile links your certificate to your app and specifies:
* Which app (by Bundle ID)
* Which capabilities (push, Sign in with Apple, etc.)
* Which devices (for development)
### Bundle ID
A unique identifier for your app, like `com.yourname.appname`. This must be consistent across all profiles.
***
## How Nativeline Handles This
### Automatic Management
Nativeline can manage code signing automatically:
1. Creates certificates when needed
2. Generates provisioning profiles
3. Signs your app before uploading
To use automatic signing:
```
Settings → Signing → Automatic
```
### Manual Management
For advanced users or specific requirements:
1. Create certificates in Apple Developer portal
2. Create provisioning profiles manually
3. Import into Nativeline
***
## Setting Up (First Time)
In Nativeline, go to Settings → Account → Connect Apple Developer
Use the Apple ID associated with your Developer account
Let Nativeline manage certificates and profiles
If you're part of multiple teams, choose the correct one
***
## Understanding Profile Types
### Development Profile
* For testing on your devices
* Includes specific device IDs
* Can test all app capabilities
### App Store Profile
* For TestFlight and App Store distribution
* No device restrictions
* Used for final distribution builds
### Ad Hoc Profile
* For distributing outside App Store (up to 100 devices)
* Requires specific device IDs
* Rarely needed with TestFlight available
***
## Common Scenarios
### Building for Simulator
No code signing required. Simulator uses your Mac's identity.
### Testing on Your iPhone
Requires:
* Development certificate
* Development provisioning profile
* Your device registered in Apple Developer portal
### Uploading to TestFlight
Requires:
* Distribution certificate
* App Store provisioning profile
***
## Troubleshooting
### "No signing certificate found"
**Cause:** Certificate missing or expired
**Fix:**
1. Go to Settings → Signing
2. Click "Reset Certificates"
3. Let Nativeline create new ones
### "Provisioning profile doesn't match"
**Cause:** Bundle ID mismatch
**Fix:**
1. Check Bundle ID in Settings → App Identity
2. Ensure it matches what's in Apple Developer portal
3. Regenerate profile if needed
### "Profile doesn't include capability"
**Cause:** App uses a capability not in the profile
**Fix:**
1. Enable the capability in Apple Developer portal
2. Regenerate the provisioning profile
3. Rebuild your app
### "Certificate has been revoked"
**Cause:** Someone revoked your certificate
**Fix:**
1. Go to Settings → Signing
2. Reset certificates
3. Rebuild your app
***
## Certificate Limits
Apple limits the number of certificates:
| Type | Limit |
| ------------ | ---------- |
| Development | 2 per team |
| Distribution | 3 per team |
Revoking a distribution certificate affects ALL apps signed with it. Be careful in team environments.
***
## Device Registration
For development testing, devices must be registered:
### Automatic Registration
When you connect your iPhone and run from Nativeline, it can register automatically.
### Manual Registration
1. Get device UDID (from Finder when connected)
2. Add in Apple Developer portal → Devices
3. Regenerate provisioning profile
### Device Limits
* Up to 100 devices per type per year
* Resets when you renew your Developer account
* Can remove devices once per year
***
## Team Considerations
### Multiple Team Members
If working with a team:
* Each developer has their own development certificate
* Share distribution certificates carefully
* Use role-based access in App Store Connect
### Multiple Macs
Each Mac needs:
* The certificate installed
* Access to the private key
* Provisioning profiles downloaded
***
## Best Practices
Let Nativeline handle code signing unless you have specific requirements. It prevents most common issues.
Export certificates from Keychain Access and store securely. Losing your distribution certificate means regenerating profiles.
Distribution certificates give access to upload builds for your apps. Only share with trusted team members.
Certificates and profiles expire. Renew before they expire to avoid distribution interruptions.
***
## Expiration
### Certificate Expiration
* Development: 1 year
* Distribution: 1 year
When expired:
* Cannot create new builds with that certificate
* Existing apps continue working
* Create new certificate to continue
### Profile Expiration
* Profiles expire when the certificate they use expires
* Or when the Developer Program membership lapses
***
## Next Steps
Configure for beta testing
Submit your app
# DMG Export for Mac Apps
Source: https://docs.nativeline.ai/publishing/dmg-export
Export your Mac app as a DMG for distribution
When you build a Mac app in Nativeline, you can export it as a DMG file for distribution outside the App Store. This gives you full control over how you share your app with users.
## What is a DMG?
DMG (Disk Image) is the standard macOS format for distributing apps. Your users download the DMG, open it, and drag the app to their Applications folder. If you've ever installed a Mac app from a website, you've used a DMG.
It's the expected format for Mac apps distributed outside the App Store — familiar to every Mac user.
## Requirements
Before you can export a DMG, make sure you have the following:
| Requirement | Details |
| ----------------------------- | ------------------------------------------------------------ |
| **Mac project** | Your project must target macOS (not iOS or iPadOS) |
| **Apple Developer account** | Required for code signing (\$99/year) |
| **App Store Connect API Key** | Required for notarization (the same key used for TestFlight) |
If you haven't set up your Apple Developer account yet, you'll need to do that first. Code signing and notarization are what make your DMG trustworthy to macOS.
## The Export Process
Open the Mac project you want to export in Nativeline.
Navigate to **Settings** and select the **Deploy** section.
Choose **DMG Export** as your distribution method.
Your project is compiled and archived into a release build.
The app is signed with your Developer ID certificate. This tells macOS the
app comes from an identified developer.
The signed app is packaged into a DMG file.
If enabled, the DMG is submitted to Apple for notarization. Apple scans it
for malicious content and staples a ticket to the file.
Your DMG file is ready. Download it and share it however you want.
## Notarization
Notarization is Apple's process for reviewing your app to ensure it doesn't contain malicious content. It's not App Store review — it's an automated security check.
### Why It Matters
Without notarization, macOS Gatekeeper will show users a warning dialog when they try to open your app. Most users won't get past that warning. Notarized apps open cleanly without any scary messages.
### How It Works
Nativeline uses the same App Store Connect API Key you set up for TestFlight. During the export process:
1. Your signed DMG is uploaded to Apple's notarization service
2. Apple scans it (usually takes a few minutes)
3. If approved, a notarization ticket is stapled to the DMG
4. The stapled DMG is what you distribute to users
### Notarization Timeline
Notarization typically takes 2-5 minutes. In rare cases during high Apple server load, it can take up to 15 minutes. Nativeline waits for the result and reports success or failure.
## Progress Tracking
The export process shows real-time progress so you know exactly where things stand:
| Stage | What's Happening |
| ---------------- | -------------------------------------------- |
| **Archiving** | Compiling your project into a release build |
| **Exporting** | Creating the app bundle from the archive |
| **Creating DMG** | Packaging the app into a disk image |
| **Signing** | Applying your Developer ID code signature |
| **Notarizing** | Submitting to Apple and waiting for approval |
| **Complete** | Your DMG is ready to download |
Logs are available at each stage for troubleshooting if something goes wrong.
## Troubleshooting
Check that your Apple Developer certificates are valid and not expired. Go to
your Apple Developer account and verify your Developer ID Application
certificate is active. If it's expired, create a new one and update your
settings in Nativeline.
Ensure your App Store Connect API Key has the correct permissions. The key
needs access to notarization services. Also check that your app doesn't use
any unsigned third-party frameworks or libraries — notarization requires
everything in the bundle to be properly signed.
This usually means there are build errors in your project. Go back to your
project, check for compiler errors, fix them, and then retry the DMG export.
The archive step is essentially a release build, so any code issues will
surface here.
Check if your project includes large assets (images, videos, data files) that
shouldn't be bundled. Ask the AI to review your project's resource files and
remove anything unnecessary.
## Distribution
Once your DMG is ready, you can share it anywhere:
* **Your website** — Host the DMG as a download link
* **Email** — Send it directly to users or testers
* **File sharing** — Upload to Google Drive, Dropbox, or any file host
* **GitHub Releases** — Attach it to a release on your repository
You can distribute your DMG anywhere — your website, email, file sharing
services. Users just download, open, and drag to Applications.
DMG export is only available for Mac projects. iPhone and iPad apps must go
through TestFlight or the App Store.
## Related
Learn about all the ways to publish and distribute your apps.
Set up your Apple Developer account for code signing and distribution.
# Publishing Overview
Source: https://docs.nativeline.ai/publishing/overview
Get your app into the hands of users
# Publishing Your App
You've built something great. Now let's get it to your users. This section covers everything from testing with friends to launching on the App Store.
## The Publishing Journey
```
Build Your App → Test with TestFlight → Submit to App Store → Launch!
↓ ↓ ↓ ↓
Nativeline Beta testers Apple Review Users
```
***
## What You'll Need
### Apple Developer Account
Required for any distribution beyond your own device.
| Feature | Without Account | With Account (\$99/yr) |
| ------------------- | --------------- | ---------------------- |
| Test on your device | ✓ | ✓ |
| TestFlight | ✗ | ✓ |
| App Store | ✗ | ✓ |
| Push notifications | ✗ | ✓ |
Learn how to enroll
***
## Publishing Options
### TestFlight (Beta Testing)
Share your app with up to 10,000 testers before launching publicly. Works for iPhone, iPad, and Mac apps.
**Use TestFlight to:**
* Get feedback from real users
* Test on various devices
* Find bugs before public launch
* Build excitement for your app
Start beta testing
### App Store (Public Launch)
Make your app available to everyone with an iPhone, iPad, or Mac.
**App Store provides:**
* Global distribution
* Payment processing
* Automatic updates
* Visibility and discovery
Launch publicly
### DMG Export (Mac Apps Only)
Distribute your Mac app outside the App Store as a DMG file. Users download, open, and drag to Applications.
**DMG export provides:**
* Direct distribution (your website, email, etc.)
* No App Store review process
* Code signing and notarization for trust
* Standard macOS distribution format
Export your Mac app
***
## The Process at a Glance
Finish building, test thoroughly, gather assets
Enroll in the Apple Developer Program (\$99/year)
Set up code signing (mostly automated by Nativeline)
Upload build, invite testers, gather feedback
Create listing, upload screenshots, submit for review
Respond to reviews, push updates, grow your user base
***
## Before You Start
### App Completeness Checklist
Before publishing, make sure:
* [ ] Core features work reliably
* [ ] No major bugs or crashes
* [ ] App works offline (if applicable)
* [ ] Loading states for slow operations
* [ ] Error messages are user-friendly
* [ ] Tested on multiple device sizes
### Required Assets
You'll need these for the App Store:
| Asset | Specifications |
| ------------------ | ------------------------ |
| App icon | 1024x1024 PNG (no alpha) |
| Screenshots | Various sizes per device |
| App description | Clear, compelling text |
| Keywords | Up to 100 characters |
| Privacy policy URL | Required for all apps |
***
## Timeline Expectations
Publishing involves waiting for Apple:
| Step | Typical Wait Time |
| -------------------------- | ---------------------- |
| Developer account approval | 24-48 hours |
| TestFlight processing | 10-30 minutes |
| App Store review | 24-48 hours (can vary) |
Review times can vary. During busy periods or for complex apps, expect longer waits.
***
## Common Concerns
Yes. TestFlight requires an Apple Developer account, which costs \$99/year. There's no way around this for distribution.
Most apps are reviewed within 24-48 hours. First-time submissions and apps with in-app purchases may take longer.
Yes. Apple reviews apps against their guidelines. Common rejection reasons are covered in our Review Guidelines section.
TestFlight is the way. You can add up to 100 internal testers immediately. External testers (up to 10,000) require a quick beta review.
***
## Publishing Sections
Enrollment and setup
Code signing explained
Beta testing guide
Public launch guide
# TestFlight Overview
Source: https://docs.nativeline.ai/publishing/testflight/overview
Beta test your app before launching
# TestFlight
TestFlight is Apple's official platform for beta testing iOS apps. It lets you share your app with testers before releasing publicly on the App Store.
## What is TestFlight?
TestFlight is a free app from Apple that allows:
* **You** to upload beta versions of your app
* **Testers** to install and test on their devices
* **Feedback** to flow back to you before public launch
***
## Why Use TestFlight?
### Find Bugs Early
Real users on real devices catch issues you might miss:
* Device-specific bugs
* Edge cases in user flow
* Performance issues
* Usability problems
### Validate Your App
Before spending time on App Store submission:
* Confirm core features work
* Get user feedback on design
* Refine the experience
### Build Excitement
Beta testers become your first fans:
* They feel invested in the app
* They'll leave early reviews
* They spread word of mouth
***
## How It Works
```
Build App → Upload to App Store Connect → Invite Testers → Get Feedback
↓
Testers install via TestFlight app
```
Nativeline uploads your app to App Store Connect
Add tester emails or share a public link
They download TestFlight app, then install your app
Testers use the app and send feedback
Fix issues, upload new builds, repeat
***
## Tester Types
### Internal Testers
| Aspect | Details |
| ------ | -------------------------------------- |
| Who | Members of your App Store Connect team |
| Limit | Up to 100 testers |
| Review | No Apple review required |
| Access | Immediate after upload processing |
**Best for:** Your own devices, team members, close collaborators
### External Testers
| Aspect | Details |
| ------ | ------------------------------------------------ |
| Who | Anyone with an email address |
| Limit | Up to 10,000 testers |
| Review | First build requires brief Apple review |
| Access | After review approval (\~24-48 hours first time) |
**Best for:** Wider beta testing, user feedback
***
## TestFlight Limits
| Limit | Value |
| ------------------ | --------- |
| Internal testers | 100 |
| External testers | 10,000 |
| Tester groups | 195 |
| Builds per version | Unlimited |
| Build availability | 90 days |
***
## What Testers See
When testers install via TestFlight:
1. **App appears on home screen** — with a small orange dot indicator
2. **Full app functionality** — works just like the real app
3. **Feedback option** — can take screenshots and send feedback
4. **Automatic updates** — new builds install automatically
***
## Build Expiration
TestFlight builds expire after 90 days. Testers must update to a newer build to continue testing.
Plan to upload new builds regularly to keep testers active.
***
## TestFlight vs App Store
| Aspect | TestFlight | App Store |
| ---------- | ----------------------------- | ---------------- |
| Audience | Invited testers | Everyone |
| Review | Faster (or none for internal) | Full review |
| Purpose | Testing, feedback | Public release |
| Updates | Automatic | User-controlled |
| Expiration | 90 days | Never |
| Payments | Cannot process | Full IAP support |
***
## Requirements
To use TestFlight, you need:
* ✅ Apple Developer Program membership (\$99/year)
* ✅ App uploaded to App Store Connect
* ✅ Valid code signing certificates
* ✅ Testers with iOS devices and TestFlight app
***
## Getting Started
First-time configuration
Get your app to TestFlight
Add and manage testers
Fix common issues
# TestFlight Setup
Source: https://docs.nativeline.ai/publishing/testflight/setup
Configure your app for TestFlight beta testing
# TestFlight Setup
This guide walks you through setting up TestFlight for the first time. After this, uploading subsequent builds is quick and easy.
## Prerequisites
Before starting, ensure you have:
* [ ] Apple Developer Program membership (active)
* [ ] Apple Developer account connected to Nativeline
* [ ] Your app with a unique Bundle ID
* [ ] App icon (1024x1024 PNG)
***
## Step 1: Create App in App Store Connect
Before uploading, your app must exist in App Store Connect.
Go to [appstoreconnect.apple.com](https://appstoreconnect.apple.com) and sign in
Click "My Apps" from the main dashboard
Click the "+" button → "New App"
* **Platform:** iOS
* **Name:** Your app's display name
* **Primary Language:** Your main language
* **Bundle ID:** Must match your Nativeline project
* **SKU:** Any unique identifier (e.g., "myapp-001")
Click "Create" to register your app
The Bundle ID must exactly match what's in your Nativeline project Settings → App Identity → Bundle Identifier.
***
## Step 2: Configure App Store Connect
### Basic Information
Once your app is created, add basic info:
1. **App Information**
* Category (e.g., Productivity, Entertainment)
* Content Rights
* Age Rating
2. **Pricing and Availability**
* Price (Free or select a price tier)
* Availability (which countries)
You don't need to complete the full App Store listing for TestFlight. Just the basics.
### Privacy Policy
Apple requires a privacy policy URL for all apps:
1. Create a privacy policy (many free generators online)
2. Host it somewhere (your website, Notion page, etc.)
3. Add the URL in App Store Connect → App Information → Privacy Policy URL
***
## Step 3: Configure TestFlight
### Navigate to TestFlight
In App Store Connect:
1. Click on your app
2. Select "TestFlight" tab
### Set Up Test Information
For external testing, you'll need:
* **Beta App Description:** What testers should know
* **Beta App Review Information:** Contact info for Apple review
* **What to Test:** Instructions for testers
### Create a Tester Group (Optional)
Organize testers into groups:
1. Click "+" next to "External Groups"
2. Name your group (e.g., "Beta Testers")
3. Add testers to this group later
***
## Step 4: Connect Nativeline to App Store Connect
### Enable App Store Connect Integration
In Nativeline:
1. Open your project
2. Click the **plane icon** (✈️) in the top-right toolbar
3. Click **Connect to App Store Connect** when prompted
4. Sign in with your Apple Developer Apple ID
5. Select your team (if multiple)
### Verify Connection
Once connected, you should see:
* Your team name
* Your app listed
* "Ready to upload" status
***
## Step 5: Prepare Your App
### Finalize Your App
Before uploading, ensure:
* [ ] App is working and tested in Simulator
* [ ] No obvious crashes or bugs
* [ ] Version number is set (e.g., 1.0.0)
* [ ] Build number is set (e.g., 1)
### Update Version Information
In Nativeline Settings → App Identity:
| Field | Description | Example |
| ------- | --------------------------- | ---------- |
| Version | User-facing version | 1.0.0 |
| Build | Increments with each upload | 1, 2, 3... |
Build numbers must always increase. If you upload build 5, your next upload must be 6 or higher.
***
## Step 6: Upload Your First Build
Click the **plane icon** (✈️) in the top-right toolbar
Confirm version, build number, and signing configuration
Click "Upload" and wait for the process to complete
App Store Connect processes your build (10-30 minutes)
***
## What Happens After Upload
### Processing
Apple processes your build:
* Validates the binary
* Checks for required assets
* Scans for issues
You'll see status in App Store Connect:
* "Processing" → Wait
* "Ready to Submit" → You can add testers
### If Processing Fails
Check for:
* Missing app icon
* Invalid provisioning
* Bundle ID mismatch
***
## Post-Setup Checklist
After completing setup:
* [ ] App exists in App Store Connect
* [ ] Bundle ID matches between Nativeline and App Store Connect
* [ ] First build uploaded and processed
* [ ] Build shows "Ready to Submit" in TestFlight tab
***
## Next Steps
Learn the upload process
Add your first testers
# Inviting Testers
Source: https://docs.nativeline.ai/publishing/testflight/testers
Share your app with beta testers
# Inviting Testers
Once your build is on TestFlight, it's time to invite testers. This guide covers both internal and external testing.
## Internal vs External Testers
| Aspect | Internal | External |
| ------------ | ------------------------------ | --------------------------- |
| Who | App Store Connect team members | Anyone with an email |
| Limit | 100 | 10,000 |
| Apple review | Not required | Required (first build only) |
| Access speed | Immediate | 24-48 hours (first time) |
***
## Internal Testers
### Who Can Be Internal Testers?
Only people who are part of your App Store Connect team with roles like:
* Admin
* App Manager
* Developer
* Marketing
### Adding Internal Testers
In App Store Connect, click "Users and Access"
Click "+" to add a new team member
* First name, last name
* Email address (must be Apple ID)
* Select role
In TestFlight tab → Internal Testing → Add the user
### Enabling for Internal Testers
1. Go to TestFlight → Internal Testing
2. Check the checkbox next to each internal tester
3. They'll receive an email invitation
Internal testers get access to builds immediately after processing. No additional review required.
***
## External Testers
### Adding Individual Testers
Select your app → TestFlight tab
Click "+" next to External Groups or select existing group
Click "+" next to Testers
Add emails one at a time or paste a list
Click "Add" to send invitations
### Using Public Links
For wider distribution, use a public link:
1. Create an external group
2. Enable "Public Link"
3. Copy and share the link
Anyone with the link can join (up to 10,000 total external testers).
Public links can be shared freely. Only use for apps you want anyone to test.
***
## External Review (First Time)
The first build for external testers requires Apple review:
### What Apple Checks
* App doesn't crash on launch
* Basic functionality works
* No obvious guideline violations
### What to Provide
* **Beta App Description:** Brief description for testers
* **Feedback Email:** Where testers send feedback
* **Contact Info:** For Apple to reach you if needed
* **Notes:** Anything Apple should know
### Review Timeline
* Usually 24-48 hours
* Can be faster or slower depending on volume
### After Approval
Subsequent builds for the same version typically don't need re-review unless:
* You significantly change the app's functionality
* You add new features that might need review
* Apple requests it
***
## Managing Tester Groups
### Creating Groups
Organize testers by purpose:
* **Friends & Family** — Close contacts for early testing
* **Power Users** — Experienced testers
* **Focus Group** — Specific demographic
* **Bug Hunters** — Technical testers
### Group Settings
Each group can have:
* Automatic distribution (new builds sent automatically)
* Specific build assignment
* Custom "What to Test" instructions
### Removing Testers
1. Go to the tester in TestFlight
2. Click "Remove" or "Delete"
3. They lose access immediately
***
## What Testers Experience
### Invitation Email
Testers receive an email from Apple with:
* App name
* Your custom message (if provided)
* "View in TestFlight" button
### Installing Your App
1. Tester downloads TestFlight app (if not already installed)
2. Clicks "Accept" on your invitation
3. Installs your app
4. App appears on home screen with orange dot
### Updates
When you upload a new build:
* Testers see "Update Available" in TestFlight
* With automatic distribution, it may auto-update
* They can always roll back to previous builds
***
## Gathering Feedback
### Built-in Feedback
Testers can:
1. Take a screenshot in your app
2. Shake device or tap TestFlight notification
3. Write feedback and send
You receive feedback in App Store Connect → TestFlight → Feedback.
### Crash Reports
When the app crashes:
* TestFlight collects crash data
* View in App Store Connect → TestFlight → Crashes
* Helps identify issues to fix
### External Feedback Channels
Consider also using:
* A feedback form in your app
* Discord or Slack channel
* Google Form or Typeform
* Direct email
***
## Best Practices
Begin with close contacts who'll give honest feedback. Expand to larger groups after fixing initial issues.
Let testers know when new builds are available and what changed. They'll test more actively if they feel involved.
Even a simple "Thanks, we're looking into it" encourages more feedback.
Tell testers what you want them to focus on. General "use the app" feedback is less actionable than specific questions.
***
## Tester Requirements
Testers need:
* iOS device (iPhone or iPad)
* iOS 13.0 or later (for TestFlight)
* TestFlight app (free from App Store)
* Apple ID
* Your invitation
Testers don't need a developer account. Just a regular Apple ID.
***
## Invitation Messages
Customize your invitation message:
### Good Invitation Example
```
Thanks for testing MyApp!
This beta version includes our new photo filters.
Please try creating a few photos and let us know
if you encounter any issues.
Focus areas:
- Photo saving
- Filter performance
- Any crashes
Send feedback directly through TestFlight or
email us at beta@myapp.com
Thanks for your help!
```
***
## Next Steps
Fix common issues
Ready for public launch
# TestFlight Troubleshooting
Source: https://docs.nativeline.ai/publishing/testflight/troubleshooting
Fix common TestFlight issues
# TestFlight Troubleshooting
Running into issues with TestFlight? Here are solutions to the most common problems.
## Upload Issues
### "Invalid Binary" Error
**Symptoms:** Upload succeeds but email says "Invalid Binary"
**Common causes and fixes:**
| Cause | Fix |
| ----------------------- | ------------------------------------------------- |
| Missing app icon | Add 1024x1024 PNG icon in Settings → App Identity |
| Wrong provisioning | Reset signing certificates in Settings → Signing |
| Duplicate build number | Increment build number and re-upload |
| Missing Info.plist keys | Let Nativeline regenerate the project |
### Upload Gets Stuck
**Symptoms:** Progress bar doesn't move for extended time
**Fixes:**
1. Wait at least 30 minutes (large apps take time)
2. Check internet connection
3. Cancel and retry
4. Try during off-peak hours
5. Restart Nativeline and try again
### "Unable to Upload"
**Symptoms:** Upload fails immediately
**Check:**
* [ ] Signed into App Store Connect in Nativeline
* [ ] Developer Program is active (not expired)
* [ ] Internet connection is stable
* [ ] App exists in App Store Connect with matching Bundle ID
***
## Processing Issues
### Stuck on "Processing"
**Symptoms:** Build shows "Processing" for hours
**Normal:** Processing can take 30 minutes to 2 hours
**If longer:**
1. Check [Apple System Status](https://developer.apple.com/system-status/)
2. Wait up to 24 hours (rare cases)
3. Upload a new build with incremented number
### "Missing Compliance"
**Symptoms:** Build processed but shows "Missing Compliance"
**Fix:**
1. In App Store Connect, click on the build
2. Answer the export compliance question
3. Typically: Yes, uses HTTPS only → Select exempt
**Permanent fix:**
Ask Nativeline:
```
Set export compliance to no custom encryption
```
This adds the key to Info.plist so you don't have to answer each time.
### "Build Invalid"
**Symptoms:** Email says build is invalid with specific error
**Common errors:**
| Error | Solution |
| ---------------------------------- | --------------------------------------------------- |
| ITMS-90683: Missing Purpose String | Add usage descriptions in Settings → Permissions |
| ITMS-90024: Info.plist error | Regenerate project files |
| ITMS-90096: Bundle ID mismatch | Match Bundle ID in Nativeline and App Store Connect |
| ITMS-90171: Invalid certificate | Reset certificates in Settings → Signing |
***
## Tester Issues
### "Unable to Accept Invitation"
**Symptoms:** Tester can't accept the TestFlight invitation
**Fixes:**
1. Ensure tester has TestFlight app installed
2. Tester should update iOS to latest version
3. Have them check spam folder for invitation
4. Resend the invitation
5. Try adding them to a different group
### "App Not Installing"
**Symptoms:** Tester accepts but app won't install
**Fixes:**
1. Check if device meets minimum iOS version
2. Ensure enough storage space on device
3. Have tester restart TestFlight app
4. Remove and re-add tester
### "Cannot See New Build"
**Symptoms:** You uploaded a new build but testers don't see it
**Check:**
1. Build finished processing (not still in "Processing")
2. Build is added to tester's group
3. Automatic distribution is enabled for the group
4. Tester should manually refresh TestFlight app
### Invitation Emails Not Arriving
**Symptoms:** Testers never receive invitation
**Fixes:**
1. Check spam/junk folders
2. Verify email address is correct
3. Try a different email address
4. Apple's email can be slow — wait 30 minutes
5. Use public link instead
***
## External Review Issues
### Review Taking Too Long
**Symptoms:** External review takes more than 48 hours
**Normal:** First reviews can take 24-48 hours, sometimes longer
**Options:**
1. Wait — most clear within 72 hours
2. Check for emails from Apple requesting info
3. Contact Apple Developer Support if urgent
### Review Rejected
**Symptoms:** External review was rejected
**Common reasons:**
* App crashes on launch
* Missing required functionality
* Privacy policy issues
* Placeholder content
**Fix:**
1. Read the rejection reason carefully
2. Fix the issues
3. Upload new build with incremented number
4. Submit for review again
***
## App Crashes for Testers
### Gathering Information
When testers report crashes:
1. **Check TestFlight Crashes**
* App Store Connect → TestFlight → Crashes
* View crash logs and frequency
2. **Ask Testers for Details**
* What were they doing?
* What device/iOS version?
* Does it happen every time?
3. **Review Console Logs** (Pro feature)
* Open Code Editor in Nativeline
* Check Logs tab for error messages
### Common Crash Causes
| Symptom | Likely Cause | Fix |
| --------------------------- | -------------------------------- | ---------------------------- |
| Crashes on launch | Missing permission or capability | Add required permissions |
| Crashes when tapping button | Nil pointer or missing data | Add nil checks |
| Crashes with specific data | Edge case | Handle the specific scenario |
| Crashes on old iOS | API compatibility | Check minimum iOS version |
***
## Build Expiration
### Builds About to Expire
**Symptoms:** 90-day limit approaching
**Fix:**
Upload a new build before expiration. Testers will be notified to update.
### Build Already Expired
**Symptoms:** Testers can't use the app anymore
**Fix:**
Upload a new build immediately. Testers need to update through TestFlight.
***
## Certificate Issues
### "No Valid Signing Certificate"
**Symptoms:** Can't create a distribution build
**Fixes:**
1. Go to Settings → Signing
2. Click "Reset Certificates"
3. Let Nativeline create new ones
4. Try uploading again
### "Provisioning Profile Expired"
**Symptoms:** Build fails due to profile issues
**Fixes:**
1. Reset signing in Nativeline Settings
2. Ensure Developer Program is active (not expired)
3. Regenerate profiles in Apple Developer portal if using manual signing
***
## Quick Fixes Checklist
When things aren't working:
* [ ] Developer Program is active and not expired
* [ ] Signed into correct Apple ID in Nativeline
* [ ] Bundle ID matches between Nativeline and App Store Connect
* [ ] Build number is higher than all previous builds
* [ ] App icon is present (1024x1024 PNG)
* [ ] Internet connection is stable
* [ ] Apple's systems are operational (check system status)
***
## Getting More Help
### Check Apple's System Status
[developer.apple.com/system-status](https://developer.apple.com/system-status/)
Outages affect:
* App Store Connect
* TestFlight
* Certificate services
### Contact Apple Developer Support
1. Go to [developer.apple.com/contact](https://developer.apple.com/contact)
2. Select "App Store Connect & TestFlight"
3. Describe your issue
4. Attach screenshots if relevant
***
## Next Steps
Ready for public launch
Fix signing issues
# Uploading Builds
Source: https://docs.nativeline.ai/publishing/testflight/uploading
Get your app builds to TestFlight
# Uploading Builds
Once TestFlight is set up, uploading new builds is straightforward. This guide covers the upload process and what to expect.
## Before Uploading
### Increment Build Number
Each upload requires a unique build number:
```
Settings → App Identity → Build Number
```
Build numbers must always increase:
* Build 1 → Build 2 → Build 3
* Can skip numbers (1 → 5 is fine)
* Cannot reuse numbers
### Version vs Build Number
| Field | What It Is | When to Change |
| ------- | --------------------- | --------------------------- |
| Version | User-facing (1.0.0) | New features, major updates |
| Build | Internal (1, 2, 3...) | Every upload |
Example progression:
```
Version 1.0.0, Build 1 → First TestFlight upload
Version 1.0.0, Build 2 → Bug fix
Version 1.0.0, Build 3 → Another fix
Version 1.1.0, Build 4 → New feature (version bumped)
```
***
## Uploading from Nativeline
Run in Simulator first to catch obvious issues
Settings → App Identity → Build Number
Click the **plane icon** (✈️) in the top-right toolbar to start the TestFlight upload
Nativeline creates a release build (may take several minutes)
Binary uploads to App Store Connect
You'll see a confirmation when complete
***
## Upload Progress
During upload, you'll see:
1. **Building** — Creating release binary
2. **Signing** — Applying distribution certificate
3. **Uploading** — Sending to Apple servers
4. **Processing** — Apple validating (this happens in App Store Connect)
***
## After Upload
### Immediate
* Build appears in App Store Connect under TestFlight tab
* Status shows "Processing"
### Processing Time
* Usually 10-30 minutes
* Can take longer during busy periods
* You'll get an email when processing completes
### Processing Status
| Status | Meaning |
| ------------------ | -------------------------------- |
| Processing | Apple is validating your build |
| Ready to Submit | Can be sent to testers |
| Missing Compliance | Need to answer export compliance |
| Invalid Binary | There's an issue (check email) |
***
## Export Compliance
After processing, you'll need to answer export compliance:
**Question:** Does your app use encryption?
**Common Answer:** If your app only uses HTTPS (most apps):
* Select "Yes"
* Confirm it only uses HTTPS or other exempt encryption
* Save
Standard HTTPS for API calls is exempt. If you're not implementing custom encryption, you're likely exempt.
To avoid answering each time, add to your Info.plist:
```
ITSAppUsesNonExemptEncryption: NO
```
Nativeline can set this for you:
```
Set export compliance to no custom encryption
```
***
## Automatic Distribution
Once a build is processed, you can enable automatic distribution to testers:
1. In App Store Connect → TestFlight
2. Select your tester group
3. Enable "Automatic Distribution"
4. New builds are automatically sent to that group
***
## Multiple Builds
You can have multiple builds available:
### Managing Builds
* Expire old builds manually
* Add notes to builds for tracking
* Enable/disable builds for specific groups
### Best Practice
* Keep recent builds active
* Expire very old builds to avoid confusion
* Use build notes to track what changed
***
## Build Notes
Add notes to help testers know what changed:
1. In App Store Connect → TestFlight → select build
2. Click "Test Details"
3. Add "What to Test" notes
Example:
```
What to Test:
- New photo filter feature
- Fixed crash when saving
- Please test on both WiFi and cellular
```
***
## Upload Tips
Large apps take time. The progress bar may seem stuck during actual file transfer. Wait at least 30 minutes before troubleshooting.
Uploads require consistent internet. If connection drops, you'll need to restart the upload.
Building and uploading uses significant RAM and CPU. Close other intensive apps for faster uploads.
Apple's servers are faster during off-peak hours. Early morning or late night uploads often process faster.
***
## Common Upload Issues
### "Invalid Binary"
**Cause:** Something is wrong with the build
**Check:**
* Email from Apple with specific error
* Common issues: missing icon, wrong provisioning, invalid entitlements
### "Processing Failed"
**Cause:** Apple couldn't process the build
**Fix:**
* Increment build number
* Upload again
* If persists, check Apple System Status
### "Upload Failed"
**Cause:** Network or authentication issue
**Fix:**
* Check internet connection
* Re-authenticate with App Store Connect in Nativeline
* Try again
***
## Next Steps
Share with your testers
Fix upload issues
# Notes App Tutorial
Source: https://docs.nativeline.ai/quick-start/notes-app
Build a notes app with Supabase cloud sync
# Notes App Tutorial
**⏱️ 45 minutes**
Build a notes app with user accounts and cloud synchronization. You'll learn about authentication, cloud databases, and real-time sync using Supabase.
## What You'll Build
A notes app that:
* Has user sign up and login
* Creates, edits, and deletes notes
* Syncs notes to the cloud
* Works across devices (same account = same notes)
***
## Before You Start
This tutorial requires a Supabase account (free tier available).
### Set Up Supabase
1. Go to [supabase.com](https://supabase.com) and create a free account
2. Create a new project (any name, choose a region near you)
3. Wait for the project to initialize (\~2 minutes)
4. Note your project URL and anon key (Settings → API)
Keep the Supabase dashboard open — you'll need it throughout this tutorial.
***
## Part 1: Create the App
On the Nativeline home page, enter:
```
A notes app with user authentication. Users can sign up with email/password, log in, and create personal notes. Notes sync to Supabase cloud database so they're available on any device.
```
### Complete the Wizard
* **Who is this for?** — Anyone (public app)
* **Feel** — Simple & clean
* **Priority** — Core functionality first
* **Colors** — Your choice
* **Name** — Cloud Notes
***
## Part 2: Connect Supabase
Tell Nativeline about your Supabase project:
```
Connect to my Supabase project:
- URL: YOUR_SUPABASE_URL
- Anon Key: YOUR_ANON_KEY
Set up authentication with email/password sign up and login.
```
Replace `YOUR_SUPABASE_URL` and `YOUR_ANON_KEY` with your actual values from the Supabase dashboard.
The anon key is safe to include in apps — it only allows operations that your Row Level Security policies permit. Never share your service\_role key.
***
## Part 3: Create the Notes Table
We need a database table to store notes. In your Supabase dashboard:
1. Go to **Table Editor**
2. Click **Create a new table**
3. Name: `notes`
4. Add columns:
* `id` (uuid, primary key) — auto-generated
* `user_id` (uuid, not null) — links to auth.users
* `title` (text)
* `content` (text)
* `created_at` (timestamptz, default: now())
* `updated_at` (timestamptz, default: now())
5. Enable Row Level Security (RLS)
### Add RLS Policies
In the Supabase dashboard, go to Authentication → Policies and add:
**Select policy (users can read their own notes):**
```sql theme={null}
CREATE POLICY "Users can view own notes" ON notes
FOR SELECT USING (auth.uid() = user_id);
```
**Insert policy (users can create notes):**
```sql theme={null}
CREATE POLICY "Users can create own notes" ON notes
FOR INSERT WITH CHECK (auth.uid() = user_id);
```
**Update policy (users can edit their own notes):**
```sql theme={null}
CREATE POLICY "Users can update own notes" ON notes
FOR UPDATE USING (auth.uid() = user_id);
```
**Delete policy (users can delete their own notes):**
```sql theme={null}
CREATE POLICY "Users can delete own notes" ON notes
FOR DELETE USING (auth.uid() = user_id);
```
Now tell Nativeline:
```
I've created a 'notes' table in Supabase with columns: id (uuid), user_id (uuid), title (text), content (text), created_at, updated_at. I've enabled RLS so users can only access their own notes.
```
***
## Part 4: Build the Auth Flow
Let's create the login and signup screens:
```
Create authentication screens:
- A welcome screen with "Sign Up" and "Log In" buttons
- Sign up form with email, password, and confirm password
- Log in form with email and password
- Show loading state during authentication
- Handle errors with user-friendly messages
```
Test the flow:
1. Try signing up with an email
2. You should be logged in and see the notes list
3. Log out and try logging back in
***
## Part 5: Build the Notes List
Create the main notes interface:
```
After login, show a list of the user's notes:
- Each note shows title and preview of content
- Tap a note to open and edit it
- Floating "+" button to create new note
- Pull to refresh to sync with cloud
- Show "No notes yet" when empty
```
***
## Part 6: Create Note Editor
Build the editing experience:
```
Create a note editor screen:
- Large title field at top
- Text area for note content below
- Auto-save as the user types (debounced)
- Show "Saving..." indicator when syncing
- Back button to return to list
```
***
## Part 7: Add Note Deletion
Let users delete notes:
```
Add swipe-to-delete on notes in the list. Show a confirmation alert before deleting. Delete from both local state and Supabase.
```
***
## Part 8: Add Real-time Sync
Make notes update in real-time:
```
Subscribe to Supabase real-time updates for the notes table. When notes are added, updated, or deleted on another device, reflect those changes immediately in the app.
```
Test this by:
1. Opening your Supabase dashboard → Table Editor → notes
2. Editing a note directly in Supabase
3. Watching it update in the app
***
## Part 9: Add Search
Help users find notes:
```
Add a search bar at the top of the notes list. Filter notes by title and content as the user types. Show "No results" when nothing matches.
```
***
## Part 10: Polish the Design
Make it look professional:
```
Polish the notes app:
- Notes list items have a subtle shadow and rounded corners
- Title uses a bold, larger font
- Show relative timestamps ("2 hours ago", "Yesterday")
- Add a profile button that shows email and logout option
- Use a consistent color scheme throughout
```
***
## Final Result
You now have a cloud-synced notes app with:
* ✅ User registration and login
* ✅ Create, read, update, delete notes
* ✅ Cloud sync via Supabase
* ✅ Real-time updates
* ✅ Search functionality
* ✅ Polished UI
***
## What You Learned
| Concept | How It Was Used |
| ---------------------- | ------------------------------- |
| **Authentication** | Email/password signup and login |
| **Database** | Supabase tables and queries |
| **Row Level Security** | Protecting user data |
| **Real-time** | Live sync between devices |
| **CRUD Operations** | Create, read, update, delete |
| **State Management** | Auth state and data sync |
***
## Troubleshooting
* Double-check your project URL (ends in .supabase.co)
* Make sure you're using the anon key, not the service\_role key
* Check if your Supabase project is still initializing
* Check Supabase Authentication → Users to see if user was created
* Check if email confirmation is required (Authentication → Settings)
* For testing, you can disable email confirmation
* Check Supabase Table Editor for errors
* Verify RLS policies are set correctly
* Make sure user\_id is being set when creating notes
* Real-time requires Supabase Realtime to be enabled (it's on by default)
* Check the browser console in Supabase for errors
* Try refreshing the app
Your RLS policies might be incorrect. In Supabase:
1. Go to Authentication → Policies
2. Verify each policy uses `auth.uid() = user_id`
3. Make sure RLS is enabled on the table
***
## Understanding the Architecture
```
┌─────────────────┐ ┌─────────────────┐
│ │ │ │
│ Your App │ ◄─────► │ Supabase │
│ (iOS) │ API │ (Cloud) │
│ │ │ │
└─────────────────┘ └─────────────────┘
│
┌───────────────┼───────────────┐
│ │ │
▼ ▼ ▼
┌─────────┐ ┌───────────┐ ┌──────────┐
│ Auth │ │ Database │ │ Realtime │
│ (Users) │ │ (Notes) │ │ (Sync) │
└─────────┘ └───────────┘ └──────────┘
```
***
## Challenge: Extend Your App
Try these on your own:
1. **Rich text** — Add formatting (bold, italic, lists)
2. **Folders** — Organize notes into folders
3. **Sharing** — Share notes with other users
4. **Markdown** — Support markdown preview
5. **Offline mode** — Work offline and sync when back online
6. **Attachments** — Add images to notes using Supabase Storage
***
## Next Steps
Learn more about Supabase integration
Share your app with real users
# Quick Start Overview
Source: https://docs.nativeline.ai/quick-start/overview
Learn to build iPhone, iPad, and Mac apps through hands-on tutorials
# Quick Start
The best way to learn Nativeline is by building. These tutorials walk you through creating real apps — from simple to sophisticated.
## Choose Your Tutorial
**⏱️ 10 minutes**
Create your first iOS app. Learn the basics: describing your idea, using the wizard, and making changes.
*Perfect for: Complete beginners*
**⏱️ 15 minutes**
Build an iPad app with sidebar navigation. Learn to take advantage of the larger screen with split-view layouts.
*Perfect for: Building iPad-specific apps*
**⏱️ 15 minutes**
Build a native Mac app that runs on your desktop. Learn macOS patterns like keyboard shortcuts and menu bars.
*Perfect for: Building native Mac apps*
**⏱️ 30 minutes**
Build a task manager with local storage. Learn to add items, complete them, and persist data.
*Perfect for: Learning CRUD operations*
**⏱️ 45 minutes**
Build a weather app with live data. Learn to work with APIs, location, and real-time updates.
*Perfect for: Learning API integration*
**⏱️ 30 minutes**
Build a photo gallery with camera access. Learn to capture photos and browse your library.
*Perfect for: Learning device features*
**⏱️ 45 minutes**
Build a notes app with cloud sync. Learn to integrate Supabase for authentication and storage.
*Perfect for: Learning cloud integration*
***
## Learning Path
### If You're Brand New
Start here and work your way through:
1. **[Your First App](/quick-start/your-first-app)** — Learn the basics
2. **[Your First iPad App](/quick-start/your-first-ipad-app)** — Build for iPad
3. **[Your First Mac App](/quick-start/your-first-mac-app)** — Build for Mac
4. **[Todo App](/quick-start/todo-app)** — Understand data and storage
5. Choose your interest: Photos, Weather, or Notes
### If You Want Cloud Features
Jump to the Notes App tutorial to learn Supabase integration, then apply those concepts to your own ideas.
### If You're a Visual Learner
Start with the Photo Gallery — it's visual, interactive, and you'll see results immediately.
***
## What You'll Learn
Each tutorial teaches specific skills:
| Tutorial | You'll Learn |
| ------------------- | -------------------------------------------------- |
| Your First App | Wizard, chat interface, basic prompts |
| Your First iPad App | iPad layouts, sidebar navigation, split views |
| Your First Mac App | macOS patterns, keyboard shortcuts, native windows |
| Todo App | Lists, forms, local storage, state management |
| Weather App | API calls, location services, data display |
| Photo Gallery | Camera access, photo library, image display |
| Notes App | Authentication, cloud database, real-time sync |
***
## Before You Start
Make sure you have:
[Download and install](/introduction/installation) if you haven't already
[Create an account](/introduction/account-setup) to save your projects
***
## Tips for Success
Begin with basic functionality. Once it works, add features one at a time. This approach uses fewer bits and creates more stable apps.
Instead of "make it look better," say "add 16pt padding and rounded corners to the cards." Specific requests get better results and use fewer bits.
After each change, interact with your app in the Simulator. Catching issues early is easier than fixing them later.
Watch the code previews and tool cards to understand what the AI is building. If something seems wrong, you can give feedback or use `/planclear` to start fresh.
Your first version won't be perfect — and that's fine! Building apps is iterative. Keep refining until you're happy.
***
## Ready to Build?
Create your first iPhone, iPad, or Mac app in minutes — no coding required
# Photo Gallery Tutorial
Source: https://docs.nativeline.ai/quick-start/photo-gallery
Build a photo gallery with camera access
# Photo Gallery Tutorial
**⏱️ 30 minutes**
Build a photo gallery app that captures photos and displays them beautifully. You'll learn about camera access, photo library permissions, and image handling.
## What You'll Build
A photo gallery app that:
* Takes photos with the camera
* Selects photos from the library
* Displays photos in a grid
* Opens photos in full screen
* Saves photos locally
***
## Part 1: Create the App
On the Nativeline home page, enter:
```
A photo gallery app where I can take photos with the camera or choose from my photo library. Display all photos in a grid, and tap to view full screen.
```
### Complete the Wizard
* **Who is this for?** — Just me
* **Feel** — Modern & polished
* **Priority** — Core functionality first
* **Colors** — Any palette (photos will be the focus)
* **Name** — Photo Gallery
Wait for the build to complete.
***
## Part 2: Set Up Permissions
Photos and camera require permissions. Let's make sure they're configured:
```
Make sure the app requests camera and photo library permissions when needed. Add appropriate permission descriptions explaining why we need access.
```
The app should now request permissions when you try to take or select photos.
In the Simulator, you can't use the actual camera, but you can select from the photo library. The camera will work on a real device via TestFlight.
***
## Part 3: Improve the Photo Grid
Let's make the gallery look professional:
```
Display photos in a 3-column grid with small gaps between photos. Photos should be square and fill the screen edge-to-edge. Add a subtle animation when new photos are added.
```
***
## Part 4: Add Photo Buttons
Make it easy to add photos:
```
Add a floating "+" button in the bottom right corner. When tapped, show an action sheet with two options:
- "Take Photo" (opens camera)
- "Choose from Library" (opens photo picker)
```
***
## Part 5: Add Full Screen View
Let users view photos in detail:
```
When I tap a photo in the grid, open it full screen with:
- Black background
- Photo fills the width, centered vertically
- Pinch to zoom
- Swipe left/right to see other photos
- X button to close
```
***
## Part 6: Add Photo Deletion
Let users remove photos:
```
In the full screen view, add a trash button that deletes the photo after confirming. Show an alert asking "Delete this photo?" with Cancel and Delete options.
```
***
## Part 7: Make Photos Persistent
Save photos so they survive app restarts:
```
Save all photos locally so they persist when the app is closed and reopened. Store them in the app's documents directory.
```
Test persistence:
1. Add a few photos
2. Close and reopen the app
3. Photos should still be there
***
## Part 8: Add Empty State
Handle the case when there are no photos:
```
When the gallery is empty, show a friendly message:
- A camera icon
- "No photos yet"
- "Tap + to add your first photo"
```
***
## Part 9: Add Photo Info (Optional)
Show metadata for each photo:
```
In the full screen view, add an info button that shows:
- Date photo was added
- Photo dimensions
- File size
```
***
## Part 10: Add Albums (Optional)
Organize photos into albums:
```
Add the ability to create albums:
- Tab bar with "All Photos" and "Albums"
- Albums tab shows list of albums
- Tap to create new album with a name
- Long press photos in grid to select and add to album
```
***
## Part 11: Add Photo Editing (Optional)
Basic photo editing:
```
In full screen view, add an edit button that opens editing options:
- Rotate left/right
- Crop to square
- Apply filters (black & white, sepia, vivid)
Save edits back to the photo.
```
***
## Final Result
You now have a complete photo gallery with:
* ✅ Camera capture
* ✅ Photo library selection
* ✅ Grid display
* ✅ Full screen viewing with zoom
* ✅ Photo deletion
* ✅ Local persistence
* ✅ Empty state
* ✅ (Optional) Photo info
* ✅ (Optional) Albums
* ✅ (Optional) Editing
***
## What You Learned
| Concept | How It Was Used |
| ----------------- | ---------------------------- |
| **Camera** | Capturing photos |
| **Photo Picker** | Selecting from library |
| **Permissions** | Camera & photo access |
| **Grids** | Displaying images in columns |
| **Gestures** | Pinch to zoom, swipe |
| **File Storage** | Saving images locally |
| **Action Sheets** | Option menus |
***
## Testing Tips
### In the Simulator
The Simulator doesn't have a real camera, but you can:
* Select from the sample photo library
* Drag images from your Mac onto the Simulator to add them to the library
### On a Real Device
To test the camera, you'll need to:
1. Deploy to TestFlight (see [Publishing](/publishing/overview))
2. Install on your iPhone
3. Test camera functionality there
***
## Troubleshooting
The Simulator can't access a real camera. The camera option will work when you test on a real device. For now, use "Choose from Library" instead.
Add sample photos to the Simulator:
* Drag images from Finder onto the Simulator window
* They'll be saved to the photo library
Make sure you asked for local persistence:
"Save photos to the app's documents directory so they persist"
Specify exact layout:
"Use a LazyVGrid with 3 flexible columns and 2pt spacing"
Reset permissions in Simulator:
Device → Erase All Content and Settings
***
## Challenge: Extend Your App
Try these on your own:
1. **Sharing** — Share photos to other apps
2. **Favorites** — Mark photos as favorites with a heart
3. **Search by date** — Filter photos by when they were taken
4. **Slideshow** — Auto-play through photos
5. **Cloud backup** — Sync to Supabase storage
***
## Next Tutorial
Learn cloud sync with Supabase
Learn API integration
# Todo App Tutorial
Source: https://docs.nativeline.ai/quick-start/todo-app
Build a task manager with local storage
# Todo App Tutorial
**⏱️ 30 minutes**
Build a complete task manager with adding, completing, and persisting tasks. You'll learn about lists, forms, state management, and local data storage.
## What You'll Build
A todo app that:
* Shows a list of tasks
* Lets you add new tasks
* Mark tasks as complete
* Delete tasks
* Saves everything locally (persists between app launches)
***
## Part 1: Create the App
### Start a New Project
On the Nativeline home page, enter this description:
```
A todo list app where I can add tasks, mark them complete with a checkbox, and delete them. Tasks should be saved so they're still there when I reopen the app.
```
### Complete the Wizard
* **Who is this for?** — Just me
* **Feel** — Simple & clean
* **Priority** — Core functionality first
* **Colors** — Choose any palette
* **Name** — Todo List
Wait for the initial build to complete.
***
## Part 2: Review What You Have
Your app should have:
* A list view (possibly empty)
* A way to add tasks
* Basic styling
Explore the Simulator. Try adding a task if the UI is ready.
The initial version might not be exactly what you imagined. That's normal! We'll refine it step by step.
***
## Part 3: Add Task Input
If your app doesn't have a good way to add tasks, let's improve it:
```
Add a text field at the top with a placeholder "Add a new task..." and an "Add" button next to it. When I tap Add or press return, it should add the task to the list and clear the text field.
```
Test it:
1. Type a task
2. Tap Add
3. See it appear in the list
***
## Part 4: Add Checkboxes
Let's add the ability to complete tasks:
```
Add a checkbox circle to the left of each task. When I tap it, the checkbox fills in and the task text gets a strikethrough. Completed tasks should stay in the list but look different.
```
Test completing a few tasks. They should visually change to show they're done.
***
## Part 5: Add Delete Functionality
Now let's add the ability to remove tasks:
```
Add swipe-to-delete on each task. When I swipe left, show a red Delete button. Tapping it removes the task from the list.
```
Alternatively, you could ask for a delete button:
```
Add a trash icon button on the right side of each task that deletes it when tapped.
```
Test deleting a task.
***
## Part 6: Make It Persistent
Right now, tasks disappear when you close the app. Let's fix that:
```
Save all tasks locally using SwiftData so they persist between app launches. Tasks should be there when I close and reopen the app.
```
Test persistence:
1. Add a few tasks
2. Press Cmd+Shift+H to go to home screen in Simulator
3. Reopen the app
4. Your tasks should still be there!
***
## Part 7: Polish the Design
Let's make it look professional:
```
Polish the design:
- Add padding around the list
- Make task rows have a white background with rounded corners and subtle shadow
- Add a header that says "My Tasks" in large bold text
- Show a count of incomplete tasks under the header like "3 tasks remaining"
```
***
## Part 8: Add Task Details (Optional)
Want to go further? Add due dates:
```
Add optional due dates to tasks:
- Tap a task to open a detail view
- In the detail view, show a date picker to set a due date
- Display the due date under the task title in the list
- Show overdue tasks in red
```
***
## Part 9: Add Categories (Optional)
Organize tasks with categories:
```
Add categories to tasks:
- Categories: Work, Personal, Shopping, Other
- Show a small colored dot next to each task indicating its category
- Add a filter at the top to show only tasks from a specific category
```
***
## Final Result
You now have a fully functional todo app with:
* ✅ Task creation
* ✅ Completion with visual feedback
* ✅ Deletion
* ✅ Local persistence
* ✅ Polished design
* ✅ (Optional) Due dates
* ✅ (Optional) Categories
***
## What You Learned
This tutorial taught you:
| Concept | How It Was Used |
| --------------- | -------------------------------- |
| **Lists** | Displaying multiple tasks |
| **Forms** | Text field for input |
| **State** | Tracking completion status |
| **Persistence** | Saving with SwiftData |
| **Gestures** | Swipe to delete |
| **Styling** | Shadows, rounded corners, colors |
***
## Tips & Troubleshooting
Make sure you asked for SwiftData or local persistence. Try:
"Save tasks using SwiftData so they persist when the app is closed"
Some implementations might not have swipe. You can ask:
"Use the standard iOS swipe-to-delete gesture on the list"
Ask for more spacing:
"Add 16pt padding around the list and 12pt spacing between tasks"
Add editing functionality:
"Let me tap a task to edit its title in a sheet"
***
## Challenge: Extend Your App
Try adding these features on your own:
1. **Search** — Add a search bar to filter tasks
2. **Priority levels** — High, Medium, Low with colors
3. **Sorting** — Sort by date, priority, or alphabetically
4. **Statistics** — Show how many tasks you've completed this week
5. **Themes** — Let users choose between light and dark mode
***
## Next Tutorial
Learn to work with APIs and location
Learn to use camera and photo library
# Weather App Tutorial
Source: https://docs.nativeline.ai/quick-start/weather-app
Build a weather app with live data and location
# Weather App Tutorial
**⏱️ 45 minutes**
Build a weather app that shows current conditions and forecasts. You'll learn about API integration, location services, and displaying real-time data.
## What You'll Build
A weather app that:
* Shows current weather for your location
* Displays temperature, conditions, and other details
* Shows a multi-day forecast
* Lets you search for other cities
***
## Before You Start
This tutorial uses a weather API to get real data. You have two options:
### Option A: Use WeatherKit (Recommended)
Apple's built-in weather service. No API key needed, but requires iOS 16+ and works automatically.
### Option B: Use OpenWeather API
Free tier available at [openweathermap.org](https://openweathermap.org/api). Requires creating an account and getting an API key.
For this tutorial, we'll use **WeatherKit** since it's simpler.
***
## Part 1: Create the App
On the Nativeline home page, enter:
```
A weather app that shows the current weather for my location. Display temperature, weather condition (sunny, cloudy, etc.), and a 5-day forecast. Use Apple's WeatherKit.
```
### Complete the Wizard
* **Who is this for?** — Just me
* **Feel** — Modern & polished
* **Priority** — Core functionality first
* **Colors** — Ocean Blues (or your choice)
* **Name** — Weather
Wait for the build to complete.
***
## Part 2: Set Up Location Permission
Your app needs permission to access location. Nativeline should have set this up, but let's verify:
```
Make sure the app requests location permission when it first opens. Show a loading state while getting weather data.
```
When you run the app in the Simulator:
1. You'll see a permission popup for location
2. Tap "Allow While Using App"
3. The app should fetch weather for the Simulator's default location
To change the Simulator's location: Features → Location → Custom Location (or choose a city)
***
## Part 3: Improve the Current Weather Display
Let's make the current weather look better:
```
Redesign the current weather section:
- Large temperature display (72°F format)
- Weather condition icon (sun, cloud, rain, etc.)
- Condition text (Partly Cloudy)
- High/low temperatures for today
- "Feels like" temperature
- Location name at the top
```
Your main weather display should now be informative and visually clear.
***
## Part 4: Add Weather Details
Add more weather information:
```
Below the main temperature, add a horizontal row of weather details:
- Humidity percentage
- Wind speed and direction
- UV index
- Visibility
Use icons for each and show the value below.
```
***
## Part 5: Improve the Forecast
Let's enhance the 5-day forecast:
```
Show the 5-day forecast as horizontal scrolling cards:
- Each card shows the day name, weather icon, and high/low temps
- Use a slightly different background for each card
- Make today's card highlighted
```
Or for a different layout:
```
Show the 5-day forecast as a vertical list:
- Day of week on the left
- Weather icon in the middle
- High temp / low temp on the right
- Alternating row backgrounds
```
***
## Part 6: Add City Search
Let users check weather for other cities:
```
Add a search bar at the top that lets me search for cities. When I tap a city from the search results, show the weather for that location instead of my current location.
```
Test searching for cities like "New York," "London," or "Tokyo."
***
## Part 7: Add Pull to Refresh
Let users manually refresh the weather:
```
Add pull-to-refresh to update the weather data. Show a loading indicator while refreshing.
```
Pull down in the Simulator to test it.
***
## Part 8: Add Background Based on Weather
Make it visually dynamic:
```
Change the background gradient based on the current weather:
- Sunny: Yellow to blue gradient
- Cloudy: Gray gradient
- Rainy: Dark blue to gray
- Night: Dark purple to black
Also adjust text colors for readability.
```
***
## Part 9: Add Hourly Forecast (Optional)
Show hour-by-hour weather:
```
Add an hourly forecast section between current weather and daily forecast. Show the next 12 hours as a horizontal scrolling row with:
- Hour (3 PM)
- Small weather icon
- Temperature
```
***
## Part 10: Add Weather Alerts (Optional)
Display severe weather warnings:
```
If there are any weather alerts for the current location, show a warning banner at the top with the alert type and a button to read more details.
```
***
## Final Result
You now have a complete weather app with:
* ✅ Current location weather
* ✅ Temperature and conditions
* ✅ 5-day forecast
* ✅ Weather details (humidity, wind, etc.)
* ✅ City search
* ✅ Pull to refresh
* ✅ Dynamic backgrounds
* ✅ (Optional) Hourly forecast
* ✅ (Optional) Weather alerts
***
## What You Learned
| Concept | How It Was Used |
| --------------- | ------------------------------------- |
| **APIs** | Fetching weather data from WeatherKit |
| **Location** | Getting device coordinates |
| **Permissions** | Requesting location access |
| **Async data** | Loading states and refreshing |
| **Search** | City lookup and selection |
| **Dynamic UI** | Backgrounds based on conditions |
***
## Using OpenWeather API Instead
If you prefer OpenWeather (or WeatherKit isn't working):
1. Sign up at [openweathermap.org](https://openweathermap.org)
2. Get your free API key
3. Tell Nativeline:
```
Use the OpenWeather API instead of WeatherKit. My API key is YOUR_KEY_HERE. Use the One Call API 3.0 endpoint for current weather and forecasts.
```
Never share your API key publicly. For a real app, you'd store this securely.
***
## Troubleshooting
* Make sure location permission is granted
* Check that you're connected to the internet
* Try the Simulator's Features → Location menu
* Try asking: "Show a mock weather display with sample data to test the UI"
The permission popup only shows once. To reset:
* Simulator → Device → Erase All Content and Settings
* Or ask: "Make sure we request location permission with a usage description"
"Use Apple's MapKit geocoding to search for cities by name"
WeatherKit requires iOS 16+. Make sure your Simulator is running iOS 16 or later, or switch to OpenWeather API.
***
## Challenge: Extend Your App
Try these on your own:
1. **Widgets** — Create a home screen widget (advanced)
2. **Favorites** — Save favorite cities
3. **Notifications** — Alert when rain is expected
4. **Units toggle** — Switch between °F and °C
5. **Radar map** — Show weather radar for your area
***
## Next Tutorial
Learn to use camera and photo library
Learn cloud sync with Supabase
# Your First App
Source: https://docs.nativeline.ai/quick-start/your-first-app
Build your first iOS app in 10 minutes
# Your First App
**⏱️ 10 minutes**
Let's build something! This tutorial walks you through creating your first iOS app with Nativeline. You'll go from idea to working app in the iOS Simulator in just minutes.
## What You'll Build
A simple counter app that:
* Shows a number
* Has buttons to increment and decrement
* Remembers the count
Simple, but you'll learn everything you need to build more complex apps.
***
## Step 1: Create a New App
Open Nativeline. On the Home Page, select **iPhone** from the platform selector. You'll see:
> **"Tell me about the app you're imagining..."**
Type your app description. For this tutorial, enter:
```
A simple counter app with a big number display and plus/minus buttons
```
Click **Create** or press Enter.
Enhanced mode is selected by default, which is great for most projects.
In real projects, be more detailed. But for learning, simple works great!
***
## Step 2: Complete the Wizard
Nativeline's wizard helps customize your app with a few quick questions:
### What feel do you want?
Choose **Simple & clean** — minimalist works well for a counter.
### Similar apps?
You can skip this or type "like Apple's calculator" for inspiration.
### Pick colors
Choose any palette you like. You can use the color wheel generator to create a custom palette, pick from presets, or let the AI generate one for you.
### Name your app
Enter: **Counter**
Click **Create App** to continue.
***
## Step 3: Watch It Build
Nativeline now creates your app:
1. **Setting up the project** — Creating the Xcode structure
2. **Writing the code** — Generating Swift/SwiftUI
3. **Building** — Compiling everything
This takes 30-60 seconds. You'll see a progress animation.
First build takes longer because Xcode needs to compile the entire project. Future builds are much faster.
***
## Step 4: Explore Your Workspace
Once complete, you'll see the main workspace:
### Left Side: Chat Interface
* **Your messages** — What you ask for
* **AI responses** — What the AI is doing
* **Tool cards** — Files being created/edited
* **Todo list** — Current tasks
### Right Side: Embedded Simulator
Your app running on a virtual iPhone, embedded directly in the Nativeline workspace. You can interact with it just like a real phone — tap, scroll, and swipe right inside the app.
Try tapping the buttons in your counter app!
***
## Step 5: Make Your First Change
Let's customize the app. In the chat, type:
```
Make the number display larger and use a bold font
```
Watch the AI:
1. **Plan** the change
2. **Edit** the code
3. **Rebuild** the app
4. **Show** the result
Your counter now has a bigger number!
***
## Step 6: Add a Feature
Let's add something new. Type:
```
Add a reset button that sets the count back to zero
```
The AI will:
1. Create the button
2. Add the reset logic
3. Position it appropriately
Test it — tap reset and watch the count go to zero.
***
## Step 7: Polish the Design
Let's make it look better. Type:
```
Style the buttons with rounded corners, a blue background, and white text. Add some spacing between them.
```
Now you have a polished counter app!
***
## Experiment Further
Try these prompts to explore more:
"Change the plus button to green and minus to red"
"Add a subtle scale animation when the number changes"
"Save the count so it persists when I close and reopen the app"
"Don't let the count go above 100 or below 0"
"Play a click sound when buttons are tapped"
***
## What You Learned
Congratulations! You just:
* ✅ Created an app from a description
* ✅ Used the wizard to customize settings
* ✅ Made changes through natural language
* ✅ Added new features without coding
* ✅ Styled your app visually
You've got the basics down. Now let's build something more substantial.
***
## Common Issues
* Check if it's behind other windows
* Look in other Spaces/Desktops (swipe on trackpad)
* It may take 30-60 seconds to boot the first time
Don't worry! Nativeline automatically:
1. Detects the error
2. Proposes a fix
3. Rebuilds
If it keeps failing, describe the issue in your own words.
Be more specific in your next prompt:
* Instead of "make it bigger" → "make the font size 48pt"
* Instead of "change the color" → "change to blue (#007AFF)"
***
Want to build for iPad or Mac instead? See [Your First iPad App](/quick-start/your-first-ipad-app) or [Your First Mac App](/quick-start/your-first-mac-app).
## Next Steps
Build a full task manager with data storage
Master the Nativeline workspace
Learn to write effective prompts
Use screenshots to guide the AI
# Your First iPad App
Source: https://docs.nativeline.ai/quick-start/your-first-ipad-app
Build your first iPad app in 15 minutes
# Your First iPad App
**⏱️ 15 minutes**
Let's build an iPad app! This tutorial walks you through creating an app that takes full advantage of the iPad's larger screen. You'll go from idea to working app in the iPad Simulator in just minutes.
## What You'll Build
A simple notes app that:
* Shows a sidebar with note titles for easy navigation
* Has a detail view for editing the selected note
* Takes advantage of the iPad's larger screen with a split-view layout
Simple, but you'll learn the key patterns that make iPad apps feel native.
***
## Step 1: Create a New App
Open Nativeline. On the Home Page, select **iPad** from the platform selector.
You'll see:
> **"Tell me about the app you're imagining..."**
Type your app description:
```
A notes app with a sidebar showing note titles and a detail area for editing notes
```
Click **Create** or press Enter.
iPad apps shine when they use the extra screen space. Sidebars, split views, and multi-column layouts are all great patterns to try.
***
## Step 2: Complete the Wizard
Nativeline's wizard helps customize your app with a few quick questions:
### What feel do you want?
Choose **Modern & polished** — this gives you a clean, professional look.
### Similar apps?
You can skip this or type "like Apple Notes" for inspiration.
### Pick colors
Choose any palette you like, or let the AI generate one.
### Name your app
Enter: **iPadNotes**
Click **Create App** to continue.
***
## Step 3: Watch It Build
Nativeline now creates your app:
1. **Setting up the project** — Creating the Xcode structure
2. **Writing the code** — Generating Swift/SwiftUI
3. **Building** — Compiling everything
This takes 30-60 seconds. You'll see a progress animation.
First build takes longer because Xcode needs to compile the entire project. Future builds are much faster.
***
## Step 4: Explore Your Workspace
Once complete, you'll see the main workspace:
### Left Side: Chat Interface
* **Your messages** — What you ask for
* **AI responses** — What the AI is doing
* **Tool cards** — Files being created/edited
* **Todo list** — Current tasks
### Right Side: Embedded iPad Simulator
Your app running on a virtual iPad. The simulator frame is larger than the iPhone version, giving you a clear view of the split-view layout.
You should see the sidebar with note titles on the left and the detail editing area on the right. Try tapping a note to see it appear in the detail view!
***
## Step 5: Make Your First Change
Let's customize the app. In the chat, type:
```
Add a search bar at the top of the sidebar to filter notes by title
```
Watch the AI:
1. **Plan** the change
2. **Edit** the code
3. **Rebuild** the app
4. **Show** the result
Your notes app now has search functionality!
***
## Step 6: Add a Feature
Let's add something more powerful. Type:
```
Add the ability to format text with bold, italic, and bullet points
```
The AI will:
1. Create a formatting toolbar
2. Add rich text support
3. Wire up the formatting controls
Test it — select some text and try the formatting options.
***
## Step 7: Polish the Design
Let's make it look great. Type:
```
Add a gradient header, card-style note previews in the sidebar, and a floating new note button
```
Now you have a polished, professional-looking iPad notes app!
***
## Experiment Further
Try these prompts to explore more:
"Add color-coded categories like Work, Personal, and Ideas that I can assign to each note"
"Add a share button that lets me export a note as plain text or copy it to the clipboard"
"Make sure the app looks great in both light and dark mode with appropriate colors"
"Let me insert images into my notes from the photo library"
***
## What You Learned
Congratulations! You just:
* Created an iPad app from a description
* Used sidebar navigation — a core iPad pattern
* Took advantage of the larger screen with split-view layout
* Added rich text formatting
* Styled your app with gradients, cards, and floating buttons
You've got the iPad basics down. The key difference from iPhone apps is using the extra space wisely with multi-column layouts.
***
## Common Issues
* You can resize the Simulator window by dragging its corners
* Use **Window > Physical Size** or **Window > Point Accurate** in the Simulator menu to adjust
* The embedded simulator automatically scales to fit your workspace
* Check if it's behind other windows
* Look in other Spaces/Desktops (swipe on trackpad)
* It may take 30-60 seconds to boot the first time
Don't worry! Nativeline automatically:
1. Detects the error
2. Proposes a fix
3. Rebuilds
If it keeps failing, describe the issue in your own words.
Be more specific in your next prompt:
* Instead of "make it bigger" → "make the font size 48pt"
* Instead of "change the layout" → "put the sidebar on the left with a 300pt width"
***
## Next Steps
Build a full task manager with data storage
Master the Nativeline workspace
# Your First Mac App
Source: https://docs.nativeline.ai/quick-start/your-first-mac-app
Build your first Mac app in 15 minutes
# Your First Mac App
**⏱️ 15 minutes**
Let's build a Mac app! This tutorial walks you through creating a native macOS application with Nativeline. Unlike iPhone and iPad apps, your Mac app runs directly on your machine — no simulator needed.
## What You'll Build
A simple clipboard manager that:
* Tracks your copy history automatically
* Lets you search through previous items
* Makes it easy to re-copy anything from your history
Simple, but you'll learn the key patterns that make Mac apps feel native.
***
## Step 1: Create a New App
Open Nativeline. On the Home Page, select **Mac** from the platform selector.
You'll see:
> **"Tell me about the app you're imagining..."**
Type your app description:
```
A clipboard manager that tracks my copy history and lets me search and re-copy previous items
```
Click **Create** or press Enter.
Mac apps have different UI patterns than iPhone apps — menu bars, keyboard shortcuts, and window management are all native. Nativeline handles these automatically.
***
## Step 2: Complete the Wizard
Nativeline's wizard helps customize your app with a few quick questions:
### What feel do you want?
Choose **Dark & minimal** — this fits the utility-app vibe of a clipboard manager.
### Similar apps?
You can skip this or type "like Paste or Maccy" for inspiration.
### Pick colors
Choose **Monochrome** or any palette you like. Dark palettes work great for utility apps.
### Name your app
Enter: **ClipManager**
Click **Create App** to continue.
***
## Step 3: Watch It Build
Nativeline now creates your app:
1. **Setting up the project** — Creating the Xcode structure
2. **Writing the code** — Generating Swift/SwiftUI
3. **Building** — Compiling everything
This takes 30-60 seconds. You'll see a progress animation.
Mac apps run natively on your Mac — no simulator needed. After building, the app opens in its own window.
***
## Step 4: Explore Your Workspace
Once complete, you'll see the main workspace:
### Chat Interface (Full Width)
Your Nativeline workspace shows the chat interface at full width — there's no embedded simulator pane for Mac apps.
* **Your messages** — What you ask for
* **AI responses** — What the AI is doing
* **Tool cards** — Files being created/edited
* **Todo list** — Current tasks
### Your Mac App (Separate Window)
Your clipboard manager runs in its own native macOS window. Switch to it using the Dock, Mission Control, or Cmd+Tab.
Try copying some text from different apps and watch the clipboard history populate!
***
## Step 5: Make Your First Change
Let's customize the app. In the chat, type:
```
Add a search bar at the top to filter clipboard history by content
```
Watch the AI:
1. **Plan** the change
2. **Edit** the code
3. **Rebuild** the app
4. **Show** the result
Your clipboard manager now has search functionality!
***
## Step 6: Add a Feature
Let's add a native Mac feature. Type:
```
Add keyboard shortcut Cmd+Shift+V to show the clipboard history window
```
The AI will:
1. Register the global keyboard shortcut
2. Wire it up to show the window
3. Handle focus and activation
Test it — press Cmd+Shift+V from any app and your clipboard history should appear.
***
## Step 7: Polish the Design
Let's make it look great. Type:
```
Add category tags for links, text, and images. Add a pin feature to keep important items at the top.
```
Now you have a polished clipboard manager with organization features!
***
## Experiment Further
Try these prompts to explore more:
"Add a menu bar icon that shows recent clipboard items in a dropdown"
"Automatically delete clipboard items older than 7 days to keep things tidy"
"Let me mark items as favorites so they're always easy to find"
"Package this app as a DMG so I can share it with friends"
***
## What You Learned
Congratulations! You just:
* Created a native Mac app from a description
* Used macOS-native patterns like keyboard shortcuts and window management
* Tested your app natively on your own Mac — no simulator required
* Added search, categories, and pinning features
* Styled your app with a dark, minimal aesthetic
You've got the Mac basics down. The key difference from iPhone and iPad apps is that Mac apps run natively, support keyboard shortcuts, and use macOS-specific UI patterns like menu bars.
When you're ready to share your Mac app, you can export it as a DMG file. See [DMG Export](/guides/dmg-export) for details.
***
## Common Issues
* Check your Dock for the app icon
* Use Cmd+Tab to find it
* It may be behind other windows — try Mission Control (swipe up with three fingers)
* Make sure you granted accessibility permissions when prompted
* Check **System Settings > Privacy & Security > Accessibility** to verify
* Try quitting and reopening the app
Don't worry! Nativeline automatically:
1. Detects the error
2. Proposes a fix
3. Rebuilds
If it keeps failing, describe the issue in your own words.
Be more specific in your next prompt:
* Instead of "make it bigger" → "make the window 600x400 pixels"
* Instead of "add a shortcut" → "add Cmd+K to open the search bar"
***
## Next Steps
Learn to build apps that work across iPhone, iPad, and Mac
Master the Nativeline workspace
# #3d — 3D Models
Source: https://docs.nativeline.ai/toolkit/3d
Import 3D models for AR and SceneKit
The `#3d` command imports 3D model files into your app for use in augmented reality experiences, interactive 3D viewers, and SceneKit scenes. Drop in a USDZ or Reality file and tell the AI how to display it.
## What It Does
When you use `#3d`, the AI:
1. Adds the 3D model file to your Xcode project
2. Sets up the appropriate framework (RealityKit for AR, SceneKit for 3D viewers)
3. Creates a view that renders and displays the model as you describe
## Supported Formats
| Format | Best for | Notes |
| ----------- | -------------------------- | --------------------------------------------------------------------- |
| **USDZ** | 3D viewing, AR experiences | Apple's preferred 3D format. Single-file, self-contained. |
| **Reality** | AR scenes with behaviors | Created in Reality Composer. Can include animations and interactions. |
## How to Use
Type `#` and select **3d** from the toolkit popover.
The file picker opens, filtered to USDZ and Reality files. Choose the model you want to import.
The model appears as an orange chip below the input. Tell the AI how users should interact with the 3D content.
Press Enter. The AI sets up the 3D rendering framework and creates the view.
## Example Prompts
```
Show this 3D model in an AR view so users can place it in their room
```
```
Display this model in a 3D viewer that users can rotate
```
```
Use this USDZ model as a product preview
```
```
Show this model in AR with a 'Place Object' button
```
```
Create a 3D gallery where users can swipe between this and other models
```
## Getting 3D Models
Reality Converter is a free app from Apple that converts OBJ, GLTF, and other common 3D formats to USDZ. Download it from the Apple developer site.
Apple provides sample USDZ files to test with. Search for "Apple AR Quick Look Gallery" to find them.
Many models on Sketchfab can be downloaded in USDZ format. Check the license for each model.
Apple's Reality Composer app lets you create AR scenes with built-in 3D objects, animations, and behaviors. It exports `.reality` files that work directly with `#3d`.
USDZ is Apple's preferred 3D format. You can convert other formats (OBJ, GLTF, FBX) to USDZ using Reality Converter, a free app from Apple.
## AR vs 3D Viewer
Your prompt determines how the model is displayed:
| Approach | What it creates | Best for |
| ------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| **AR view** | Camera-based view where users place the model in the real world | Furniture, decorations, products users want to visualize in their space |
| **3D viewer** | Interactive viewer where users can rotate, zoom, and inspect the model | Product previews, educational models, 3D portfolios |
If you want AR, mention "AR" in your prompt. If you want a static viewer, mention "rotate" or "3D viewer."
AR features require a physical device — they won't work in the Simulator. Use TestFlight to test AR on a real iPhone or iPad.
3D model files can be large. Complex models with detailed textures may increase your app size significantly. Optimize your models before importing — reduce polygon count and compress textures where possible.
## Related
See all available # commands and how the toolkit works.
Deploy your app to a physical device to test AR features.
# #color — Named Colors
Source: https://docs.nativeline.ai/toolkit/color
Add custom colors to your app's asset catalog
The `#color` command opens a color picker and adds your chosen color as a **named color** in your Xcode asset catalog. This is the only toolkit command that opens a color picker instead of a file picker.
## What It Does
When you use `#color`, the AI:
1. Takes the color you picked and adds it to your **asset catalog** (Assets.xcassets) as a named Color Set
2. Names it based on your description (e.g., "BrandBlue", "BackgroundGray")
3. Applies it wherever you specify in your app
Named colors in the asset catalog can be referenced throughout your SwiftUI code with `Color("BrandBlue")`, keeping your color palette consistent and easy to manage.
## How It's Different
Every other toolkit command opens a **file picker** to let you select a file from your Mac. `#color` is different — it opens the **macOS color picker** so you can choose an exact color visually, enter hex values, or sample colors from your screen.
## How to Use
Type `#` and select **color** from the toolkit popover.
The macOS color picker opens. Choose your color using the color wheel, sliders, hex input, or the eyedropper to sample from your screen.
The color appears as an orange chip below the input. Tell the AI what to name the color and where to use it.
Press Enter. The AI adds the named color to your asset catalog and applies it throughout your app.
## Example Prompts
```
Name this 'BrandBlue' and use it for all primary buttons
```
```
This is 'BackgroundGray', use it for the app's main background
```
```
Name this 'AccentOrange' and apply it to the navigation bar
```
```
Call this 'ErrorRed' and use it for form validation messages
```
```
This is 'CardBackground' — apply it to all card views in the app
```
## Why Use Named Colors?
Named colors in the asset catalog give you several advantages over hardcoded hex values:
| Approach | Flexibility | Dark mode support | Reusability |
| --------------------------- | -------------------------------- | ----------------- | ----------- |
| Hardcoded hex | Must find and replace everywhere | Manual | Low |
| Named color (asset catalog) | Change once, updates everywhere | Built-in | High |
Adding colors to the asset catalog means they automatically support light and dark mode when you configure both variants. You can ask the AI to set up a dark mode variant for any named color.
## Building a Color Palette
You can use `#color` multiple times to build out your app's full color palette. A typical app might include:
* **Primary** — your main brand color for buttons and key actions
* **Secondary** — a supporting color for less prominent elements
* **Background** — the app's base background color
* **Surface** — card and container backgrounds
* **Text** — primary text color
* **TextSecondary** — secondary/muted text color
* **Accent** — a highlight color for special elements
* **Error** — for error states and validation messages
You can attach multiple colors in a single message. Pick each color, give it a name, and describe where to use it. The AI will add all of them to your asset catalog at once.
## Related
See all available # commands and how the toolkit works.
Learn about theming, dark mode, and visual customization.
# #data — JSON & CSV Files
Source: https://docs.nativeline.ai/toolkit/data
Bundle data files directly into your app
The `#data` command adds JSON or CSV files as **bundled resources** in your app. These files ship with your app and can be read at runtime — perfect for static content like categories, configuration, or sample data.
## What It Does
When you use `#data`, the AI:
1. Adds your JSON or CSV file to the Xcode project as a bundled resource
2. Creates the necessary Swift model structs to represent the data
3. Writes the parsing logic to load and decode the file at runtime
4. Displays the data wherever you describe in your app
## Supported Formats
| Format | Best for | Notes |
| -------- | ---------------------------------------------- | ------------------------------------------ |
| **JSON** | Structured data, nested objects, API-like data | Most flexible format |
| **CSV** | Tabular data, spreadsheets, simple lists | Easy to export from Excel or Google Sheets |
## How to Use
Type `#` and select **data** from the toolkit popover.
The file picker opens, filtered to JSON and CSV files. Choose the data file you want to bundle.
The file appears as an orange chip below the input. Tell the AI what the data represents and how to display it.
Press Enter. The AI creates the models, parsing logic, and UI to display your data.
## Example Prompts
```
This is a list of countries, use it to populate the country picker
```
```
Load this JSON and display the items in a scrollable list
```
```
Parse this CSV file and show the data in a table view
```
```
This JSON has a list of recipes — show them as cards with the name and cooking time
```
```
Use this CSV as the data source for the leaderboard screen
```
## What the AI Generates
When you attach a data file, the AI inspects its structure and generates:
* **Model structs** — Swift `Codable` structs matching the shape of your data
* **Parsing logic** — Code to load the file from the app bundle and decode it
* **UI views** — SwiftUI views that display the data however you described
For example, a JSON file containing a list of products would result in a `Product` struct, a loading function, and a `List` view showing each product.
Great for static data like categories, configuration, sample data, or lookup tables. If your data doesn't change between app releases, bundling it with `#data` is simpler than setting up a backend.
For dynamic data that changes after your app is published — like user-generated content, real-time feeds, or data you need to update without shipping a new version — consider using Supabase instead.
## JSON vs CSV
JSON is the better choice when your data has **nested structures**, **mixed types**, or **complex relationships**. For example, a list of restaurants where each restaurant has a name, address object, and array of menu items.
```json theme={null}
[
{
"name": "Coastal Cafe",
"rating": 4.5,
"tags": ["seafood", "brunch"]
}
]
```
CSV works well for **flat, tabular data** — think spreadsheets. If your data fits neatly into rows and columns with no nesting, CSV is simple and easy to edit.
```csv theme={null}
name,population,country
Tokyo,13960000,Japan
Delhi,11030000,India
Shanghai,24870000,China
```
## Related
See all available # commands and how the toolkit works.
Set up a backend for dynamic data that changes over time.
# #font — Custom Fonts
Source: https://docs.nativeline.ai/toolkit/font
Import custom font files into your app
The `#font` command imports custom font files into your Xcode project and sets them up so you can use them anywhere in your app. No manual Info.plist editing or font registration required.
## What It Does
When you use `#font`, the AI handles the full setup process:
1. Adds the font file to your Xcode project
2. Registers it in your app's **Info.plist** under `UIAppFonts`
3. Creates a SwiftUI `Font` extension so the font is easy to reference throughout your code
After that, your custom font is available everywhere in your app — headings, body text, buttons, labels, wherever you need it.
## Supported Formats
| Format | Full name | Notes |
| ------- | ------------- | -------------------------------------- |
| **TTF** | TrueType Font | The most widely supported font format |
| **OTF** | OpenType Font | Supports advanced typographic features |
## How to Use
Type `#` and select **font** from the toolkit popover.
The file picker opens, filtered to TTF and OTF files. Choose the font you want to import.
The font appears as an orange chip below the input. Tell the AI where to apply the font in your app.
Press Enter. The AI registers the font, creates the necessary extensions, and applies it as described.
## Example Prompts
```
Use this font for all heading text
```
```
Apply this as the body font throughout the app
```
```
Use this font for the logo text at size 32
```
```
This is the bold weight — use it for buttons and navigation titles
```
```
Apply this font to the onboarding screen titles at size 28
```
## What Happens Behind the Scenes
When you attach a font, the AI does three things automatically:
1. **Adds the file** — The `.ttf` or `.otf` file is added to your Xcode project and included in the app bundle.
2. **Registers in Info.plist** — The font filename is added to the `UIAppFonts` array so iOS knows to load it at launch.
3. **Creates a Font extension** — A SwiftUI extension is generated so you can use the font with a clean API like `.font(.customHeading)` instead of referencing the PostScript name directly.
Import all font weights at once if you have them (Regular, Bold, Italic, etc.). Describe which weight to use where, and the AI will set up each one with its own extension.
Some fonts have licensing restrictions. Make sure you have the right to use the font in your app before importing. Many free fonts are available from Google Fonts and other open-source libraries.
## Common Font Sources
| Source | License | Notes |
| ----------------------------------------- | ------------ | ------------------------------------------- |
| [Google Fonts](https://fonts.google.com) | Open source | Hundreds of free fonts |
| [Font Squirrel](https://fontsquirrel.com) | Varies | Free fonts, most are app-licensed |
| Adobe Fonts | Subscription | Requires Creative Cloud license |
| Custom / purchased | Varies | Check your license for app embedding rights |
## Related
See all available # commands and how the toolkit works.
Learn more about the chat input and how to interact with the AI.
# #image — Add Images
Source: https://docs.nativeline.ai/toolkit/image
Import images directly into your app's asset catalog
The `#image` command adds images to your Xcode asset catalog so your app can reference them by name anywhere in your code. Whether it's an app icon, a background photo, or a custom illustration, this is how you get images into your app.
## What It Does
When you use `#image`, the AI takes your selected image and:
1. Adds it to your project's **asset catalog** (Assets.xcassets)
2. Names it based on your description or the original filename
3. References it in your SwiftUI views wherever you specify
Your image becomes a first-class asset in your Xcode project, available through `Image("name")` in SwiftUI.
## Supported Formats
| Format | Best for | Notes |
| -------- | ---------------------------------------------- | ---------------------------------- |
| **PNG** | Icons, UI elements, graphics with transparency | Lossless quality, supports alpha |
| **JPEG** | Photos, backgrounds | Smaller file size, no transparency |
| **GIF** | Simple animated images | Limited color palette |
| **HEIC** | High-efficiency photos | Apple's modern photo format |
| **TIFF** | High-quality source images | Large file size |
| **BMP** | Legacy bitmap images | Uncompressed |
| **SVG** | Vector graphics, scalable icons | Resolution-independent |
## How to Use
Type `#` and select **image** from the toolkit popover.
The file picker opens, filtered to supported image formats. Choose the image you want to add.
The image appears as an orange chip below the input. Type a description of where the image should go in your app.
Press Enter. The AI adds the image to your asset catalog and uses it in your app as described.
## Example Prompts
```
Use this as the app's background image
```
```
This is the logo, display it at 120x120 on the splash screen
```
```
Add this icon for the settings tab
```
```
Place this illustration in the center of the empty state view
```
```
Use this as the profile placeholder image
```
## Tips for Best Results
PNG supports transparency and keeps edges crisp — ideal for icons, buttons, and interface graphics.
JPEG files are significantly smaller than PNG for photographic content. Use them for backgrounds, hero images, and any photo-based assets.
SVG files are vector-based, so they look sharp at any size. Perfect for icons and illustrations that need to scale across different devices.
The original filename often becomes the asset name. A file called `settings-icon.png` is much easier to work with than `IMG_4392.png`.
`#image` adds the file to your app bundle. If you want to show the AI a design mockup or reference screenshot, drag-and-drop the image directly into the chat instead. Drag-and-drop images are seen by the AI but not added to your project.
## Related
See all available # commands and how the toolkit works.
Learn more about how Nativeline handles images in your projects.
# #lottie — Lottie Animations
Source: https://docs.nativeline.ai/toolkit/lottie
Add beautiful Lottie animations to your app
The `#lottie` command imports Lottie animation files into your app. Lottie animations are lightweight, resolution-independent, and look sharp on every screen size — a far better option than GIFs for app animations.
## What It Does
When you use `#lottie`, the AI:
1. Adds the Lottie JSON animation file to your project
2. **Automatically adds the Lottie Swift package** as a dependency (if not already present)
3. Creates a view that plays the animation where you describe
Nativeline automatically adds the Lottie package to your project when you use `#lottie` for the first time. You don't need to set up any dependencies manually.
## Supported Formats
| Format | Notes |
| -------- | ------------------------------------------------------------------------------------ |
| **JSON** | Lottie animation format (exported from After Effects or downloaded from LottieFiles) |
## Where to Get Lottie Animations
| Source | Notes |
| ---------------------------------------------------- | ------------------------------------------------------------------------------ |
| [LottieFiles](https://lottiefiles.com) | Thousands of free and premium animations, searchable by category |
| After Effects + Bodymovin | Export your own animations from Adobe After Effects using the Bodymovin plugin |
| [LottieFiles editor](https://lottiefiles.com/editor) | Customize colors and timing of existing animations in your browser |
## How to Use
Type `#` and select **lottie** from the toolkit popover.
The file picker opens, filtered to JSON files. Choose the Lottie animation you want to add.
The file appears as an orange chip below the input. Tell the AI where and how to display the animation.
Press Enter. The AI adds the Lottie dependency (if needed), bundles the animation, and displays it as described.
## Example Prompts
```
Use this as a loading spinner in the center of the screen
```
```
Play this animation when a task is completed
```
```
Show this animation on the empty state screen
```
```
Play this confetti animation when the user achieves a goal
```
```
Use this as the launch screen animation, play once then transition to the home screen
```
## Why Lottie Over GIFs?
| | Lottie | GIF |
| ----------------- | ---------------------------- | ---------------------- |
| **File size** | Tiny (JSON-based) | Large (pixel data) |
| **Resolution** | Scales perfectly to any size | Pixelates when scaled |
| **Colors** | Full color spectrum | Limited to 256 colors |
| **Performance** | Rendered by GPU | Decoded frame by frame |
| **Interactivity** | Can pause, reverse, seek | Play only |
Lottie animations are lightweight and resolution-independent — much better than GIFs for app animations. A complex animation that would be several MB as a GIF is often just a few KB as a Lottie file.
## Common Use Cases
Replace boring spinners with branded loading animations. Play them on loop while content loads.
Make empty screens feel alive with a subtle animation instead of a static illustration.
Play a checkmark or confetti animation when a user completes an action. These small moments of delight make your app feel polished.
Animate your onboarding illustrations to better explain features and hold user attention.
## Related
See all available # commands and how the toolkit works.
Import static images into your app's asset catalog.
# Toolkit
Source: https://docs.nativeline.ai/toolkit/overview
Add real assets to your app with # commands
Attach fonts, colors, images, sounds, data, videos, animations, and 3D models directly into your app — no setup required.
## What is the Toolkit?
The Toolkit is a set of **# commands** that let you attach real files and assets to your conversation. When you type `#` in the chat input, a popover appears with all available commands organized into two sections:
* **Assets** — images, fonts, colors, sounds, videos, animations, and 3D models
* **Data** — JSON and CSV files
Each command opens a file picker (or a color picker for `#color`), lets you select your asset, and attaches it as an **orange chip** below the chat input. You then describe how the AI should use that asset, and it gets integrated directly into your app's Xcode project.
## Quick Reference
| Command | What it adds | File types | Icon |
| --------- | ----------------------- | ------------------------------------ | ------------------- |
| `#image` | Images to asset catalog | PNG, JPEG, GIF, HEIC, TIFF, BMP, SVG | photo |
| `#font` | Custom fonts | TTF, OTF | textformat |
| `#color` | Named colors | Color picker | paintpalette.fill |
| `#sound` | Audio files | MP3, WAV, AIFF | speaker.wave.2.fill |
| `#video` | Video files | MOV, MP4, QuickTime | video.fill |
| `#data` | JSON/CSV data | JSON, CSV | doc.text.fill |
| `#lottie` | Lottie animations | JSON (animation) | sparkles |
| `#3d` | 3D models | USDZ, Reality | cube.fill |
## How to Use # Commands
Position your cursor in the chat input and type the `#` character.
A popover displays all available commands, organized under Assets and Data.
Select the command that matches the type of asset you want to add.
A file picker opens filtered to the supported file types for that command. For `#color`, a color picker opens instead.
Your selected asset shows up as an orange pill-shaped chip below the chat input, confirming it's attached.
Type a description of where and how the asset should appear in your app.
The AI receives your asset and description, then integrates it into your app.
You can use toolkit commands alongside regular text. Just type `#` to open the popover, attach your file, then describe what you want.
`#image` is for app assets like icons, backgrounds, and UI elements. To show the AI a reference screenshot or mockup, drag-and-drop images directly into the chat instead.
## All Commands
Import PNG, JPEG, SVG, and more into your asset catalog.
Add TTF and OTF font files to your app.
Pick colors and add them to your asset catalog.
Bundle MP3, WAV, and AIFF audio into your app.
Embed MOV and MP4 videos for in-app playback.
Bundle structured data files into your app.
Add lightweight, scalable Lottie animations.
Import USDZ and Reality files for AR and 3D views.
# #sound — Audio Files
Source: https://docs.nativeline.ai/toolkit/sound
Add sound effects and audio to your app
The `#sound` command bundles audio files into your app so you can play them at specific moments — button taps, notifications, transitions, background music, or anything else that benefits from sound.
## What It Does
When you use `#sound`, the AI:
1. Adds the audio file to your Xcode project as a bundled resource
2. Sets up an audio player using AVFoundation
3. Triggers playback at the moment you describe
## Supported Formats
| Format | Best for | Notes |
| -------- | -------------------------------- | --------------------------------- |
| **MP3** | Music, longer audio clips | Compressed, smaller file size |
| **WAV** | Short sound effects, UI feedback | Uncompressed, higher quality |
| **AIFF** | High-quality audio | Apple's uncompressed audio format |
## How to Use
Type `#` and select **sound** from the toolkit popover.
The file picker opens, filtered to MP3, WAV, and AIFF files. Choose the sound you want to add.
The file appears as an orange chip below the input. Tell the AI when and where to play the sound.
Press Enter. The AI bundles the audio file and sets up playback logic where you specified.
## Example Prompts
```
Play this sound when a notification arrives
```
```
Use this as background music on the home screen
```
```
Play this click sound when buttons are tapped
```
```
Play this success chime when the user completes a task
```
```
Use this as a swoosh transition sound between screens
```
## Tips for Working with Audio
Button taps, swipes, and transitions should use very short audio clips (under 1 second). This keeps the interaction feeling responsive and avoids annoying your users.
If you're adding background music or audio that's more than a few seconds, use MP3 to keep the file size manageable. WAV files are uncompressed and can be very large.
Not everyone wants an app that makes noise. If you add sound effects, consider including a mute toggle in your app's settings.
Use short audio clips for UI feedback. Use MP3 for longer audio to keep file size down.
## Where to Find Sound Effects
| Source | License | Notes |
| ----------------------------------------------- | --------------------- | ---------------------------------------------- |
| [Freesound](https://freesound.org) | Varies (many CC0) | Large library of community-contributed sounds |
| [Mixkit](https://mixkit.co/free-sound-effects/) | Free | Curated sound effects, no attribution required |
| [Zapsplat](https://zapsplat.com) | Free with attribution | Thousands of categorized sound effects |
| GarageBand | Royalty-free | Built into macOS, great for creating your own |
## Related
See all available # commands and how the toolkit works.
Add video content to your app for in-app playback.
# #video — Video Files
Source: https://docs.nativeline.ai/toolkit/video
Embed video content in your app
The `#video` command bundles video files into your app for in-app playback. Use it for onboarding videos, tutorials, background loops, or any video content that should ship with your app.
## What It Does
When you use `#video`, the AI:
1. Adds the video file to your Xcode project as a bundled resource
2. Sets up a video player using AVKit and AVFoundation
3. Configures playback behavior (autoplay, looping, controls) based on your description
## Supported Formats
| Format | Notes |
| ------------- | ------------------------------------------------------------- |
| **MOV** | Apple's QuickTime format, widely supported on Apple platforms |
| **MP4** | Universal format, great compatibility and compression |
| **QuickTime** | QuickTime-compatible video files |
## How to Use
Type `#` and select **video** from the toolkit popover.
The file picker opens, filtered to supported video formats. Choose the video you want to embed.
The video appears as an orange chip below the input. Tell the AI where to place the video and how it should behave.
Press Enter. The AI bundles the video and creates the player view as described.
## Example Prompts
```
Play this video as the onboarding background
```
```
Show this tutorial video on the help screen
```
```
Loop this video behind the login screen
```
```
Add a video player for this clip on the product detail page with playback controls
```
```
Play this video fullscreen when the user taps the 'Watch Demo' button
```
## Common Video Patterns
Great for login screens and landing pages. Tell the AI to loop the video, mute it, and place it behind your content. Keep these videos short (5-15 seconds) and visually subtle.
Walk new users through your app with a video on each onboarding step. These typically include playback controls and play once.
Embed preview clips that users can watch inline. These usually have play/pause controls and expand to fullscreen on tap.
Video files can be large. Keep videos under 50MB to avoid slow builds and large app sizes. For longer videos or content that updates frequently, consider streaming from a URL instead of bundling in the app.
## Tips for Smaller File Sizes
| Approach | How it helps |
| ----------------------- | ---------------------------------------------------- |
| Use MP4 with H.264 | Best compression-to-quality ratio for most use cases |
| Shorten the clip | Trim to only the essential footage |
| Reduce resolution | 720p is often sufficient for mobile playback |
| Lower the frame rate | 24fps or 30fps is fine for most app videos |
| Compress with HandBrake | Free tool that can significantly reduce file size |
If your video is purely decorative (like a background loop), consider using a Lottie animation instead. Lottie files are dramatically smaller and resolution-independent.
## Related
See all available # commands and how the toolkit works.
Add sound effects and audio to your app.