Post

Replies

Boosts

Views

Activity

Each asset appears 4 times in asset catalog?
We're using PDFs for assets in a Mac app, using Xcode 14.1 The generated Assets.car file is very big, much larger than the total size of the .xcassets directory that contains all the source images (PDFs). When examining the output of assetutil --info it looks like each of our PDF assets appears 4 times in the asset catalog: Scale=1 and Colorspace=srgb Scale=1 and Colorspace=extended srgb Scale=2 and Colorspace=srgb Scale=2 and Colorspace=extended srgb How can we generate an asset catalog that contains only 1 copy of each asset? (We're using asset catalogs in order to support dark mode, otherwise we could work around this issue by just using the PDFs as resources directly.) Has anyone else run into this problem? Thanks!
0
0
585
Nov ’22
Has anyone gotten NSTextContentTypeOneTimeCode to work?
Hi all! I'm trying to enhance an AppKit UI for entering an MFA code received via SMS to use the new NSTextContent APIs introduced in macOS Big Sur. I have tried using both an NSTextField and an NSSecureTextField for the field. I set the .contentType of the field to NSTextContentTypeOneTimeCode, but nothing happens when I receive an SMS in Messages while the field has focus. I confirm that the system is recognizing it as a One Time Code because the auto-fill suggestion works for the web-based version of this UI when using Safari on my Mac, and when I right-click the code in Messages, the "Copy Code" menu item appears. Is this API expected to work? What's supposed to happen? What am I missing? Thanks! Chris
0
0
452
Aug ’21