Post

Replies

Boosts

Views

Activity

Reply to Function types as return types
If you make a mistake in your post you have a one-hour window in which you can edit it. If you're outside of that one hour, just reply to your original post. There's no need to create a duplicate thread for the same issue just because you didn't format something properly; that just clutters the forums. Anyway, correctly formatted: func stepForward(_ input: Int) -> Int { input + 1 } func stepBackward(_ input: Int) -> Int { input - 1 } func chooseStepFunction(backward: Bool) -> (Int) -> Int { backward ? stepBackward : stepForward } // Second version func chooseStepFunction(backward: Bool) -> (Int) -> Int { if backward { stepBackward } else { stepForward } } I don't get any errors, so this can't be the code that's causing it. The first version with the ternary operator works fine. As an aside, in Swift, if your function only does one thing then you don't need the return keyword.
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’25
Reply to Backup when wanting to connect to MacBook
Okay, that makes more sense. Does your iPhone work, otherwise? If so, I wouldn't restore it unless you desperately need to put that game file on there. If you do, then you probably need to restore your iPhone, and you should be able to restore from your iCloud backup. This is one of the pitfalls of the betas - occasionally, something goes wrong and you have to start again. It's also a good reason for not installing the betas on your primary device.
Topic: Community SubTopic: Apple Developers Tags:
Aug ’25
Reply to Backup when wanting to connect to MacBook
I’m being told I have to reset my iPhone back to factory settings That image says if you're having problems you can reset it, not that you have to reset it. The image doesn't show the entire window, so you don't show us whether the other tabs are available, such as the Files tab which is where you would be able to drag & drop a file to add it to an app.
Topic: Community SubTopic: Apple Developers Tags:
Aug ’25
Reply to Is my POST method correct
This line: func createTask(_ task: Task) async throws -> Task { if let url = URL(string: "(baseURL)/todos"){ isn't in the formatted code block. Please, when you make a post, please check that your formatting is correct. If it isn't, just edit it and correct it. Anyway: func createTask(_ task: Task) async throws -> Task { if let url = URL(string: "(baseURL)/todos"){ is wrong. You need a \ before (baseURL) Why are you relying on some AI trash app to figure out such a simple bit of coding? Spend a few minutes and learn how to write a POST request using actual sources of information. This Claude thing isn't going to replace actual knowledge. The very fact that you've had to ask us humans kinda proves that.
Topic: Safari & Web SubTopic: General Tags:
Aug ’25
Reply to iPhone screen glare
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 hardware designers chat about new features, and it's incredible that you think you might have a direct line to them... If you have a suggestion, you should raise it at: https://feedbackassistant.apple.com/
Topic: Design SubTopic: General
Aug ’25
Reply to Battery problem after update
Huh? When you got what? What version of iOS/iPadOS are you taking about? How has battery life decreased? You say your battery health is 99%, so what's your issue? Also, if this is regarding an iOS beta, then you're in the right place. However, if this is a normal iOS/iPadOS release, such as iOS 18.6.1, then you're in the wrong place. Please ask your question at the Apple Support Forums. Thanks. Please consider the place you're posting before you make your post. If this is a normal consumer issue, then the DEVELOPER forums are clearly not the right place for it.
Topic: Community SubTopic: Apple Developers Tags:
Aug ’25
Reply to "Auth Key can only be downloaded once. This auth key has already been downloaded."
Oh noes! That's awful! That must really suck! I really feel for you! It must be terrible that you can't get on with your development activities... But... how do you think anyone here can help you when you haven't given us ANY information as to what this relates to? What API are you calling? What are you trying to do? Please, PLEASE, be a bit more cogniscent of where you are and what you're here for. If you have an issue with a specific service and you think us random developers might be able to help you, ask us a valid question. Right now, this should be considered as spam.
Aug ’25
Reply to Proposal: Develop a Token Estimation Tool for Foundation Models
Dear Apple Foundation Models Development Team This isn't the Foundation Models Development Team. These forums aren't a direct link for consumers worldwide to directly contact employees at Apple. 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 developers chat about new features. If you have a suggestion, you should raise it at: https://feedbackassistant.apple.com/
Aug ’25
Reply to Function types as return types
If you make a mistake in your post you have a one-hour window in which you can edit it. If you're outside of that one hour, just reply to your original post. There's no need to create a duplicate thread for the same issue just because you didn't format something properly; that just clutters the forums. Anyway, correctly formatted: func stepForward(_ input: Int) -> Int { input + 1 } func stepBackward(_ input: Int) -> Int { input - 1 } func chooseStepFunction(backward: Bool) -> (Int) -> Int { backward ? stepBackward : stepForward } // Second version func chooseStepFunction(backward: Bool) -> (Int) -> Int { if backward { stepBackward } else { stepForward } } I don't get any errors, so this can't be the code that's causing it. The first version with the ternary operator works fine. As an aside, in Swift, if your function only does one thing then you don't need the return keyword.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to Alerts unresponsive ios26
What's a "pop alert"? Can you show us your code? If you've tried everything, raise a feedback report here: https://feedbackassistant.apple.com/ and provide more useful information than you've given in this post.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Aug ’25
Reply to Backup when wanting to connect to MacBook
Okay, that makes more sense. Does your iPhone work, otherwise? If so, I wouldn't restore it unless you desperately need to put that game file on there. If you do, then you probably need to restore your iPhone, and you should be able to restore from your iCloud backup. This is one of the pitfalls of the betas - occasionally, something goes wrong and you have to start again. It's also a good reason for not installing the betas on your primary device.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to Backup when wanting to connect to MacBook
I’m being told I have to reset my iPhone back to factory settings That image says if you're having problems you can reset it, not that you have to reset it. The image doesn't show the entire window, so you don't show us whether the other tabs are available, such as the Files tab which is where you would be able to drag & drop a file to add it to an app.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to Is my POST method correct
This line: func createTask(_ task: Task) async throws -> Task { if let url = URL(string: "(baseURL)/todos"){ isn't in the formatted code block. Please, when you make a post, please check that your formatting is correct. If it isn't, just edit it and correct it. Anyway: func createTask(_ task: Task) async throws -> Task { if let url = URL(string: "(baseURL)/todos"){ is wrong. You need a \ before (baseURL) Why are you relying on some AI trash app to figure out such a simple bit of coding? Spend a few minutes and learn how to write a POST request using actual sources of information. This Claude thing isn't going to replace actual knowledge. The very fact that you've had to ask us humans kinda proves that.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to iPhone screen glare
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 hardware designers chat about new features, and it's incredible that you think you might have a direct line to them... If you have a suggestion, you should raise it at: https://feedbackassistant.apple.com/
Topic: Design SubTopic: General
Replies
Boosts
Views
Activity
Aug ’25
Reply to Battery problem after update
Huh? When you got what? What version of iOS/iPadOS are you taking about? How has battery life decreased? You say your battery health is 99%, so what's your issue? Also, if this is regarding an iOS beta, then you're in the right place. However, if this is a normal iOS/iPadOS release, such as iOS 18.6.1, then you're in the wrong place. Please ask your question at the Apple Support Forums. Thanks. Please consider the place you're posting before you make your post. If this is a normal consumer issue, then the DEVELOPER forums are clearly not the right place for it.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to "Auth Key can only be downloaded once. This auth key has already been downloaded."
Oh noes! That's awful! That must really suck! I really feel for you! It must be terrible that you can't get on with your development activities... But... how do you think anyone here can help you when you haven't given us ANY information as to what this relates to? What API are you calling? What are you trying to do? Please, PLEASE, be a bit more cogniscent of where you are and what you're here for. If you have an issue with a specific service and you think us random developers might be able to help you, ask us a valid question. Right now, this should be considered as spam.
Replies
Boosts
Views
Activity
Aug ’25
Reply to Ipad OS 26 Beta 6 - Journal App (iPad Pro 12.9, 6th Gen.)
Have you raised a Feedback report? If not, please do so at https://feedbackassistant.apple.com/ then post the FB number here. And, please, provide more information when you raise the issue.
Replies
Boosts
Views
Activity
Aug ’25
Reply to Issue with opening browser on Apple Watch SE 2 – black screen
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to IS THE SWiPE LEFT CAMERA MODE REALLY IMPORTANT?
These are the Developer Forums, where developers of third-party apps for Apple's platforms ask each other for hints and tips on coding. If you have a suggestion, you should raise it at: https://feedbackassistant.apple.com/
Topic: Design SubTopic: General
Replies
Boosts
Views
Activity
Aug ’25
Reply to Proposal: Develop a Token Estimation Tool for Foundation Models
Dear Apple Foundation Models Development Team This isn't the Foundation Models Development Team. These forums aren't a direct link for consumers worldwide to directly contact employees at Apple. 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 developers chat about new features. If you have a suggestion, you should raise it at: https://feedbackassistant.apple.com/
Replies
Boosts
Views
Activity
Aug ’25
Reply to Bring Back Launchpad
If you have a suggestion, you should raise it in the usual way at: https://feedbackassistant.apple.com/
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to Seeking Feedback on iOS 18.5/18.6 Behavior
What's a "range bar"? Where on the screen is this bar located? Perhaps it's interfering with some other control? Can you provide a screenshot and show us what the issue is?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Aug ’25
Reply to Problem with testing
I already answered this. This is your third thread on the same issue. Please use the original thread, here: https://developer.apple.com/forums/thread/796488
Replies
Boosts
Views
Activity
Aug ’25