Native iOS features

Build an iPhone app with Home Screen and Lock Screen widgets

Borel builds iPhone apps with widgets: a little of your app on the Home Screen and the Lock Screen, read at a glance without opening it. Describe what the widget shows, such as today's habits, a countdown or the glasses left, and Borel writes it in Swift with Apple's WidgetKit, with buttons that work right on the widget.

Ideas

What you can build with Home and Lock Screen widgets

A few apps people make with it. Describe yours in your own words.

  • A habit widget

    Today's habits left, with a button to tick one off from the Home Screen.

  • A countdown

    Days until the trip or the wedding, next to the clock on the Lock Screen.

  • A water tracker

    Glasses so far today in a ring, and a plus button on the widget.

  • A study streak

    Your streak in days, small enough to sit on the Lock Screen.

  • A shift planner

    Your next shift and when it starts, on the Home Screen.

Try it

A prompt to start from

Copy it, or start with it and change it to fit your idea.

The prompt
“A habit tracker with three habits a day, and a small Home Screen widget that shows how many are left today, with a button to tick the next one.”

From words to the App Store

Four steps, no code

  • 1

    Describe it

    Say what the app does in plain words, or start from the prompt above. No code, and no Mac.

  • 2

    Preview it on a live iPhone

    Borel writes the Swift, compiles it with Xcode on its own Mac and runs it in the iOS Simulator, a live iPhone streamed into your browser.

  • 3

    Publish it to the App Store

    With Pro and Apple's Developer Program, Borel builds the App Store version on its Mac, prepares the listing and screenshots, and walks you through sending it for Apple's review.

  • 4

    Keep it on your own iPhone

    With Pro, Borel Companion installs it over a cable the first time, then over Wi-Fi, and while it runs it puts each new version on by itself.

How Borel handles it

Written in Swift, with Apple's own frameworks

What Borel takes care of for you, so the feature works the way iPhone owners expect.

  • Apple's WidgetKit

    The widget is its own small part of the app, drawn in SwiftUI: small, medium or large on the Home Screen, and three shapes on the Lock Screen.

  • Buttons on the widget

    A button or a switch on the widget does its job without opening the app, and the app shows the same change when it opens.

  • Always up to date

    The app saves what the widget shows whenever it changes, and a countdown moves on by the hour, all on the phone.

Build and try the app in the iOS Simulator in your browser. The widget lives on the Home Screen and the Lock Screen, so you add it from your iPhone, once the app is there with Borel Companion or from the App Store.

After the preview

On the App Store, and on your own iPhone

Publish it with Pro and Apple's Developer Program, $99 a year, and the widget comes with your app on the App Store. With Pro, Borel Companion also puts it on your own iPhone; with a free Apple ID, the widget is a second part of the app, so it takes two of the 10 app IDs Apple gives a free account each week.

Frequently asked questions

Touch and hold the Home Screen, tap Edit, then Add Widget, and find your app. Lock Screen widgets go under the clock from the Lock Screen's Customize.

Yes. A button or a switch on the widget ticks a habit or adds a glass without opening the app.

No. It shows what the app last saved on the phone, so it reads the same with no signal at all.

Small, medium and large on the Home Screen, and round, rectangular or a single line of text on the Lock Screen.

Yes. Ask for one in the chat, for example “add a widget with today's total”, and Borel adds it to the app you have.

Build your app with Home and Lock Screen widgets

Start from the prompt above, change it to fit your idea, and Borel builds it while you watch.

Related on Borel