Post

Replies

Boosts

Views

Activity

Reply to Set filename to use for "Save to Files" with ShareLink?
Additionally, if I use my custom type instead of .json when exporting, the "Save to Files" doesn't even show up, even if I did set the export type in the info.plist file. extension UTType {     static var car: UTType = UTType(exportedAs: "com.acme.cararchive") } extension Car: Transferable {     static var transferRepresentation: some TransferRepresentation {         DataRepresentation(contentType: .car) { archive in             try JSONEncoder().encode(archive)         } importing: { data in             try JSONDecoder().decode(Car.self, from: data)         }     } } fefe
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’22
Reply to ShareLink and DataRepresentation
My I add that using FileRepresentation instead of DataRepresentation has the same effect: extension FuelUpsArchive: Transferable {     static var transferRepresentation: some TransferRepresentation {         FileRepresentation(contentType: .commaSeparatedText) {             SentTransferredFile($0.file)         } importing: { received in             try! self.init(csvData: Data())         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’22
Reply to DNSServiceNATPortMappingCreate now just fails on macOS 12
I don't remember their name, sorry. I spoke to an engineer during a WWDC lab and they told me that. But the real issue here is why such a serious regression never got fixed? Do you understand that this bug may render some apps useless? This may impact tens of thousands of users. What do we tell our users when their app stops working when they upgrade to Monterey? In my case I was able to go around the problem but this may not be the case for others.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’21
Reply to DNSServiceNATPortMappingCreate now just fails on macOS 12
Is DNSServiceNATPortMappingCreate now only available for sandboxed apps? If I enable Sandbox in the test project I included with the radar, DNSServiceNATPortMappingCreate returns kDNSServiceErr_NoError. Port mapping still fails of course but if I disable Sandbox, I get this error: DNSCreate[30499:361087] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:3 Err:-1 Errno:1 Operation not permitted Unfortunately since it seems like this won't be addressed until GM ships (still not fixed in macOS 12 Beta 7), I have no way to know for sure if this is just a bug or a new requirement. And because of that, I have no way to prepare for this and it may be too late when GM ships. That is if this issue is resolved then. Not cool. Not cool at all.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’21
Reply to usesAdaptiveColorMappingForDarkAppearance
I wish this was available for UITextView as well and quite frankly I have no idea why it's not. However, it seems you had to do this on the Mac side before usesAdaptiveColorMappingForDarkAppearance was introduced. Do you have any hints as to what needs to be done to accomplish this? Thanks!
Topic: UI Frameworks SubTopic: AppKit Tags:
Jul ’21
Reply to Set filename to use for "Save to Files" with ShareLink?
Additionally, if I use my custom type instead of .json when exporting, the "Save to Files" doesn't even show up, even if I did set the export type in the info.plist file. extension UTType {     static var car: UTType = UTType(exportedAs: "com.acme.cararchive") } extension Car: Transferable {     static var transferRepresentation: some TransferRepresentation {         DataRepresentation(contentType: .car) { archive in             try JSONEncoder().encode(archive)         } importing: { data in             try JSONDecoder().decode(Car.self, from: data)         }     } } fefe
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to Scrollable Plot Area
Would like to know as well!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to ShareLink and DataRepresentation
My I add that using FileRepresentation instead of DataRepresentation has the same effect: extension FuelUpsArchive: Transferable {     static var transferRepresentation: some TransferRepresentation {         FileRepresentation(contentType: .commaSeparatedText) {             SentTransferredFile($0.file)         } importing: { received in             try! self.init(csvData: Data())         }     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to ShareLink and PDFDocument
I'd like to know how to share a file as well!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’22
Reply to It says: "There are still screenshot uploads in progress." when submit a new build
I have this issue as well. Not greyed-out screenshots. Fun times.
Replies
Boosts
Views
Activity
May ’22
Reply to Swift UI on iOS 14 not assigning new object to @State property
Duped radar FB9959325
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Swift UI on iOS 14 not assigning new object to @State property
Still occurs in 13.3 :(
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to DNSServiceNATPortMappingCreate now just fails on macOS 12
Received an email from an Apple engineer and apparently this has been fixed in the latest macOS 12.1 beta.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to DNSServiceNATPortMappingCreate now just fails on macOS 12
Still not fixed in macOS 12.1 beta 1. I guess it's now unofficially deprecated. Can't wait for macOS 13 and see which other APIs get the same treatment.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to DNSServiceNATPortMappingCreate now just fails on macOS 12
I don't remember their name, sorry. I spoke to an engineer during a WWDC lab and they told me that. But the real issue here is why such a serious regression never got fixed? Do you understand that this bug may render some apps useless? This may impact tens of thousands of users. What do we tell our users when their app stops working when they upgrade to Monterey? In my case I was able to go around the problem but this may not be the case for others.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to DNSServiceNATPortMappingCreate now just fails on macOS 12
For those affected by this regression, check out monkeydom/TCMPortMapper on GitHub. TCMPortMapper is pretty ancient but still works pretty well.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to DNSServiceNATPortMappingCreate now just fails on macOS 12
DNSServiceNATPortMappingCreate is still broken on macOS 12.0.1, which shows that either Apple doesn't care or lied about fixing this while they just wanted to remove that API. Luckily I was able to find an alternative so my users (which are Apple's as well to an extent) don't end up with a broken service. If you want to retire the API, just say so.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to DNSServiceNATPortMappingCreate now just fails on macOS 12
Is DNSServiceNATPortMappingCreate now only available for sandboxed apps? If I enable Sandbox in the test project I included with the radar, DNSServiceNATPortMappingCreate returns kDNSServiceErr_NoError. Port mapping still fails of course but if I disable Sandbox, I get this error: DNSCreate[30499:361087] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:3 Err:-1 Errno:1 Operation not permitted Unfortunately since it seems like this won't be addressed until GM ships (still not fixed in macOS 12 Beta 7), I have no way to know for sure if this is just a bug or a new requirement. And because of that, I have no way to prepare for this and it may be too late when GM ships. That is if this issue is resolved then. Not cool. Not cool at all.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to usesAdaptiveColorMappingForDarkAppearance
I wish this was available for UITextView as well and quite frankly I have no idea why it's not. However, it seems you had to do this on the Mac side before usesAdaptiveColorMappingForDarkAppearance was introduced. Do you have any hints as to what needs to be done to accomplish this? Thanks!
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jul ’21
Reply to Drag via pasteboard changed on Monterey?
Apple folks: FB9276356 for a sample project to reproduce the issue.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’21