Post

Replies

Boosts

Views

Activity

Reply to How to Resolve DNS via Cellular Network
I'm in the same boat. I have a port knocking app that requires sending low-level packets. DNS resolution is something I need to do before I can use the typical socket() calls. Looks like CFHostGetAddressing is now deprecated, and not a lot of alternatives. I'll see if DNSServiceGetAddrInfo can work for me. I understand it's not a common use-case, but it's been an app that continues to get usage, so clearly there's a need.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’25
Reply to SwiftUI List row expansion causes weird bounce effect
Thanks @DTS Engineer for your reply. Unfortunately doing it that way results in no smooth animation -- the expansion simply "pops" rather than smoothly expanding. Also in my actual app, I have other animations I'm trying to trigger (e.g. fadein/out effects depending on the expansion state) that I believe this would negate? I suppose I could have a separate state for that. But it still allow the list row to smoothly expand/collapse like the default DisclosureGroupStyle. Is there no way to achieve behavior that is similar to the default? I'd consider a VStack, but then I lose the ability handle move/delete operations easily.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’24
Reply to How to Resolve DNS via Cellular Network
I'm in the same boat. I have a port knocking app that requires sending low-level packets. DNS resolution is something I need to do before I can use the typical socket() calls. Looks like CFHostGetAddressing is now deprecated, and not a lot of alternatives. I'll see if DNSServiceGetAddrInfo can work for me. I understand it's not a common use-case, but it's been an app that continues to get usage, so clearly there's a need.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to SwiftUI List row expansion causes weird bounce effect
Thanks @DTS Engineer for your reply. Unfortunately doing it that way results in no smooth animation -- the expansion simply "pops" rather than smoothly expanding. Also in my actual app, I have other animations I'm trying to trigger (e.g. fadein/out effects depending on the expansion state) that I believe this would negate? I suppose I could have a separate state for that. But it still allow the list row to smoothly expand/collapse like the default DisclosureGroupStyle. Is there no way to achieve behavior that is similar to the default? I'd consider a VStack, but then I lose the ability handle move/delete operations easily.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to UIDocument no longer saving, error in URLByAppendingPathExtension
I ran into the same error after updating to Xcode 13.3, however I never haver had a relevant "Document Types" or "Exported Type Identifiers" for my UIDocument. I found I was able to get around the problem by overriding "fileType" and "savingFileType". I'm not sure what is making use of these values as the document filename appears to be the same.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’22