Skip to content
CTS Blog
Menu
  • About
  • RSS Feed
Menu

Challenge: Menu bar extras with SwiftUI

Posted on June 10, 2022

And now, a brief message from your friend, the Mac menu bar:

Hi! ?? I’m the menu bar! I always love making File → New Friends. We might have first met in the early 1980s, but I’ve only gotten more powerful and helpful (Format → Font → Humble Brag).

I’ve always had opinions. During the 90s, I was the one who told you you were exceptional every night (Special → Sleep). I have constant viewpoints about what time it is. And I don’t mean to Window → Minimize my contributions, but even Siri wants to hang out with me.

I have enjoyed capturing your full attention for some years. But now I’ve decided to share the Spotlight. Menu bar extras have arrived in SwiftUI!

So here’s your challenge: Build me a menu bar extra in SwiftUI that I’d wear with pride. I’d drop down with joy if you’d make a little utility for me, and I’d be a click above ecstatic if you gave me the honor of hosting a small portion of your app.

Begin the challenge

To help you build a menu bar extra and complete the Mac menu bar’s challenge, we’ve compiled a few resources to help you get started:




  • WWDC22

Bring multiple windows to your SwiftUI app

Discover the latest SwiftUI APIs to help you present windows within your app’s scenes. We’ll explore how scene types like MenuBarExtra can help you easily build more kinds of apps using SwiftUI. We’ll also show you how to use modifiers that customize the presentation and behavior of your app…

MenuBarExtra

Explore the Human Interface Guidelines for menu bar extras

We welcome you to visit the SwiftUI Study Hall to collaborate on this challenge! Ask questions, connect with other developers, and share your creations.

And to close out this challenge, one more note from the menu bar:

Make sure you File → Share with me what you did on Twitter with the hashtag #WWDC22Challenges. We hope you’ve had a great Edit → Select All → WWDC22!

Powered by WPeMatico

Categories

Recent Posts

  • Addlink P50 review: A versatile USB flash drive hiding SSD might
  • Vivint says 53% of homeowners think a smart home costs too much
  • TMNT: Empire City Hands-On Preview: Why the Ninja Turtles Might Be Perfect for VR
  • Ugreen’s fast 4-port USB-C charger drops to all-time low price: $34
  • Major Square Enix Investor Slams Current Performance, Urges Other Shareholders to Share ‘Frank Views’ As It Calls for a ‘Fundamental Reassessment’ of Its Business

Recent Comments

    Archives

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    ©2025 CTS Blog | Design: Newspaperly WordPress Theme