Post

Replies

Boosts

Views

Activity

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 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 How do I get my widgets to work?
Do you understand how pointless your suggestion is? You haven't offered the name of a session to watch. I already have widgets working; my issue was specifically mentioned in my question. Regardless, I have recently fixed this with help from an ex Apple employee on Mastodon, and no WWDC session would've helped.
Topic: App & System Services SubTopic: General Tags:
Jun ’24
Comment on Rejected due to having User Registration to use the App
Then you may need to generate some sort of unique userId. When the app is launched for the first time and the user doesn't login, generate the id and send that with your request to the server, and reject requests after a number have been made. If the user instead logs in, retrieve the id from your own server and store it in the app. Again, it won't stop deletion and re-installation of the app as a new id will be generated each time.
Topic: App & System Services SubTopic: General Tags:
May ’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 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 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 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 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 Text Don't Show in swipeActions buttons !
Any chance information like this could be added to the Developer Documentation?
Replies
Boosts
Views
Activity
Jul ’24
Comment on Difference between private and fileprivate?
"private should not be used in file level" Yes, it should. It's private in that scope in that file. You need to try fileprivate and private in two different source files.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’24
Comment on NavigationDestination, NavigationLink with List and ForEach Does Not Work
Ah, yeah. In my code I just added a simple Text("CarView") etc. I guess this proves it's important to show all your code ;)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Comment on How do I get my widgets to work?
Do you understand how pointless your suggestion is? You haven't offered the name of a session to watch. I already have widgets working; my issue was specifically mentioned in my question. Regardless, I have recently fixed this with help from an ex Apple employee on Mastodon, and no WWDC session would've helped.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24
Comment on Why can't I get text to appear at top of view.
If you wouldn't mind, mark my answer as the accepted answer and it'll let others know that your question has a solution :)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’24
Comment on Rejected due to having User Registration to use the App
Then you may need to generate some sort of unique userId. When the app is launched for the first time and the user doesn't login, generate the id and send that with your request to the server, and reject requests after a number have been made. If the user instead logs in, retrieve the id from your own server and store it in the app. Again, it won't stop deletion and re-installation of the app as a new id will be generated each time.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’24
Comment on Xcode: String interpolation / String(describing:) automatic fix broken
No, it's putting the fix in the middle of foo, i.e. foStinrg(describing: o.value). Looks like an Xcode bug to me.
Replies
Boosts
Views
Activity
Apr ’24
Comment on passing data from view one to seven
Please take note of what I said about using constants and the Notification.Name extension. You should create a name for each notification and use the syntax I provided. This will reduce typos.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’24
Comment on OS 17.5 problems
17.5 isn't out yet, so I'd say this is the right place as it's the beta they're talking about.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’24
Comment on Delay Issue with onChange Modifier in SwiftUI
When the brand changes you HAVE to set the modelindex to 0, or it will be left at the previous value, which is what's causing your problem.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24