PeakUI Help
Making an app with PeakUI.
A PeakUI app is a folder of Swift files, written as for SwiftUI. These pages show how to check it and run it on PeakOS.
Your first app
From a folder to a window.
1
Make a folder
App.swift with an @main App and a ContentView, and an Info.plist naming it.
2
Write SwiftUI
Views, @State, bindings, navigation and lists, as you would in Xcode.
3
Check it
peakui2 check App.swift answers as swiftc would, with the line and the reason.
4
Run it
Open the folder on PeakOS, and its window opens, drawn natively.
Reading the checker
What its messages mean.
An error
Swift itself would refuse this line. Fix it as for Xcode.
PeakUI accepts X but does not draw it yet
Your app is valid Swift; this part doesn't work on PeakOS yet.
Outdated
Apple has replaced this; the message names what to use.
Good to know
How PeakUI apps behave.
Every text in two languages
Write English in the code; add the Norwegian in nb.lproj/Localizable.strings.
Capabilities are asked once
Folders, the network and notifications need a line in Info.plist, and your yes.
Icons by SF Symbol name
PeakUI draws them with Lucide; Peak Studio shows which.
The same source in Xcode
Nothing PeakOS-only goes in your Swift.

Peak
An operating system, its framework and its apps, made in Norway.
No cookies. Visits are counted anonymously, with nothing that follows you between sites or days.
© 2026 Vegar Lee Berentsen (Berentsen Labs)