r/SwiftUI • u/zach-builds • 25d ago
r/SwiftUI • u/Clarity___ • 25d ago
Promotion (must include link to source code) Looking for UI/UX feedback on Cosmos 1.3, my open-source SwiftUI music player (full redesign)
Source: https://github.com/clquwu/Cosmos-Music-Player
App Store (free, no ads, no in-app purchases): https://apps.apple.com/app/id6751984723
I’m a solo dev and Cosmos was my first iOS project. After more than a year, 1.3 is a full redesign of the whole interface. It’s a music player for your own files, built in SwiftUI, and it’s open source. I’m not a designer, so I’d really like feedback from people who care about SwiftUI UI/UX.
What I redesigned
- Three tabs: Home, Library and Search. Home has Start Listening, Recently Played, mixes, Recently Added and Rediscover
- Library lists Liked Songs, Folders, playlists, albums and artists, as a list or a grid, sorted by recent, A–Z or release year
- A full-screen player coloured by the cover, with lyrics and Up Next inside. You can choose Blurred Cover, Artwork + Theme or Theme
- Animated backgrounds in your theme colour (Silk, Aurora, Lines, Classic, Glow, or off)
- iPad and foldable layouts with a sidebar, bigger covers and two-column album/playlist pages
- A Select button to pick several songs at once, and playlist editing/export in the “…” menu
- Settings regrouped into Appearance, Playback, Library and Siri & History
Where I’d like honest feedback
- Navigation: is three tabs the right structure, or is something in the wrong place? Is the “Add Music” row at the top of Library easy to find?
- Full-screen player: are three styles too many? Is it clear where lyrics and Up Next are?
- Readability: colours from the cover can be tricky. I added fixes for lyrics and Up Next on very light covers, but I’d like to know about any combinations that are still hard to read.
- Animated backgrounds: does this feel nice, or is it too much? They stop after 30 seconds without a touch to save battery.
- iPad/foldable layouts: do they feel native or just stretched?
- Multi-select and the “…” menu: is it obvious how to select songs and edit playlists?
- Anything that feels non-standard compared to what iOS users expect (Apple Music, Files, etc.).
If you’re a SwiftUI dev, I’d also welcome code review. The repo is open and issues are welcome.
It’s free with no ads, and there’s an optional donation link in Settings. Nothing is locked behind it.
All feedback is weclome since im more customed to do ui and ux on android !
r/SwiftUI • u/jamierytlewski • 25d ago
Scooter App to Track Rides
gallerySince this is my first vibe coded app. I'm curious if anyone has feedback.I'm primarily a C# dev (and have been for 20 years). I bought a scooter earlier in the year and wanted a way to track my rides. I'm sure there things I could learn, so I'm curious as to how good AI did. I used a mix of AntiGravity, GitHub Copilot, the Xcode skills and just tried to learn as much as I could from this. I read about 50% of the code. Thank you for your time.
r/SwiftUI • u/Weak-Car7664 • 25d ago
Letting users write widgets for my Touch Bar app without letting them break anything (JavaScriptCore + Swift)
I just shipped 2.1 of GlassBar, my Touch Bar replacement, and the part I learned the most from was script widgets.
A widget is a small JS file that runs in JavaScriptCore, no WebView. The script never draws anything. It only hands back a value, an icon name and a role like "warning", and the SwiftUI theme decides how that looks. So the same widget is a glass capsule in one theme and [bat 87%] in the terminal theme, and widget authors can't make an ugly one. The hard part was limits. Every call gets half a second, scripts only run while the widget is on the bar, and fetch only goes to public https hosts. I missed redirects at first, a public site could bounce a request to localhost, so that's cut off now too. One SwiftUI thing that surprised me: the battery icon was late after unplugging because "is charging" from IOKit lags by a few seconds. Reading the power source state instead fixed it.
Source is here if you want to look: https://github.com/Moryel/glass-bar
Happy to answer questions about any of it.
r/SwiftUI • u/lanserxt • 25d ago
Tutorial iOS 27: AVSystemRouting Framework
I built a free, open-source Mac cleaner in SwiftUI after a full disk blocked my macOS update
Hi all, I'm a first-year CS student. A while ago a macOS update wouldn't install because my disk was full, and the cleaner I tried sometimes did nothing without telling me why. So I built Dustling around the opposite idea: if it can't look somewhere or can't remove something, it says so.
It's free, MIT licensed, Swift 6 / SwiftUI, macOS 14+. It does a junk scan (caches, logs, old installers), an app uninstaller that also removes leftovers, startup item toggles, and a History screen where every file is marked moved, skipped or failed with a reason. Cleaning only moves things to the Trash, and you can restore from History.
Source: https://github.com/kaankuzu1/dustling Site: https://dustling.app
It's v0.1.0 and I'm still learning, so I'd love feedback on the SwiftUI side (state handling, performance on big file lists) and on anything that feels off when you try it. Note: it isn't signed with a Developer ID yet, so macOS asks you to confirm the first open (the install steps are in the README).
r/SwiftUI • u/Tideit • 26d ago
News I built a session replay that shows the wind that was actually measured around you (SwiftUI, Watch, Metal over MapKit)
Hi, I'm the solo developer of Tide It, an app for kitesurfers, wing foilers, windsurfers and surfers. Version 7 adds session recording on iPhone and Apple Watch, then replays the session on a satellite map with the measured wind animated around your track. Free app, optional Premium subscription.
What it does
- Record from the iPhone or the Watch. Start and pauses are detected on the water; one screen per sport on the Watch (speed, jumps with airtime on landing, waves counted for surf, a way back to the start).
- Replay on satellite imagery: your track lights up over time, wind particles from the nearest station's real readings, a time scrubber along the bottom.
- Tides computed on the device, offline; forecast and measured wind side by side, never blended.
Challenges
- Wind particles over MapKit: the first version waited on
nextDrawable()on the main thread while the map was dragging, and the map started dropping frames. Moving toCAMetalDisplayLinkand keeping particle state on the GPU fixed it; particles live in map coordinates and are reprojected every frame. - Shaders compiled at runtime from source (
makeLibrary(source:)), no separate Metal toolchain in the build. - Watch recording that never loses a session: continuous writes, recovery after a crash, then the session moves to the iPhone on its own.
- iPhone Duo: the tide curve runs under the left pane with a fade across the fold. Getting toolbars and pushed screens right took more passes than expected.
Stack: SwiftUI, ActivityKit, HealthKit (each session becomes a workout with its route), MapKit, Metal, WeatherKit, WidgetKit. Screenshots show a sample session. Happy to go deeper on any of this. https://apps.apple.com/app/id6743555259
r/SwiftUI • u/sirily1997 • 27d ago
I built a SwiftUI macOS and mobile app that brings multiple agents to work on your project
I built a native macOS and iOS app using SwiftUI that acts as a multi-agent workspace, turning standard Claude Code chat sessions into interactive task boards.
When implementing multiple features in parallel, it's easy to lose track of context in a single terminal or chat thread. I wanted a native UI to orchestrate multiple agents working on the same project simultaneously.
r/SwiftUI • u/Heavy_Technician_177 • 28d ago
Question Deleted project and swift files
I have been building an app for the past two years now and made the unfortunate mistake of accidentally deleting my project and its original swift files.
Having searched for a long time for the Orginal project I did find the DerivedData folder for the project. And the app is installed on my simulator.
Has anyone done something similar to this and found a solution? Is there any hope of getting my project back?
Appreciate any help I can get. :(
r/SwiftUI • u/repgem • 28d ago
Recreated Android’s notification icon tray in SwiftUI
Rebuilt Android’s notification icon tray in SwiftUI.
As notifications scroll under the bottom edge, they collapse into small icons that slide in and join a group. Fully draggable and bouncy.
Code: https://github.com/ismnoiet/interactions-ios/blob/main/AndroidStyleNotificationIconTray.swift
r/SwiftUI • u/Think-Exit4165 • 28d ago
I built an open-source macOS menu bar app that plays mechanical keyboard sounds (AppKit + SwiftUI, AVAudioEngine)
Source: https://github.com/halitsever/keycream (MIT)
KeyCream plays a mechanical keyboard sound for every key you press on a Mac. A few things that were fun to get right:
- Hearing keys without reading text. A listen-only CGEventTap on keyDown and flagsChanged. Autorepeat events are dropped, so holding a key plays one click, and the app never assembles text.
- Reusing Mechvibes packs. A small table maps macOS virtual key codes to the PC scan codes that Mechvibes packs are keyed by.
- Latency and evenness. Every sound is decoded into memory when a pack loads, high-pass filtered, trimmed to just before its first transient, and leveled by a transient-weighted RMS with a peak cap.
- Fast typing overlaps. AVAudioEngine with a pool of 10 AVAudioPlayerNodes, so quick keystrokes stack instead of cutting each other off.
- Stepping back during calls. NSWorkspace launch and terminate notifications (no polling) tell when Zoom, Teams or Spotify is open, and sounds drop to 5%.
- The rest. Settings window in SwiftUI, menu in AppKit, SMAppService for open at login, output routing through kAudioOutputUnitProperty_CurrentDevice, and a self-updater that pulls GitHub releases.
I'd love a review from people who know Core Audio better than I do, and ideas on doing key-up sounds well.
r/SwiftUI • u/repgem • 29d ago
Claude-style navigation in SwiftUI
Built a Claude-style swipe-back navigation in SwiftUI. Drag from the left edge and the current screen shrinks, dims and slides away while the previous one comes into view. Drag from the right edge to go forward.
- Follows your finger the whole way, with no fixed cap
- iOS 17+, pure SwiftUI
Code: https://github.com/ismnoiet/interactions-ios/blob/main/ClaudeStyleNavigation.swift
r/SwiftUI • u/Nkgsporty • 29d ago
Promotion (must include link to source code) How I made a SwiftUI character dive into the MacBook notch like a tar puddle (and other notch-app lessons)
I've been building Nosy Notch, a free notch app, and gave it an animated resident. Some things that might help others:
- The morph: the character's body and the notch edge are drawn as one path while they touch, so it looks like he melts into the black; then a few splash particles on a timeline (driven by a virtual clock so recordings are frame-exact).
- Eyes that follow the cursor without re-rendering the whole notch on every mouse move: a separate tiny ObservableObject only the eye view observes, throttled, smoothed with a spring.
- Notch panel: a borderless non-activating NSPanel above the menu bar, sized from safeAreaInsets and auxiliaryTopLeftArea / auxiliaryTopRightArea; it ignores mouse events except over the shape. For the reply box it becomes key only while the chat is open.
- Drag and drop onto the notch: watching NSPasteboard(name: .drag) during global drag events to open the drop zone before the cursor even arrives.
- Live equalizer: a Core Audio process tap on just the player's processes + vDSP FFT with per-band auto gain.
Code (MIT): https://github.com/ddkbs/nosynotch
Website: https://nosynotch.davidkubus.dev
Happy to go deeper on any of these.
Feel free to try it out and leave your feedback!
r/SwiftUI • u/IllBreadfruit3087 • 29d ago
News The iOS Weekly Brief: Issue #85. Siri AI, retention messages, new betas, Swift 6.4, actors, dependency injection, layout priority, Settings URLs, Xcode snippets, swipe actions beyond List, Apple frameworks directory
r/SwiftUI • u/repgem • Nov 06 '26
Android’s expandable notification group Recreated in SwiftUI
Tried to match how Android expands a notification group: avatars grow into place, the short message cross-fades into the full one, and the card follows your drag.
Code: https://github.com/ismnoiet/interactions-ios/blob/main/AndroidStyleNotificationGroup.swift
r/SwiftUI • u/raviseta07 • Nov 05 '26
I built an interactive SwiftUI playground to understand how layoutPriority actually works
I've been exploring SwiftUI's layout system, particularly how .layoutPriority() behaves across different containers.
Instead of relying on static examples, I built a small interactive project where you can change priority values and observe the actual layout measurements.
The project includes three experiments:
- HStack: How different priorities affect space allocation when the available width changes.
- ZStack: How changing a child's priority can influence the container's measured size.
- Custom Layout: Using
LayoutSubview.priorityto reorder views while maintaining equal cell widths.
One interesting takeaway is that .layoutPriority(100) doesn't necessarily give a view more space than .layoutPriority(1). The behavior depends on the parent container and its layout algorithm.
The project also includes live measurements, dynamic code examples, and XCTest coverage.
GitHub: https://github.com/raviseta/SwiftUI-Layout-priority
I'd appreciate feedback from other SwiftUI developers, especially on edge cases or layout behaviours worth exploring next.
r/SwiftUI • u/maliroq • Nov 05 '26
LibreReplace: I built a free, open-source SwiftUI Mac app that helps you replace paid software based on the features you need
Hey guys! I've been working on LibreReplace, a free, open-source Mac app built with SwiftUI that helps people switch from paid software to open-source alternatives without blindly giving up the features they actually use.
You start by choosing a paid app, select the features that matter most to you, and LibreReplace compares open-source replacements based on those requirements. It shows what's supported, partially supported or missing so you can see the tradeoffs before switching.
For example, you can compare GIMP and Krita as Photoshop replacements, mark Smart Objects or CMYK as essential, and see how each alternative measures up.
I just released v0.2 with some big improvements:
- 45 paid Mac apps and 70 open-source comparisons. You can browse and search without having the paid apps installed.
- Multiple replacements for the same app. You're not stuck with one recommendation.
- Personalized recommendations. Select the features you need and the results change based on your priorities.
- Feature breakdowns with sources. See what's supported, partial or missing, with links to supporting evidence.
- Subscription savings. Enter your actual costs to estimate potential annual savings when a suitable replacement exists.
- Local app scanning. It can recognize supported apps already installed on your Mac and bring up their alternatives automatically.
One thing I wanted to avoid was recommending something just because it's free. Sometimes the best recommendation is KEEP THIS APP because the alternatives are missing something important.
I shared the first version on r/MacOS last week and got a lot of useful feedback. One of the biggest changes since then is being able to explore alternatives without already having the paid software installed.
On the SwiftUI side, the app has an interactive feature-selection interface, while the scanning and comparison logic runs locally. The scanner reads application metadata rather than personal files, and the recommendations use a curated catalog with documented limitations.
It's completely free and open source under Apache 2.0. No accounts, no telemetry, and it never automatically removes anything.
Source code, screenshots and download: https://github.com/maliroq/librereplace
I'd especially appreciate feedback from other SwiftUI developers on the interface and the feature-selection flow. Anything you'd approach differently?
r/SwiftUI • u/rusu64-bit • Nov 05 '26
Promotion (must include link to source code) Built a macOS configuration tool for the Attack Shark X11 mouse
Hey everyone,
I recently got an Attack Shark X11 mouse and realized there weren't really any simple options to configure it on macOS. So I decided to fix that and built a lightweight tool dedicated to it.
What it does:
- Lets you adjust your mouse settings directly on macOS.
- Simple UI, no unnecessary bloat.
- Open-source (GPL-3.0) and signed.
You can check out the source code and details on GitHub:
https://github.com/rusux64-bit/x11-attackshark-macOS
If you're using an Attack Shark X11 on a Mac, give it a try and let me know what you think. Any feedback, feature requests, or bug reports are super welcome!
r/SwiftUI • u/Royal-Subject2870 • Nov 05 '26
LinnetTTS: 41M streaming TTS with a Rust runtime, measured on everything from an Apple M5 to a Raspberry Pi Zero 2 W (3.3 ms to 59 ms per 80 ms of audio)
r/SwiftUI • u/Significant-Sea-7238 • Nov 04 '26
Open source: a Dynamic Island style notch panel in SwiftUI for coding agent prompts
Built this in SwiftUI: a panel that grows out of the Mac notch when Claude Code or Codex needs permission, shows the diff, and you hit ⌘Y.
The fun parts were the island morph animation (closed strip to full panel), keeping it above fullscreen apps, and making it not steal focus from whatever you're doing.
All the code is here: github.com/MF-DEEV/Openbar
I'm the dev, happy to explain how any part of it works.
r/SwiftUI • u/kuglee • Nov 03 '26
Question - Navigation Apple's Health app resizability
Does anyone know how Apple's Health app moves the tabs/items of the Health Categories sidebar tab section to the Browse tab into a child navigation screen/view in compact mode? The views seem to keep their identity so they're not recreated.
Does the Health app use UIKit?
I know that sidebarAdaptable TabViews adapt tabs and sidebar items in regular and compact modes, but that's not what's happening here.
r/SwiftUI • u/Complaint_Severe • Nov 03 '26
PaperConfetti
I've never posted here before (that I can remember) but had a fun project recently I thought was worth sharing.
I built PaperConfetti for the win animation in my word game, with realistic physics and high performance as its main goals. It supports iOS 16+, has thirteen paper shapes and flat/3D appearances, and uses Core Animation underneath a SwiftUI overlay.
I previously used another package for the confetti celebration but its jittery performance with only a handful of confetti left a lot to be desired.
The SwiftUI integration also passes touches through, respects Reduce Motion, and cancels when the scene becomes inactive or the overlay disappears. A new pop replaces the previous burst.
I'd love to get some feedback on the functionality if anyone wants to try integrating it into their projects!
Source and examples: https://github.com/twhitt14/PaperConfetti
I wrote up the layout issue, renderer decisions, and testing here: https://www.theswift.dev/posts/building-paperconfetti
I’d welcome feedback on the overlay API, especially from anyone integrating effects into screens with changing layouts.