Post

Replies

Boosts

Views

Activity

Reply to URLSession.dataTask(with: URL) error: Type of expression is ambiguous without a type annotation
No need to reply if you're within an hour of your original post - you have a one-hour window to edit it :) Anyway, I think this is because you're assigning the task to a let but you haven't provided a type, and because the completion handler returns three different things, the type it returns will be ambiguous. If you don't need to do anything with task later on (which it doesn't look like you do in your code), you can ignore the let, i.e. just use: URLSession.shared.dataTask(with: url) {(data, response, error) in ... }.resume()
May ’25
Reply to Copy Whats new Text from a previous release
Huh? Aside from it being a field called "What's New in This Version", and putting old text in doesn't make much sense, why don't you just go into App Store Connect for the previous release, and copy the text from there? Alternatively, keep a copy of the text you use for each release, and store it in an archive along with the source code and assets etc. for that release. That way, you can always go back to any version of your app and see exactly what you wrote and what code and assets you had. I do this, and base my next version off the previous version by simply copying the archive and increasing the version numbers. If you think Apple should implement this in App Store Connect, you can raise a suggestion at: https://feedbackassistant.apple.com/
Apr ’25
Reply to Scrollview and a background image set to scaledToFill....
That doesn't work for me, depending on the background image used. While my example worked fine with three different images (square, portrait, and landscape images), your new version doesn't work for my landscape image. I get a white area to the right when the Simulator/Preview is in Landscape Left. If you don't need to use an image, you could use a plain colour or a gradient: let gradient: LinearGradient = LinearGradient(gradient: Gradient(colors: [Color.init(red: 200.0/255.0, green: 200.0/255.0, blue: 250.0/255.0), Color.init(red: 125.0/255.0, green: 125.0/255.0, blue: 175.0/255.0)]), startPoint: .top, endPoint: .bottom) struct ContentView: View { var body: some View { ZStack { gradient .ignoresSafeArea() ScrollView { VStack(spacing: 32) { ForEach(1..<20) { i in Text("Line \(i)") } } } } } } Just an idea. Don't have to do everything I say 😄
Topic: Design SubTopic: General Tags:
Apr ’25
Reply to IOS 18.5 Beta
When Apple release a new beta and an app doesn't work, it's likely because that app is doing something that has changed in the new beta. It is up to the app developers to make their app work with the new version of iOS. You should get in touch with them, not us. (We're not Deltek developers, and we don't work for Apple.)
Apr ’25
Reply to Scrollview and a background image set to scaledToFill....
I think you're looking for something like this: import SwiftUI struct ContentView: View { var body: some View { ScrollView { VStack(spacing: 24) { ForEach(1..<20) { i in Text("Line \(i)") } } } .frame(maxWidth: .infinity, maxHeight: .infinity) .background( Image("background") .resizable() .scaledToFill() .ignoresSafeArea() ) } } #Preview { ContentView() } The main difference is that my code adds a background to the ScrollView rather than putting everything on top of an image via a ZStack. When you do it your way, you've kind of told everything on top of that layer how big they'll be, which is why your ScrollView is distorted, and bits of it disappear off the screen.
Topic: Design SubTopic: General Tags:
Apr ’25
Reply to Unable to format SD card
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: Community SubTopic: Apple Developers Tags:
Apr ’25
Reply to Migarate to Subscriptions
It depends on what the IAP gave the customer. If the IAP unlocked something and you're now going to lock it behind a subscription, then no, you shouldn't do that. You can't say to someone, "Pay me $5 and you get Feature A," then some time later say, "Actually, I'm taking away Feature A unless you pay me $5 every year". If, however, the IAP gives a feature that is not going to be locked behind the new subscription, then you can create the new subscription and customers can decide if they want to buy it. Any customers who already bought the IAP should still retain the features it unlocked. In general when doing this, you need to put new features into the subscription and leave previous IAPs as they are. You can remove them from sale so no one can buy them going forward, but anyone who already bought the IAP should retain those features going forward. Or, you could offer previous IAP purchasers a discounted subscription price. So, two subscriptions, one for new customers who have not previously purchased the IAP, and one at a lower price taking into account what they previously paid for the IAP, e.g.: IAP: $5 New sub: $10/year. New sub for IAP purchasers: $8/year. You have to figure out what works best - but you definitely shouldn't annoy your existing customers, or you'll find out you don't have any.
Apr ’25
Reply to System Data full after clearing safari, messages, offloading apps/reinstalling apps
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. System data is the System, i.e. iOS plus necessary files such as logs and cache files. That number will stay pretty static. There's not really a lot you can do to reduce that. Try and offload some of your data to iCloud. Enable iCloud Photos and turn on "Optimise iPhone Storage" in Settings > Apps > Photos. Regardless, you have a 64GB iPhone, which isn't that big these days. It might've been fine five years ago, but not really now.
Topic: Community SubTopic: Apple Developers Tags:
Apr ’25
Reply to Default Browser issue of Edge Mac
You should probably raise this as a bug in the usual way. It won't really get progressed if it's only posted in these Developer Forums. You need to raise each issue you find separately at https://feedbackassistant.apple.com/ You can post the FB numbers here if you want, so that others can link to them.
Apr ’25
Reply to URLSession.dataTask(with: URL) error: Type of expression is ambiguous without a type annotation
No need to reply if you're within an hour of your original post - you have a one-hour window to edit it :) Anyway, I think this is because you're assigning the task to a let but you haven't provided a type, and because the completion handler returns three different things, the type it returns will be ambiguous. If you don't need to do anything with task later on (which it doesn't look like you do in your code), you can ignore the let, i.e. just use: URLSession.shared.dataTask(with: url) {(data, response, error) in ... }.resume()
Replies
Boosts
Views
Activity
May ’25
Reply to Copy Whats new Text from a previous release
Huh? Aside from it being a field called "What's New in This Version", and putting old text in doesn't make much sense, why don't you just go into App Store Connect for the previous release, and copy the text from there? Alternatively, keep a copy of the text you use for each release, and store it in an archive along with the source code and assets etc. for that release. That way, you can always go back to any version of your app and see exactly what you wrote and what code and assets you had. I do this, and base my next version off the previous version by simply copying the archive and increasing the version numbers. If you think Apple should implement this in App Store Connect, you can raise a suggestion at: https://feedbackassistant.apple.com/
Replies
Boosts
Views
Activity
Apr ’25
Reply to Scrollview and a background image set to scaledToFill....
That doesn't work for me, depending on the background image used. While my example worked fine with three different images (square, portrait, and landscape images), your new version doesn't work for my landscape image. I get a white area to the right when the Simulator/Preview is in Landscape Left. If you don't need to use an image, you could use a plain colour or a gradient: let gradient: LinearGradient = LinearGradient(gradient: Gradient(colors: [Color.init(red: 200.0/255.0, green: 200.0/255.0, blue: 250.0/255.0), Color.init(red: 125.0/255.0, green: 125.0/255.0, blue: 175.0/255.0)]), startPoint: .top, endPoint: .bottom) struct ContentView: View { var body: some View { ZStack { gradient .ignoresSafeArea() ScrollView { VStack(spacing: 32) { ForEach(1..<20) { i in Text("Line \(i)") } } } } } } Just an idea. Don't have to do everything I say 😄
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to IOS 18.5 Beta
When Apple release a new beta and an app doesn't work, it's likely because that app is doing something that has changed in the new beta. It is up to the app developers to make their app work with the new version of iOS. You should get in touch with them, not us. (We're not Deltek developers, and we don't work for Apple.)
Replies
Boosts
Views
Activity
Apr ’25
Reply to Scrollview and a background image set to scaledToFill....
I think you're looking for something like this: import SwiftUI struct ContentView: View { var body: some View { ScrollView { VStack(spacing: 24) { ForEach(1..<20) { i in Text("Line \(i)") } } } .frame(maxWidth: .infinity, maxHeight: .infinity) .background( Image("background") .resizable() .scaledToFill() .ignoresSafeArea() ) } } #Preview { ContentView() } The main difference is that my code adds a background to the ScrollView rather than putting everything on top of an image via a ZStack. When you do it your way, you've kind of told everything on top of that layer how big they'll be, which is why your ScrollView is distorted, and bits of it disappear off the screen.
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Can't remove Waze from Carplay
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.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Unable to format SD card
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: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Migarate to Subscriptions
It depends on what the IAP gave the customer. If the IAP unlocked something and you're now going to lock it behind a subscription, then no, you shouldn't do that. You can't say to someone, "Pay me $5 and you get Feature A," then some time later say, "Actually, I'm taking away Feature A unless you pay me $5 every year". If, however, the IAP gives a feature that is not going to be locked behind the new subscription, then you can create the new subscription and customers can decide if they want to buy it. Any customers who already bought the IAP should still retain the features it unlocked. In general when doing this, you need to put new features into the subscription and leave previous IAPs as they are. You can remove them from sale so no one can buy them going forward, but anyone who already bought the IAP should retain those features going forward. Or, you could offer previous IAP purchasers a discounted subscription price. So, two subscriptions, one for new customers who have not previously purchased the IAP, and one at a lower price taking into account what they previously paid for the IAP, e.g.: IAP: $5 New sub: $10/year. New sub for IAP purchasers: $8/year. You have to figure out what works best - but you definitely shouldn't annoy your existing customers, or you'll find out you don't have any.
Replies
Boosts
Views
Activity
Apr ’25
Reply to System Data full after clearing safari, messages, offloading apps/reinstalling apps
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. System data is the System, i.e. iOS plus necessary files such as logs and cache files. That number will stay pretty static. There's not really a lot you can do to reduce that. Try and offload some of your data to iCloud. Enable iCloud Photos and turn on "Optimise iPhone Storage" in Settings > Apps > Photos. Regardless, you have a 64GB iPhone, which isn't that big these days. It might've been fine five years ago, but not really now.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Default Browser issue of Edge Mac
You should probably raise this as a bug in the usual way. It won't really get progressed if it's only posted in these Developer Forums. You need to raise each issue you find separately at https://feedbackassistant.apple.com/ You can post the FB numbers here if you want, so that others can link to them.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Problem setting up AASA file (paths with queries)
You don't have to create an entirely new thread just to make a small change to your original post. You have a one-hour window to make changes, which you are still within. I'm marking this as a duplicate.
Replies
Boosts
Views
Activity
Apr ’25
Reply to launch older version of Xcode on macOS 15.4?
Why do you need to build a framework with an older version? What's the technical reason you can't build it in macOS Sequoia with Xcode 16?
Replies
Boosts
Views
Activity
Apr ’25
Reply to Arabic Text Appears Reversed and Broken in SwiftUI Lists, TextFields, and Pickers
You should probably raise this as a bug in the usual way. It won't really get progressed if it's only posted in these Developer Forums. You need to raise each issue you find separately at https://feedbackassistant.apple.com/ You can post the FB numbers here if you want, so that others can link to them.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Swift question:
There are tons of online resources to learn how to code in Swift. Apple's own sample code is extensive and allows you to follow along. https://developer.apple.com/swift/
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to How to implement this textfield in SwitfUI
Isn't it just a normal TextField? Maybe with a placeholder? Show us the code you've tried, properly-formatted with the code formatting tools in the toolbar.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25