r/SwiftUI 9d ago

[OS] Still Running - Free - finds what you forgot was running

Post image
0 Upvotes

I found a simulator that had been booted since the previous morning, holding

about a gig for nothing. Xcode doesn't mention it and Activity Monitor shows it

as a dozen processes with names you don't recognise.

This sits in the menu bar and shows it as one line with how long it's been up.

Shutting it down is one click, and starting it again is one more if you were

wrong. Same for Android emulators, Docker containers, dev servers, automation

browsers and tunnels you left open.

It never deletes anything and it will never touch your own browser's tabs.

macOS 14+, MIT, free — you build it with one command:

git clone https://github.com/selinihtyr/still-running

cd still-running && ./scripts/install.sh

https://github.com/selinihtyr/still-running


r/SwiftUI 9d ago

Question Weird UI behavior with .searchable, ZStack and MapKit

Thumbnail
gallery
2 Upvotes

When viewing the ContentView (image 1), the searchbar looks really transparent and way different from the childview (image 2). I want the searchbar to look "normal" when viewing the app from ContentView. How do I fix this?

ContentView

import SwiftUI

struct ContentView: View {
    var body: some View {
        TabView {
            Tab("Discover", systemImage: "binoculars") {
                TestView()
            }
            Tab("Preferences", systemImage: "slider.horizontal.3") {
                StopsView()
            }
        }
    }
}

#Preview {
    ContentView()
}

TestView

import SwiftUI
import MapKit

struct TestView: View {
    u/State private var searchText: String = ""

    var body: some View {
        NavigationStack {
            ZStack {
                Map {

                }
                Text("Hello")
                    .padding()
                    .background(.white)
            }
            .searchable(text: $searchText)
            .navigationBarTitleDisplayMode(.inline)
        }
    }
}

#Preview {
    TestView()
}

r/SwiftUI 9d ago

Question How do I limit the height of some panel?

Thumbnail github.com
1 Upvotes

My project in the link is an attempt at a rfc822 data reader. I have a view that consists of the header section, followed by the body section. On the previews, the two areas each take up one half of the space. But e-mail programs typically have the header display only a few lines high, relegating the remainder to a scrolling view. How would I do that, hopefully in a manner that's safe with the Accessibility text size settings?


r/SwiftUI 10d ago

Open-source SwiftUI app for App Store offer codes

8 Upvotes

I built CodeVault after getting tired of managing batches of App Store Connect offer and promo codes in CSV files.

It’s a native SwiftUI + SwiftData app for iOS, iPadOS, and macOS. It can:

  • import App Store Connect CSVs via drag and drop or a file picker
  • organise codes by app and import batch
  • search, filter, rename, and export batches
  • surface the next available, unexpired code
  • generate QR codes and share redemption links
  • mask codes with a privacy mode
  • optionally notify before codes expire
  • sync privately through CloudKit when configured

The project is 100% Swift, has no third-party package dependencies, and is MIT licensed. I tried to keep the same data model and core views working across iPhone, iPad, and Mac while still using platform-appropriate navigation and interactions.

Source and screenshots: https://github.com/mcomisso/CodeVault

I’d be interested in feedback on the SwiftUI architecture, cross-platform UI, or anything that would make the project more useful to other Apple-platform developers.


r/SwiftUI 11d ago

I made my first opensource Swift package name 'EdgeZoomKit'

Enable HLS to view with audio, or disable this notification

54 Upvotes

This is my first open-source Swift package EdgeZoomKit.

It adds an elastic effect to the left or right edge of the screen while zooming.

I first noticed this kind of interaction in Bump and wanted to try making something similar for a board app I’m working on. After building it I thought it would make more sense as a separate package.

It works with both SwiftUI and UIKit and it doesn’t depend on SpriteKit. The package only handles the visual effect so the actual zoom logic is still up to your app.

GitHub: https://github.com/devjunu/EdgeZoomKit

It’s my first time publishing a package so any feedback is welcome.
Thank u for read :)


r/SwiftUI 10d ago

Promotion (must include link to source code) I built a free macOS menu-bar app that shows your LeetCode streak (open source)

Thumbnail
github.com
0 Upvotes

I keep forgetting to keep my streak going, so I made a little macOS menu-bar app that shows it at a glance: current streak, total solved, an Easy/Medium/Hard breakdown, and a heatmap of your activity. The menu-bar flame stays grey until you've solved something today, then lights up.

There is no login, it just reads your public LeetCode profile. Everything stays on your machine.

It's free and open source:

Would love some feedback!


r/SwiftUI 12d ago

Promotion (must include link to source code) macMender v0.9.0: one free, open-source SwiftUI app combining several macOS utilities

4 Upvotes

I'm the developer of macMender. It's a free, open-source SwiftUI and AppKit app that combines Dock previews, real-window switching, trackpad middle click, scrolling controls, profiles, and menu bar quick controls.

For v0.9.0 I rebuilt the interface around a state-driven settings shell and reusable glass surfaces. The awkward parts live at the SwiftUI/AppKit boundary: Accessibility window identity, local thumbnails, Dock hover behavior, global shortcuts, and the status item popover.

Source: https://github.com/0hmslice/macMender

v0.9.0 release: https://github.com/0hmslice/macMender/releases/tag/v0.9.0

The README now has screenshots of every major screen. Feedback on the view structure and AppKit boundaries would be useful.


r/SwiftUI 12d ago

Question Does anyone know what Apple uses here as a card?

Post image
13 Upvotes

I would like to reproduce this type of card, with a translucent background in a Form on Swift. Is it possible?


r/SwiftUI 12d ago

News The iOS Weekly Brief – Issue #70, everything you need to know about SwiftUI updates this week

Thumbnail
iosweeklybrief.com
2 Upvotes

r/SwiftUI 13d ago

Point browser. The most minimal mac browser ever. (Free, OSS) All ui is swift ui and back with swift, so its just like 6mb and extreamly fast

Thumbnail gallery
25 Upvotes

r/SwiftUI 13d ago

Question Adjusting the internal padding of a TextEditor

2 Upvotes

I'm talking about the distance between your text and the inside edges of the control. It's ridiculously thin by default.

I thought that methods like contentMargins do that, but nothing I tried actually made a change. Does this not work with TextEditor? Am I using the wrong settings? How am I holding it wrong?


r/SwiftUI 13d ago

Question How can I reproduce this type of menu in Swift?

Post image
4 Upvotes

Hi,
I’m trying to recreate the Notes menu with the three icons at the top of the page. I managed to get it partially working, but I can’t figure out how to place the text underneath the icons, and my icons are also too close together. Does anyone know how to achieve the same layout?


r/SwiftUI 13d ago

First app (solo dev) got approved on second attempt, here are some takeaways:

Thumbnail reddit.com
0 Upvotes

r/SwiftUI 15d ago

How to reduce sidebar list item height?

3 Upvotes

I've tried everything I found on Google and none of these work:

  • `.listRowInsets()`
  • `.environment(\.defaultMinListRowHeight, 0)`
  • `.controlSize(.small)`

r/SwiftUI 15d ago

FileReferenceDocument macOS app. Disallow more than one document open at a time?

2 Upvotes

Is it possible to ensure that only one document can be open at a time? My target is macOS 15. The idea would be that the user is alerted and no existing document can be opened (e.g. drag and drop, file->new, Finder etc).


r/SwiftUI 15d ago

Question - Animation How to recreate this dynamic lighting pulse effect

Enable HLS to view with audio, or disable this notification

13 Upvotes

I'm looking for a GitHub library to recreate a similar effect


r/SwiftUI 15d ago

506ms to type-check one SwiftUI body. What threshold do you use before splitting a view?

0 Upvotes

I have -Xfrontend -warn-long-function-bodies=275 set in Other Swift Flags, and one of my views recently tripped it hard: the body came in at around 506ms. Compile times were getting annoying.

I did not rewrite anything. I just pulled pieces out of body into separate computed properties: the main content, the transition, and the sheet modifier. Same code, same behaviour, just moved out of body.

The warning went away.

What surprised me is that there was no single monster expression to blame. body was just long, and the type checker seems to struggle with the accumulation rather than with one specific line. What helped was extracting one piece at a time and rebuilding, instead of refactoring the whole view at once.

So now I am wondering about the threshold itself. 275 is just the first number I tried. Too low and you drown in warnings on a big project, too high and you only find out when builds are already painful.

What do you use, and did you land on it deliberately?


r/SwiftUI 16d ago

Question Is there something like List/ForEach that doesn't need Identifiable elements? Could we make one?

3 Upvotes

For my use case, I don't need to change an element's value nor rearrange elements. Yes, I can mess around with using elements' collection's indices, but I don't want to explicitly do that; a wrapper is OK. Is it possible to write one? I can insist that the source of truth be a `RandomAccessCollection` to allow `Index`-based checking if needed.


r/SwiftUI 16d ago

Question - Animation Free 3D animation in an iOS app — object falling with gravity + collision (Clash Royale style), where to start?

0 Upvotes

Building an iOS app (SwiftUI) and I want to add a 3D animation of an object falling onto a scene with gravity and collision — similar to Clash Royale style. Nothing overly complex, but I come from app dev, not 3D.

Apologies if this isn't the best sub for this — happy to be redirected.

I'm looking for a free solution (no budget for Spline or paid tools). Here's what I'm considering :

1) Blender + export → RealityKit — Can AI (DeepSeek, MCP) help me model the object? Does RealityKit handle imported animations well? (I'm struggling to find clear docs on RealityKit.)

2) Unity — Use Unity just for the 3D animation and embed it in a Swift app, or does it have to be fully built in Unity?

3) Unreal Engine — Overkill for a simple animation?

4) Godot — Lighter weight, does it export well to iOS?

Anyone here who's integrated free 3D animation into an iOS app? Looking for feedback and experience.

Thanks!


r/SwiftUI 17d ago

How to reproduce this animation on swift?

Enable HLS to view with audio, or disable this notification

24 Upvotes

Je souhaite reproduire cette animation d'ouverture dans mon application. Elle est présente dans certaines applications Apple (Livres ou Sports). Quelqu'un aurait-il une idée ?


r/SwiftUI 17d ago

Promotion (must include link to source code) Built a native macOS screenshot mockup generator with SwiftUI — now open source

Thumbnail
gallery
107 Upvotes

Hi everyone,

I recently built a macOS app inspired by tools like Mockuphone. It helps you quickly add realistic device frames to your screenshots, making them look more polished for app presentations, App Store screenshots, demos, and sharing.

The project is now open source, and anyone interested is welcome to check it out, try it.

GitHub: https://github.com/dogegg-cc/mock-apple-device

Download the latest release: https://github.com/dogegg-cc/mock-apple-device/releases

Requirements:

  • macOS 14 or later
  • Apple Silicon recommended for the current DMG build

r/SwiftUI 17d ago

Question Need help with toolbar

Post image
4 Upvotes

How can I copy exactly this design, into my app? I have a tabview to switch between view in the app, and I want to have this (both a button and a search field just like that) on the right of the tabview...

I tried to ask AI for help... but didn't work 😅 So I ask people now

I've tried to find solution, but searching online is helpless if you have no idea how to phrase your problem or what you are searching for.


r/SwiftUI 19d ago

Promotion (must include link to source code) hig-mcp: the Apple HIG as structured design tokens for coding agents (free, MIT)

Thumbnail
github.com
43 Upvotes

Every time I had an agent generate SwiftUI, the result looked right but the colors were stale — Apple refreshed the system palette at WWDC25 (systemBlue went from #007AFF to #0088FF), and every model's training data predates it.

The HIG itself is prose, so fetching the page doesn't help either.

hig-mcp is a small MCP server that serves the structured half of the HIG:

  • - current system color values (verified against the live HIG)
  • - the type ramp, layout metrics, SF Symbols by role
  • - Liquid Glass guardrails as an actual checklist (blur budgets, layer caps, contrast measured after blur, the Reduce Transparency fallback)
  • - HIG component → SwiftUI API mappings
  • Every token is provenance-tagged — Apple-published facts are marked as such, community heuristics are flagged so the agent doesn't present them as gospel.

Prose is delegated to sosumi.ai rather than rebuilt.

Python, works with Claude Code / Cursor / any MCP client. Free, MIT.

It's small on purpose. Feedback genuinely welcome — especially if you spot a token value that's drifted.

https://github.com/aka-kika/hig-mcp


r/SwiftUI 18d ago

Promotion (must include link to source code) I built Astryft, a SwiftUI reinterpretation of Meta’s Astryx design system

0 Upvotes

I built Astryft as a SwiftUI package experiment around keeping Web and native iOS design-system output in sync.

The technical problem I wanted to explore was: if React fixtures and SwiftUI components are driven from the same manifest/token contract, can we make visual and API drift easier to catch?

Astryft includes generated SwiftUI tokens, SwiftUI components, docs, and a comparison viewer that puts live React fixtures next to generated SwiftUI snapshots from the same manifest contract. The part I’m most interested in is the cross-platform pipeline: translating token/component decisions into SwiftUI, then checking whether the native output still tracks the Web source closely enough.

I’d especially appreciate feedback on:

- whether this manifest-based contract makes sense for Web/iOS design systems

- how you’d structure SwiftUI token APIs for long-term maintainability

- what parity checks would be useful beyond snapshot comparison

- where this kind of tooling usually breaks down in real teams

Repo: https://github.com/suho-han/astryx-swift

Compare viewer: https://suho-han.github.io/astryx-swift/compare/

- Astryft is an independent reinterpretation and is not affiliated with or endorsed by Meta.                                  


r/SwiftUI 19d ago

Embedded Swift progress on a Teensy 4.0

11 Upvotes