Post

Replies

Boosts

Views

Activity

Reply to Content blockers: ignore-previous-rules not working?
Figured it out. The fix was literally staring me in the face! The JSON I posted here was 100% correct, but what I had in my code was 1 character wrong. Explanation: "if-domain": ["*mydomain.com"] is correct, but in my code I had an extra period in there:"if-domain": ["*.mydomain.com"], i.e. *.. You don't need a period in there; the * covers that for you.
Topic: Safari & Web SubTopic: General Tags:
Feb ’25
Reply to Correct way to label TextField inside Form in SwiftUI
I've never needed to do this, but I've had a quick look, and this seems reasonable: var body: some View { VStack(alignment: .leading) { Form { Text("First Name") TextField("", text: $firstName, prompt: Text("Required")) Text("Last Name") .padding(.top, 10) TextField("", text: $lastName, prompt: Text("Required")) Text("Email") .padding(.top, 10) TextField("", text: $email, prompt: Text("Required")) Text("Job") .padding(.top, 10) TextField("", text: $job, prompt: Text("Required")) Text("Role") .padding(.top, 10) TextField("", text: $role, prompt: Text("Required")) } .formStyle(.columns) .padding(.horizontal, 16) .padding(.vertical, 16) Spacer() } } The key is .formStyle(.columns).
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’25
Reply to Battery Health
Hi. These forums are for third-party developers (i.e. not Apple employees) who write apps for Apple's platforms. We ask for help on code issues and how to do certain things in code etc. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Topic: App & System Services SubTopic: Hardware Tags:
Feb ’25
Reply to Please provide me with an access code to TestFlight
If you want to test an app via TestFlight you need to contact the developer of the app, not us. We're just random developers who write apps for Apple's platforms - we're not Apple's employees, and your scatter-gun approach of asking for a TestFlight code on these forums is not going to get you anywhere. Contact the developer of the relevant app directly.
Feb ’25
Reply to When is the unverified branch of AppTransaction.shared entered?
I use this: private func handle(transaction: VerificationResult<StoreKit.Transaction>) async { guard case .verified(let transaction) = transaction else { return } // Do something with the verified transaction... await transaction.finish() That should ignore any transaction that's not verified. Is an unverified transaction for a jailbroken phone, that sort of thing?
Topic: App & System Services SubTopic: StoreKit Tags:
Feb ’25
Reply to Best way to learn Swift
Since you're having issues with the #Preview, instead of: struct MeetingView_Previews: PreviewProvider { static var previews: some View { MeetingView() } } I think this is what you want: #Preview { MeetingView() } Everything else should just work as before. Stick with the route you're going down, to learn the basic principles, then branch out with your own app and you'll soon learn it. If you need help with specific issues, try hacking with swift . com (no spaces).
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’25
Reply to force update app (breaking changes)
I know The Simpsons: Tapped Out game pushed users to their App Store page to update the app when necessary, so it is possible. You should avoid breaking changes at all costs, especially without warning your current users. If you don't want to be able to support both users of the current app and users of the new version, then how about this: Release an update to the version that's on the App Store now, that includes information about the changes, explaining that this version of the app won't function after X date. Set your next version to be released at that date. Don't ever put an option to exit your app in an app. It's an extremely poor user experience.
Jan ’25
Reply to 18.3 Update
Possibly, but no one here can do that. You're in the wrong place. These are the Developer Forums, where developers of third-party apps for Apple's platforms ask each other for hints and tips on coding. These forums are not where Apple's actual employee developers chat about what they're doing in the platform code, and they cannot help you with your issue here. Sorry.
Jan ’25
Reply to Can users create their own subscription plans?
AFAIK, all in-app purchases have to be set up in App Store Connect (or a StoreKit configuration file bundled with the app), and your first IAP has to be released with a build of your app. i'd say it's not possible to implement this sort of subscription. However, given you are almost asking for an honesty subscription - where the user chooses their own price - you could simply set up a number of IAPs at different prices, and let the users pick the one they want to pay for.
Topic: App & System Services SubTopic: StoreKit Tags:
Jan ’25