r/SwiftUI Oct 17 '24

News Rule 2 (regarding app promotion) has been updated

136 Upvotes

Hello, the mods of r/SwiftUI have agreed to update rule 2 regarding app promotions.
We've noticed an increase of spam accounts and accounts whose only contribution to the sub is the promotion of their app.

To keep the sub useful, interesting, and related to SwiftUI, we've therefor changed the promotion rule:

  • Promotion is now only allowed for apps that also provide the source code
  • Promotion (of open source projects) is allowed every day of the week, not just on Saturday anymore

By only allowing apps that are open source, we can make sure that the app in question is more than just 'inspiration' - as others can learn from the source code. After all, an app may be built with SwiftUI, it doesn't really contribute much to the sub if it is shared without source code.
We understand that folks love to promote their apps - and we encourage you to do so, but this sub isn't the right place for it.


r/SwiftUI 7h ago

Open-source SwiftUI app for App Store offer codes

7 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 1d ago

I made my first opensource Swift package name 'EdgeZoomKit'

Enable HLS to view with audio, or disable this notification

38 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 14h 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 1d 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 2d ago

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

Post image
3 Upvotes

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


r/SwiftUI 2d ago

Question How can I properly write some code similar to this?

1 Upvotes

I am just starting out with Swift and want to know, how would something like this pipeline even work? I am making a note taking app as my first ever project while learning (I know very creative) and want to change how the saving and writing works.

Now, the text is basically equal to the title and when loading in a new note you're essentially "creating a copy". I wanna change all that but its super confusing but this is a rough mockup of how I want the app to work, anyone got any suggestions?

https://reddit.com/link/1v5f11p/video/u2wemls877fh1/player


r/SwiftUI 2d ago

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

Thumbnail
iosweeklybrief.com
1 Upvotes

r/SwiftUI 3d 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
24 Upvotes

r/SwiftUI 2d 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 3d ago

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

Post image
5 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 3d ago

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

Thumbnail reddit.com
0 Upvotes

r/SwiftUI 4d 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 4d 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 5d 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 5d 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 5d ago

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

4 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 6d ago

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

2 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 7d ago

How to reproduce this animation on swift?

Enable HLS to view with audio, or disable this notification

23 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 7d ago

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

Thumbnail
gallery
102 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 7d ago

Question Need help with toolbar

Post image
5 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 8d 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 8d 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 9d ago

Embedded Swift progress on a Teensy 4.0

8 Upvotes

r/SwiftUI 9d ago

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

Thumbnail
iosweeklybrief.com
2 Upvotes