TECH2APPLE / EXPLORE

Watch & Learn

A curated Apple Developer video and a written guide to get started.

CURATED DEVELOPER VIDEO YOUTUBE
Watch on YouTube ↗ · Apple Developer
START BUILDING Apple Developer · Curated video

Build your first app with Swift Playgrounds

A curated Apple Developer walkthrough of creating an app with SwiftUI. Watch the process, then explore our written starter guide.

CREATORApple Developer
TOPICSwiftUI basics
START HEREFirst app
COMPANIONWritten guide
Developer Track Xcode 16 Ready

Learn to Build: From First Idea to TestFlight

Actionable, modern tutorials designed for developers building production-grade utilities with modern Swift, SwiftUI, and AppKit APIs.

TUTORIAL #18 35 min interactive read

Building your first macOS Menu Bar Utility with SwiftUI & LaunchAgent

Learn how to handle window lifecycle without an intrusive Dock icon, attach a lightweight `MenuBarExtra` scene, and schedule background daemon tasks with modern `SMAppService`.

Prerequisites Checklist
check_circle Xcode 16.0+ (Command Line Tools installed)
check_circle macOS Sonoma 14.0 or macOS Sequoia 15.0+
check_circle Basic understanding of Swift Concurrency (`async/await`)
MenuBarApp.swift
import SwiftUI
import AppKit

@main
struct MenuBarMonitorApp: App {
    @StateObject private var telemetry = SystemTelemetry()

    var body: some Scene {
        MenuBarExtra("Silicon Pulse", systemImage: "cpu.fill") {
            VStack(alignment: .leading, spacing: 12) {
                Text("Silicon Pulse").font(.headline)
                Text(telemetry.summary).font(.caption)
                Button("Update sample") { telemetry.updateSample() }
                Divider()
                Button("Quit") { NSApplication.shared.terminate(nil) }
            }
            .padding(16)
            .frame(width: 260)
        }
        .menuBarExtraStyle(.window)
    }
}