Post

Replies

Boosts

Views

Activity

Reply to Metric Crash by Widget SwiftUI
Have you removed items one at a time to see if the crash happens? In other words, remove the Image and see if it crashes. If not, it's the Image causing the issue. If not, remove the Text, etc. If it still crashes, then remove all attributes and add them back one at a time until it crashes. As an aside, your code can be cleaned up a little: I doubt you need the clear backgrounds. foregroundColor() is deprecated. You should use foregroundStyle() instead. .onAppear {} doesn't seem to have anything in it, so remove it. (You may have removed the contents for this post.) VStack(){ doesn't need empty parentheses, so can be VStack {. Does defaultImage exist as a UIImage? Are your frame sizes valid? That might trigger metrics issues.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’24
Reply to Codable with superclass doesn't work ??
Your JSON doesn't require two different classes, and doesn't match what you're trying to do in your code. What Swift is likely doing is seeing your Codable A class with the x variable, and populating that. The y var is nil because there is no y var in the only Codable class in your code. If your JSON was: { "A": { "x": "foo" }, "B": { "y": "bar" } } You'd use something like: struct RootClass: Codable { let a: A let b: B enum CodingKeys: String, CodingKey { case a = "A" case b = "B" } } struct A: Codable { let x: String } struct B: Codable { let y: String } Both are Codable, and will correctly parse that updated JSON. Since your JSON is { "x": "foo", "y": "bar" } you should just be using: struct RootClass: Codable { let x, y: String }
Aug ’24
Reply to Carplay Whatsapp
WhatsApp is a third-party app; it's not an Apple app. It's likely that WhatsApp needs to be updated to work with iOS 18. Since iOS 18 is currently in beta, WhatsApp cannot release an update that would make it work with iOS 18. You will have to wait for iOS 18 to be released and then wait for WhatsApp to release their update for it to work properly. Besides, if there is an issue with a third-party app, you should really tell the developer of that app so they know, and can fix it.
Aug ’24
Reply to Codable with superclass doesn't work ??
What does your JSON look like? Have you tried pasting a sample of it into https://app.quicktype.io to see what it generates? When I convert any JSON into objects I always mark it as Codable. It's possible that B.y = "a value" might be in your JSON, but B itself is not Codable and so cannot be used to code the JSON in the first place.
Aug ’24
Reply to Skillshare
I'm guessing that Skillshare is a third-party app, right? Well, in that case, you have installed a beta of iOS which has new and updated SDKs. It is highly likely that the Skillshare app needs to be updated to make use of the changes in those SDKs. Third party apps are likely to crash on your device because they have not yet been updated. Even if the people behind Skillshare are working on an update, it cannot be released yet - so that you can get a hold of it - until iOS 18 is released. This is kind of the price you pay for installing a beta OS on a device. Perhaps you shouldn't install a beta on your only device?
Aug ’24
Reply to Google search doesn't show my app's App Store link
Have you tried asking Google?
Replies
Boosts
Views
Activity
Aug ’24
Reply to Metric Crash by Widget SwiftUI
Have you removed items one at a time to see if the crash happens? In other words, remove the Image and see if it crashes. If not, it's the Image causing the issue. If not, remove the Text, etc. If it still crashes, then remove all attributes and add them back one at a time until it crashes. As an aside, your code can be cleaned up a little: I doubt you need the clear backgrounds. foregroundColor() is deprecated. You should use foregroundStyle() instead. .onAppear {} doesn't seem to have anything in it, so remove it. (You may have removed the contents for this post.) VStack(){ doesn't need empty parentheses, so can be VStack {. Does defaultImage exist as a UIImage? Are your frame sizes valid? That might trigger metrics issues.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to Codable with superclass doesn't work ??
Your JSON doesn't require two different classes, and doesn't match what you're trying to do in your code. What Swift is likely doing is seeing your Codable A class with the x variable, and populating that. The y var is nil because there is no y var in the only Codable class in your code. If your JSON was: { "A": { "x": "foo" }, "B": { "y": "bar" } } You'd use something like: struct RootClass: Codable { let a: A let b: B enum CodingKeys: String, CodingKey { case a = "A" case b = "B" } } struct A: Codable { let x: String } struct B: Codable { let y: String } Both are Codable, and will correctly parse that updated JSON. Since your JSON is { "x": "foo", "y": "bar" } you should just be using: struct RootClass: Codable { let x, y: String }
Replies
Boosts
Views
Activity
Aug ’24
Reply to Carplay Whatsapp
WhatsApp is a third-party app; it's not an Apple app. It's likely that WhatsApp needs to be updated to work with iOS 18. Since iOS 18 is currently in beta, WhatsApp cannot release an update that would make it work with iOS 18. You will have to wait for iOS 18 to be released and then wait for WhatsApp to release their update for it to work properly. Besides, if there is an issue with a third-party app, you should really tell the developer of that app so they know, and can fix it.
Replies
Boosts
Views
Activity
Aug ’24
Reply to Chat gpt audio in background
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://www.apple.com/feedback/
Replies
Boosts
Views
Activity
Aug ’24
Reply to Regarding the issue with iOS 18 causing customers to be unable to use the app
No idea. Have you tried this yourselves on a device with iOS 18 beta? It's likely that something in the new OS is causing your web app to fail and reload, and you should debug this yourself.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to Codable with superclass doesn't work ??
What does your JSON look like? Have you tried pasting a sample of it into https://app.quicktype.io to see what it generates? When I convert any JSON into objects I always mark it as Codable. It's possible that B.y = "a value" might be in your JSON, but B itself is not Codable and so cannot be used to code the JSON in the first place.
Replies
Boosts
Views
Activity
Aug ’24
Reply to macOS Sequoia adds weekly permission prompt for screenshot and screen recording apps
Have you raised a Feedback report? If not, please do so at https://www.apple.com/feedback/ then post the FB number here.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to Developing iOS apps on a 2017 MacBook Air
According to this page you need Xcode 14.0 - 14.2. Download that, and get started.
Replies
Boosts
Views
Activity
Aug ’24
Reply to Skillshare
I'm guessing that Skillshare is a third-party app, right? Well, in that case, you have installed a beta of iOS which has new and updated SDKs. It is highly likely that the Skillshare app needs to be updated to make use of the changes in those SDKs. Third party apps are likely to crash on your device because they have not yet been updated. Even if the people behind Skillshare are working on an update, it cannot be released yet - so that you can get a hold of it - until iOS 18 is released. This is kind of the price you pay for installing a beta OS on a device. Perhaps you shouldn't install a beta on your only device?
Replies
Boosts
Views
Activity
Aug ’24
Reply to Looking for feedback on a Swift dev tool idea
If you build it, they will come.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to This app is marketed as being able to bypass geo-restrictions or content limitations.
Does your app actually bypass geo-restrictions or content limitations? You may have been marketing it as being able to do this, and removing the text from the UI certainly will resolve the marketing aspect of the issue, but if your app actually does these things it'll never get approved because it violates the guidelines.
Replies
Boosts
Views
Activity
Aug ’24
Reply to Wifi fine but no internet with ios18
Have you raised a Feedback report? If not, please do so at https://www.apple.com/feedback/ then post the FB number here.
Replies
Boosts
Views
Activity
Jul ’24
Reply to No mobile service
Have you raised a Feedback report? If not, please do so at https://www.apple.com/feedback/ then post the FB number here.
Replies
Boosts
Views
Activity
Jul ’24
Reply to Mobil data bug in iOS 18 beta 4
Have you raised a Feedback report? If not, please do so at https://www.apple.com/feedback/ then post the FB number here.
Replies
Boosts
Views
Activity
Jul ’24