r/SwiftUI • • 3h ago

Tutorial iOS 27.1: DeviceHinge

Thumbnail
antongubarenko.substack.com
3 Upvotes

r/SwiftUI • • 5h ago

Solved I rebuilt a Linux desktop's bar panels in SwiftUI, matching the original's design pixel for pixel

Post image
3 Upvotes

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 • • 19h ago

Solved GitHub - SRAYANSH-GUPTA/Blackburn---Ios-Dev-on-linux

Post image
2 Upvotes

r/SwiftUI • • 20h ago

onDisappear alternative? Trying to detect when a tab is not active in a child view.

2 Upvotes

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 • • 3h ago

I built Hedwig – A native macOS app to manage API keys and development secrets

Thumbnail reddit.com
1 Upvotes

r/SwiftUI • • 3h ago

Promotion (must include link to source code) I open-sourced two SwiftUI iOS apps: a Linux server monitor and an SSH client

1 Upvotes

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 • • 11h ago

A native SwiftUI iPad/iOS/MacOS client app for a local LLM

0 Upvotes

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 • • 19h ago

Tutorial My Swift layout: one Xcode project, no workspace, one local package for every platform

Thumbnail
aleahim.com
0 Upvotes

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.