This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Build the home screen
Edit page
In this chapter, direct your AI agent to add tab navigation, the photo viewer, and an image picker.
In this chapter, the app starts to look like StickerSmash: two navigation tabs, a photo viewer, and a button that opens your phone's photo library.
1
Add navigation tabs
Most apps have more than one screen, with tabs along the bottom to switch between them. Paste the following prompt into your agent:
What you should see: a tab bar at the bottom of the app with Home and About tabs. The tab you're on is highlighted in yellow, and tapping the other one switches screens:
2
Add the photo viewer
Next, give the home screen its main content: a large photo and two buttons. We've prepared an asset pack with the placeholder photo and the emoji stickers you'll use later. Paste the following prompt into your agent:
Prefer to download the assets yourself?
If your agent can't download or extract the file, do it manually: download sticker-smash-assets.zip, unzip it, and copy the images into the assets/images folder inside your StickerSmash folder, replacing files with the same names. Then ask the agent to build the screen with the prompt above, minus its first sentence.
What you should see: a photo of a wooden boardwalk over the ocean filling most of the screen, with the two buttons below it:
3
Pick a photo from your library
Time for the first real feature: choosing your own photo. Paste the following prompt into your agent:
What you should see: tapping Choose a photo opens your phone's photo library. The first time, your phone asks for permission to access your photos. Tap Allow. The photo you pick replaces the placeholder photo.
If a result doesn't match what you expected, tell the agent what you see. The When something looks wrong section from the previous chapter has the playbook.
Summary
Chapter 3: Build the home screen
The app now has navigation, a styled home screen, and a working photo picker. You haven't touched a line of code.
In the next chapter, you'll add an emoji picker modal and play with the sticker using gestures.