r/SwiftUI • u/lanserxt • 3h ago
Tutorial iOS 27.1: DeviceHinge
r/SwiftUI • u/lanserxt • 3h ago
r/SwiftUI • u/Street-Lab7620 • 5h ago
For my project omarchy-macos (Omarchy's Linux desktop look, on macOS), I rebuilt Omarchy's QML bar panels as a SwiftUI menu-bar app: Wi-Fi, audio, Bluetooth, power, display, calendar and weather.
Some things that were interesting to solve:
- Porting QML layouts to SwiftUI with the same metrics and font scale
- Following the theme live: every panel re-renders from a palette file when you switch themes
- Talking to CoreAudio, CoreWLAN, IOBluetooth and DisplayServices directly
- A ~30 KB C client so clicks on the bar open panels instantly (launching the Swift binary added visible lag)
It's built with swiftc and a shell script, no Xcode project. Source (MIT):
https://github.com/prashantkoirala465/omarchy-macos/tree/main/src/barpanel
Feedback on the code is welcome.
r/SwiftUI • u/Friday4252 • 19h ago
r/SwiftUI • u/beatpaq • 20h ago
TabView(selection: $selection) > Tab > FeedView
Trying to implement a TikTok style feed and I want the FeedView to know when another tab has been opened so I can stop the music/video from playing. I tried onDisappear on the FeedView but it lags behind for a few moments. Should I pass the value of the currently selected tag to the feed view or is there a better way to do this?
r/SwiftUI • u/JUMPERSSQUAD • 3h ago
r/SwiftUI • u/Pathfinder-electron • 3h ago
I released the source for two SwiftUI apps I built for iPhone and iPad.
Nodex's app entry is a SwiftUI App. It's an agentless Linux server monitor over SSH, and it shows host health, services, logs, and Docker or Podman containers.
Termex's app entry is also a SwiftUI App, with SwiftUI screens for servers, keys, known hosts, settings, and onboarding. It's an SSH client with tmux session continuity and native SFTP. Some supporting views also use UIKit.
Both are MIT.
Nodex: https://github.com/magrathean-uk/Nodex Termex: https://github.com/magrathean-uk/Termex
r/SwiftUI • u/prio732 • 11h ago
I built a native SwiftUI iPad/iOS/MacOS client app (not a chromium or browser control hosted like most of the people do) for a local LLM served by any OpenAI-compatible server over the LAN. It’s a chat harness with streaming, conversation history, tool calling, and settings. Partially as a learning exercise in building a harness and partially as a way to access my LLM when I am away from my computer. Here’s the repo: https://github.com/alexyak/Sparkle
Planning to add more features like skills, agents… etc.. There’s an option to use a local on-device Apple model as well.
Disclaimer: I have a decades-long experience in software and application development, including iOS development, but I have been gladly accepting the help from Claude Coding agents 😉.
r/SwiftUI • u/Super-Storage6685 • 19h ago
I build for SwiftUI, AppKit and UIKit on Mac, iPhone and iPad, and my layout used to start with a workspace. A project template can create and open a project, but it can't leave you in an open workspace.