Post

Replies

Boosts

Views

Activity

Comment on Scale app for coffee and small dishes
It won't happen because it would have to be hardware-based. You can't just put something on a screen and expect it to know how much that thing weighs without there being some hardware that can detect the weight of the item. Apple won't add that hardware for such use cases. It would be too expensive, and not many people would use it (well, drug dealers might).
Jul ’24
Comment on Sheets no longer open when button is tapped while popover is visible
You didn't mention "more complex circumstances", so I offered an opinion on the example you gave. I created a project with your code, made my adjustments, and didn't see the error. Why would closing a popover automatically set the sheet's State var to false? It's a separate control, and that's what was causing your error. Closing a popover will set the popover State var to false, but not a separate control which just happens to be open and true at the time the popover was opened.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’24
Comment on Store SwiftUI Color in SwiftData
What floating point numbers? If you're talking about, say 0.9, then that's 0.9 * 256 = 230.4, you round it down and store 230, which is E6. Did you actually try my code, or just look at it and say it's essentially the same? I'm not sure you're explaining yourself properly. Can you show us some code that exhibits the issue?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’24
Comment on Scale app for coffee and small dishes
It won't happen because it would have to be hardware-based. You can't just put something on a screen and expect it to know how much that thing weighs without there being some hardware that can detect the weight of the item. Apple won't add that hardware for such use cases. It would be too expensive, and not many people would use it (well, drug dealers might).
Replies
Boosts
Views
Activity
Jul ’24
Comment on Sheets no longer open when button is tapped while popover is visible
You didn't mention "more complex circumstances", so I offered an opinion on the example you gave. I created a project with your code, made my adjustments, and didn't see the error. Why would closing a popover automatically set the sheet's State var to false? It's a separate control, and that's what was causing your error. Closing a popover will set the popover State var to false, but not a separate control which just happens to be open and true at the time the popover was opened.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Comment on MapKit .standard doesn't allow for globe view when zoomed out
Hey, no drama. At least you have a valid use case. Most people just grumble that something isn't exactly how they want it.
Replies
Boosts
Views
Activity
Jul ’24
Comment on Inquiry: Checking User’s Large App Icon Mode Setting on iOS 18
Then you've designed it incorrectly. Use adjustable font sizes and resizable images.
Topic: UI Frameworks SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on I keep getting "Terminating app due to uncaught exception 'NSRangeException', reason: 'Attempted to scroll the table view to an out-of-bounds row...."
Shouldn't this DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {self.dealsTable.scrollToRow(at: >>>>savedRowMainFave<<<<, at: .bottom, animated: false) scroll to savedRowMainFave.row?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on I keep getting "Terminating app due to uncaught exception 'NSRangeException', reason: 'Attempted to scroll the table view to an out-of-bounds row...."
This would be easier to help you with if you added a minimum reproducible bit of code.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on App Rejection
Reminder to put all your code inside the code block.
Replies
Boosts
Views
Activity
Aug ’24
Comment on Looking for testers
I was trying to help you out. I see you don't want that.
Replies
Boosts
Views
Activity
Aug ’24
Comment on Can someone explain why this state property is nil despite being updated before the other state property?
How about wrapping showingShare = true in a Dispatch After call with a delay of, say, 3 seconds? It might then correctly show the sheet, which suggests it is a timing issue.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Aug ’24
Comment on Can someone explain why this state property is nil despite being updated before the other state property?
Oh, how annoying. Well, glad you've fixed it.
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Aug ’24
Comment on iOS 18.1 is the only version that will download
Hey, this is nothing to do with the Simulator...
Replies
Boosts
Views
Activity
Aug ’24
Comment on iOS widget crashing in body getter with -[NSTaggedPointerString identifier]: unrecognized selector sent to instance
I cannot recommend this suggestion enough. AppIntents are a much better solution, and honestly should've been brought in years ago. Glomming widgets onto Siri Intents was so fragile and caused so many problems.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Comment on Store SwiftUI Color in SwiftData
What floating point numbers? If you're talking about, say 0.9, then that's 0.9 * 256 = 230.4, you round it down and store 230, which is E6. Did you actually try my code, or just look at it and say it's essentially the same? I'm not sure you're explaining yourself properly. Can you show us some code that exhibits the issue?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’24
Comment on NavigationStack Fatal error: ‘try!
I didn't say anything about multiple brackets...?
Topic: Design SubTopic: General
Replies
Boosts
Views
Activity
Nov ’24
Comment on NavigationStack Fatal error: ‘try!
As I said before, onChange has not been deprecated. onChange(of:perform:) has been deprecated in favour of onChange(of:) which is the version I told you to use.
Topic: Design SubTopic: General
Replies
Boosts
Views
Activity
Dec ’24