r/iOSProgramming • u/soumyaranjanmahunt • Jul 29 '26
Article Stop using @unchecked Sendable
Turning a lock into a SerialExecutor to get Swift 6 data-race safety without @unchecked Sendable
r/iOSProgramming • u/soumyaranjanmahunt • Jul 29 '26
Turning a lock into a SerialExecutor to get Swift 6 data-race safety without @unchecked Sendable
r/iOSProgramming • u/ivanezzzzz • Jul 29 '26
Hello folks,
I am preparing a major update of an app and it has features I am going to charge a subscription for. Apple requires me to have a link to Terms of Service because of that.
AFIK I can use Apple's generic terms of service but I am not sure about that. I am also not sure what to put in my own TOS and how much of it is/could overlap with the Privacy Policy.
The app does not collect any data, it uses a combination of SwiftData + CloudKit + Apple Intelligence for a smart feature/
Any advice would be much appreciated, thanks!
r/iOSProgramming • u/Fun_Moose_5307 • Jul 29 '26
Honestly pretty self explanatory question.
I've tried embedding it in various Stacks, moving it to a subview, .contentShape(Rectangle()), none of which have worked.
Below is a subview excerpt from inside a View struct:
var coursePicker: some View {
ZStack(alignment: .trailing) {
Picker("Course", selection: selectedCourseIDBinding) {
Text("Free period").tag(Optional<UUID>.none)
Divider()
ForEach(courses.map {(id: $0, course: $1)}.sorted(by: {$0.course.name < $1.course.name}), id: \.0) { entry in
Label(entry.course.name, systemImage: entry.course.icon).tag(entry.id)
}
}
.opacity(0)
.labelsHidden()
.buttonStyle(.borderless) //Tried using u/ikonet's solution, unfortunately to avail not
let fakeBinding: Binding<String> = Binding(get: { course.name }, set: { _ in } )
Picker("fake picker!!", selection: fakeBinding) { Text(course.name).tag(course.name) }
.labelsHidden().allowsHitTesting(false).tint(Colour.primary)
}
.layoutPriority(1)
.if(course2 == nil) {
$0.padding(.trailing)
}
.contentShape(Rectangle())
}
r/iOSProgramming • u/Select_Bicycle4711 • Jul 29 '26
There are lot of different ways to perform navigation in SwiftUI. You can use navigationDestination on the parent screen and let is handle the navigation. You can create a router that works with enum based routes etc.
In either case. How are you testing your navigation flow for your app? Are you writing unit tests? Are you writing UI Tests or even complete E2E test that test a complete feature end to end? OR are you writing all of them?
A simple scenario can be:
As a user when I create a student account then after creation, I should be taken to the student home screen.
r/iOSProgramming • u/EchoImpressive6063 • Jul 28 '26
I have both an iPhone SE2 and iPhone 15 and both are plugged into my mac at the same time. I built the app in Xcode and am running it on both devices. Memory usage on the SE2 is 1GB while on the 15 it's 500MB. Why could that be? I am using CoreML, ARKit and some metal shaders if that makes a difference. These are debug builds.
r/iOSProgramming • u/Ok-Tomatillo-8712 • Jul 28 '26
Every post in this format makes me want to set myself on fire.
Then there’s the wall of clearly AI generated description, in markdown format, with just the right emoji bullet points.
r/iOSProgramming • u/shargath • Jul 28 '26
A few weeks ago, I released new app on the App Store. It got some traction on Twitter, so I opened App Store Connect feeling hopeful about the sales numbers. Instead, I saw "Not Enough Data".
I refreshed it few hours later. Same thing. I checked again the next day. Still not enough data. I actually saved a screenshot of this.
It is not only a launch-day problem. You ship a big update, announce it on Reddit or X, start an ad campaign, or unexpectedly get some attention, but the analytics are always behind.
So I built InitSignal. It is deliberately much narrower than a traditional analytics SDK. You add a lightweight Swift package to your app, and it sends one event when someone opens the app for the first time. After that, the SDK goes quiet.
Privacy was a constraint for me, I wanted the App Store privacy nutrition labels stay as minimal as possible, so the SDK only sends the basic context needed to make each signal useful. No identity, sessions, screens, or behavioral history. At the same time, the goal is to give developers as much useful information as possible without invading their users’ privacy.
The dashboard shows for each download:
- the app version
- device
- OS
- storefront
For paid apps, InitSignal uses storefront pricing to estimate gross revenue and proceeds after Apple’s cut.
I also added Slack and Telegram for notifications, which I've been using with my own apps for the past few weeks, and the dopamine hit is real.
I recorded a quick walkthrough showing how InitSignal works:
https://www.youtube.com/watch?v=YajsKsYLdi4
Tech Stack
- Node.js and TypeScript with Postgres for backend and API
- React and TypeScript for the web app dashboard
Development Challenge
The interesting problem was deciding what “new” means without identifying or continuously tracking a user. The SDK stores a local first-launch marker so later launches send nothing. It also uses StoreKit 2 app transaction metadata to avoid reporting an existing customer as newly acquired when they first install a version containing InitSignal. The API deduplicates retry attempts on the backend.
It's available today, would love to hear your thoughts or any feedback!
https://initsignal.com
The Swift SDK is here:
https://github.com/InitSignal/initsignal-swift
If you ship iOS or macOS apps, how do you currently deal with the reporting delay after a launch or major update?
r/iOSProgramming • u/nakshhhhatra • Jul 28 '26
Hi! I recently switched to a MacBook and wanted to know which terminal people go for. I am sure there are tons of posts on this talking about ghostly, iterm2, warp, etc but I have also been hearing a lot of memory management issues in each of them.
From experience, which one seems the most convenient to run in the long term?
r/iOSProgramming • u/Tom42-59 • Jul 28 '26
Hi,
I made a public repository that requires no hosting for users to be able to create GitHub issues directly from your app.
Recently added a feature that allows the creating user to reply to your comments.
This does require you to distribute your app with a GitHub token. This isn’t designed for large scale apps, but smaller apps for indie developers.
r/iOSProgramming • u/Hedge-Maze • Jul 28 '26
I currently have an iPhone-only puzzle game that’s live and running well. I’m starting to look into expanding it to iPad and possibly macOS but am definitely beginning to understand what scope creep really means haha
For iPad:
- How much work is it usually to make an existing iPhone app feel properly native on iPad rather than just stretched out? I’m not an iPad user so am not as familiar with iPad UI conventions. Any good resources for a clean port?
- Does supporting iPad add much ongoing maintenance when releasing updates?
For macOS:
- I’ve heard Mac Catalyst is an option for porting it over, would this work for a relatively simple puzzle game? My user base on Mac is extremely small so not a huge priority
I’d love to hear from anyone who has taken an app through either process!
r/iOSProgramming • u/fishingncars • Jul 28 '26
Submitted my new build for review 3 weeks ago and it is still under review, requested expedited review and nothing.
Anyone else been experiencing this? My new update is a pretty large one that I would like to get out there but apple is kind of stonewalling me.
r/iOSProgramming • u/FullAcadia9391 • Jul 28 '26
I have everything set up and all my keys are verified, but when I try to get the offers from apple all I get is an empty list using Product.products(:for)
I have a sandbox account set up and the offers are in “Ready to review” state. The paid app agreement is active and my bank info is set up. I don’t know what the issue is. Is there a known issue where STOREKIT just doesn’t reply with the offers that are set up for newer apps?
r/iOSProgramming • u/linghoh • Jul 27 '26
I don't want to buy a mac. But I need Xcode for the coding test.
r/iOSProgramming • u/TKB21 • Jul 27 '26
I like to keep track of how my keywords rank and recently noticed outside the top 5 there was a complete inversion where a lot of low ranking AI slop was pushed up towards the top and others such as much self were put in their place. Was just wondering if this has occurred with anyone else.
r/iOSProgramming • u/Longjumping-Ruin-647 • Jul 27 '26
I'm building a skill-based contest app where users
compete to have the lowest screen time over 7 days.
Entry fees go into a prize pool and the winner takes
most of it (platform takes 5-10%).
I know some US states restrict skill-based cash
contests. Does anyone know:
Similar apps like Steppa (step challenge with prize
pool) are already on the App Store in the US, so
the model is proven.
Thanks!
r/iOSProgramming • u/Evening_Hawk_7470 • Jul 27 '26
for indie ios apps, i think review triage is usually set up too late. people build analytics, crash reporting, maybe support email, then treat app store reviews as something to check when they remember. and then after a release, reviews are basically public smoke tests.
the setup i’d want before any meaningful update:
watch 1-2 star reviews harder for 72 hours
separate crash/login/payment/subscription/data-loss language
tag reviews by version where possible
reply only when you can say something concrete
send repeated issue patterns into the same place bugs already live
the reply there 's actually a bit less important than the routing part,
'sorry, please email support' is not useless at all but i mean it also does not fix the loop :(. if three users say the same thing after version 2.4, that should become a release issue, not just three polite replies, and i’ve used many things for that and now trying out something like appfollow around this because it seems to keep reviews, replies, tags, and version-ish context closer together. for a smaller app, a spreadsheet and calendar reminder can be enough.
so, the main thing is having the habit before the angry reviews arrive.. but what is your experience?
r/iOSProgramming • u/aclima • Jul 27 '26
A short blogpost about avoiding default cases
r/iOSProgramming • u/inAbigworld • Jul 27 '26
In my ios app, I want to implement a system where when the user uses a feature 3 times then they'll be asked to buy premium. I want this record (number of the feature being used) to survive uninstall so users cannot abuse it; but it has to be without apple account login. What's the best way to achieve this?
r/iOSProgramming • u/CaseyStoner • Jul 27 '26
r/iOSProgramming • u/comfyyyduck • Jul 26 '26
Apple recently introduced the Core AI framework alongside native Gaussian splat rendering in RealityKit, so I wanted to see if I could connect the two.
I converted Apple's SHARP (single-image 3D Gaussian reconstruction) PyTorch model into a Core AI .aimodel, ran inference entirely on my iPhone, converted the resulting tensors into a GaussianSplatResource.BufferResource, and rendered everything with GaussianSplatComponent.
The reconstruction shown here was generated from a single photo and contains roughly 1.18 million Gaussian splats, which you can freely fly around in the app.
Everything runs locally on the device, with no server inference or cloud processing.
The project is open source if anyone wants to explore the Core AI → RealityKit pipeline:
https://github.com/AryanRogye/SharpOnPhone

r/iOSProgramming • u/Imnotyourbuddytool • Jul 26 '26
Please help me with testing and feedback!
I'm a network engineer/computer repair guy and not much of a coder. But with AI I decided to try making my own music player. I was hoping some of you would be willing to try it out and let me know what you think. The primary features are:
-Gapless playback with local files
-Personal streaming service via VPN or public DNS
-Download streaming library files to device
-Manage metadata tags individually or in mass
-Download album art and save to metadata permanently
-Multiple visual themes
Public beta link:
Resonance Beta v1.0 (https://github.com/thnikkaman/Resonance/tree/Resonance-Beta-v1.0)
Source ZIP: download Beta v1.0 (https://github.com/thnikkaman/Resonance/archive/refs/tags/Resonance-Beta-v1.0.zip)
r/iOSProgramming • u/Regular-develop650 • Jul 26 '26
Not on the device screen, but outside of it. E.g. say I have a Screenshot advertising iCloud Sync, can I put an iCloud SF symbol at the top of the screenshot alongside the text?
r/iOSProgramming • u/Overthereunder • Jul 25 '26
Hello,
What would be the best way to have a large amount of complex maths formulas on an iPhone app?
Would it be better to generate latex in IOS itself, or generate outside and instead create the formulas outside and then have them stored in the app? (picture, pdf, or svg etc)
Any particular pros and cons of each method in regards to speed, memory use/size, usability, legibility etc?
Thanks very much
Cheers
r/iOSProgramming • u/Cy-Dev • Jul 25 '26
Hey everybody,
I read in the iOS 27 Dev Beta 4 Release Notes that a launch screen is going to be required once the App Store accepts apps built with the iOS 27 SDK, or the app/update is going to be auto rejected.
So I looked into that, as my app doesn’t have one currently, and learned that if you want to make a custom one you still have to use a storyboard file. So I followed a guide and made a LaunchScreen.storyboard using the template. Then I wanted to add that in the target settings, it shows up in the list but it just won’t save it. It’s also not logged in the changes. When manually typing in the file name it does save it as it shows up in the changes, however it still clears out the field in the target settings again and the launch screen also doesn’t show up when running the app on device.
Does anyone have any idea what could be causing this?