Posts

Post not yet marked as solved
0 Replies
203 Views
I've created a custom NSCollectionView layout that is vertical in design and it supports dragging and dropping. However, the drawn drop indicator only is a vertical line in the middle of the inter gap or drop zones specified. Ideally, I'd like for this line to be horizontal, extending the width of the frame rather than the vertical and extending the height. Basically, I am trying to replicate the drop indicator that's used in NSTableView or NSOutlineView. Is there any way to accomplish this?
Posted Last updated
.
Post not yet marked as solved
0 Replies
308 Views
It looks like there's a new tab bar / column style design for tvOS that was introduced with the current TV app. Is there any word on this being a developer available component?
Posted Last updated
.
Post not yet marked as solved
0 Replies
388 Views
In Monterey, when a user was at the top of a ScrollView implemented inside of a NSHostingController's view (that was itself embedded in a window with a NSToolbar), the window's toolbar background would be hidden until the user scrolled from the top. In Ventura, this behavior is different, with the toolbar's background visible all of the time unless a traditional NSScrollView is used (which means no SwiftUI). Is there the ability to change this behavior within SwiftUI some how now?
Posted Last updated
.
Post not yet marked as solved
0 Replies
825 Views
Suppose I start a request using the new async await with isLongLived set true: let config = CKOperation.Configuration() config.isLongLived = true let results = try await database.configuredWith(configuration: config) { db in try await db.modifyRecordZones(saving: [...], deleting: [...]) } try await processResults(results) — then assuming my application exits and the requests is continued through by the system: would these operations eventually end up in the container's allLongLivedOperationIDs() like a classic CKOperation? And a follow up question, assuming that the answer above is true: to "finish" these operations, we should we take the fetched long-lived operations, essentially insert our post-async await code into that completion block, and then add it to the database? I think that all makes sense, and I am going to test it out, but figured it'd be worth asking
Posted Last updated
.
Post not yet marked as solved
1 Replies
1.4k Views
I am using scenes and setting up Handoff between a Mac and iPad/iOS application. Whenever I receive the user activity on the iPad, targetContentIdentifier is always nil. I've confirmed that things like userInfo and persistentIdentifier are coming through by outputting them in func scene(_ scene: UIScene, continue userActivity: NSUserActivity), but without the targetContentIdentifier is always empty. Without it, I can't use the activation condition's and proper scene isn't being selected by iOS... is there something beyond setting it and marking an activity as eligible for handoff that I am missing?
Posted Last updated
.
Post not yet marked as solved
0 Replies
1.3k Views
I've noticed that when I try to launch some Shortcuts set with NSUserActivity, they're missing the UserInfo keys. I've made sure to requiredUserInfoKeys and they launch properly from Spotlight and Handoff, but not from Shortcuts - anyone having similar issues?
Posted Last updated
.
Post not yet marked as solved
1 Replies
1.1k Views
I have been working on a Mac app that until recently didn't have a hardened runtime, but was enabled since it needs iCloud/CloudKit support and that's required for the entitlement. Now though, I can't run the application (even in debug) unless I have "Disable Library Validation" checked. I don't believe the disable library validation is allowed for submission to the MAS (which is how I plan to distribute), but without that, building and running my application locally impossible since crashes on launch with a code signature invalid error. This also is causing my SwiftUI previews to go insane and die (the same error below pops up in the canvas regardless of the library validation setting). I suspect it has to do with SPM, but I dunno.. maybe it's something that I've done... this is what I am getting: dyld: Library not loaded: @rpath/3rdPartyFramework_38E624E3CA89CFDE_PackageProduct.framework/Versions/A/3rdPartyFramework_38E624E3CA89CFDE_PackageProduct Referenced from: /(super/long/path)/Build/Products/Debug/MyApplication.app/Contents/MacOS/MyApplication Reason: no suitable image found. Did find: /(super/long/path)/Build/Products/Debug/PackageFrameworks/3rdPartyFramework_38E624E3CA89CFDE_PackageProduct.framework/Versions/A/3rdPartyFramework_38E624E3CA89CFDE_PackageProduct: code signature in (/(super/long/path)/Build/Products/Debug/PackageFrameworks/3rdPartyFramework_38E624E3CA89CFDE_PackageProduct.framework/Versions/A/3rdPartyFramework_38E624E3CA89CFDE_PackageProduct) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. /(super/long/path)/Build/Products/Debug/MyApplication.app/Contents/MacOS/../Frameworks/3rdPartyFramework_38E624E3CA89CFDE_PackageProduct.framework/Versions/A/3rdPartyFramework_38E624E3CA89CFDE_PackageProduct: code signature invalid for '/(super/long/path)/Build/Products/Debug/MyApplication.app/Contents/MacOS/../Frameworks/3rdPartyFramework_38E624E3CA89CFDE_PackageProduct.framework/Versions/A/3rdPartyFramework_38E624E3CA89CFDE_PackageProduct' /(super/long/path)/Build/Products/Debug/MyApplication.app/Contents/MacOS/../Frameworks/3rdPartyFramework_38E624E3CA89CFDE_PackageProduct.framework/Versions/A/3rdPartyFramework_38E624E3CA89CFDE_PackageProduct: stat() failed with errno=1 (lldb) I have an app dependency structure that works somewhat like this: // ┌───┐ // ┌─────┤app├───────┐ // │ └─┬─┘ │ // │ │ │ // │ │ │ // ┌────▼────┐ │ ┌──────▼──────┐ // │internal │ │ │SPM 1st party│ // │framework│ │ │framework │ // └────────┬┘ │ └─┬───────────┘ // │ │ │ // │ │ │ // │ │ │ // ┌▼───▼────▼┐ // │SPM │ // │3rd party │ // │framework │ // │dependency│ // └──────────┘ There's my app, a framework embedded into the project, and two frameworks imported via SPM and all depend on and import 3rdPartyFramework (except that, of course). I think it is a binary framework I read something about bugs with SPM and signing here? Unsure if actually related. And the framework is RxSwift, if curious. From what I understand, I'd need to manually sign these frameworks to myself if I were to distribute the application (either myself or through the app store) but at this point, I am just trying to get it to run while working on it again - is this something I'd need to do each time I launch the app from Xcode...? Along with that, when I do try to go in and code sign the frameworks manually (either myself with Terminal or through a run script), I am getting an error along the lines of "code object is not signed at all (SPM 1st Party Framework Path) In subcomponent (SPM 3rd Party Framework Path)". So I clearly don't know what I am doing — any help would be appreciated.
Posted Last updated
.
Post not yet marked as solved
0 Replies
619 Views
Is there a way to use UINavigationBarAppearance to change the color of icons in bar button items in a Navigation Bar (and change them between standardAppearance and scrollEdgeAppearance)? Previously this was handled with the tintColor, but this is now considered legacy and doesn't give you the flexibility between the different appearances. Accessing this property on UINavigationBar also doesn't seem to be working consistently for me now that accentColor has been introduced which makes this even more problematic. At the moment, I seem to be only able to change the title and button text colors, but there's no way to change the image tints so you get some really bizarre combos — the texts will gain the color set in UINavigationBarAppearance but icons, including the back indicator, continue using the accentColor. In the worst case, they become impossible to see (white icons on white background). If it is not possible to use UINavigationBarAppearance, is there another recommended way (or literally anything that works at all) to change the tint of images/symbols in bar button items between the scroll edge and standard appearances? Thanks, friends! :D
Posted Last updated
.
Post not yet marked as solved
2 Replies
1.5k Views
For the life of me, I cannot get List selection working in SwiftUI. From what I found, there are at least three different methods to handling this: Using tags, IDs, or NavigationLink Tag/Selection... though none of these are actively working as far as I can tell. Even in Apple's Fruta app: Selecting something from the List sidebar, hiding the sidebar, and then bringing it back will cause the selection to lose the highlight. What is worse is that under the hood the selection publisher is being fired in all kinds of random in the different scenarios. I made a sample project demoing the three different types of selection and they all fail in different ways: When using a List with both tags or an Identifiable object, the binding will only ever fire the first row's identifier (even when selecting other rows) and only a few times before only ever firing nil thereafter. When using NavigationLink(destination:tag:selection:), the proper selection is fired, but is always followed by two nil selections which clear the value from the source tracking selections. Here is a link to that GitHub project: https://github.com/Nemesisprime/Apple-Feedback-Projects/tree/main/BrokenSwiftUIListSelection I submitted some feedback about two weeks ago but haven't heard anything. :( Super bummed! Bugs like this are absolutely crushing because I can't really work around them. Is it me? I might be just using the selection stuff incorrectly because I can't find any great first party documentation either so any help would be appreciated.
Posted Last updated
.
Post marked as solved
2 Replies
1k Views
After doing a CKModifyRecordsOperation, what's the suggested way to get the current change token? Since in most cases*, pushing changes won't cause a notification kickback and when there is a trigger to fetch changes, the record will just sync to match the current store data so nbd, but since I'm in an open operation I'd also like to fetch the changeToken from the completed operation to prevent that reduntant occurance.The documentation on clientChangeTokenData gives a hint: When you modify records from a fetch operation, specify a client-generated data token using this property to indicate which version of the record you last modified. Compare the data token you supplied to the data token in the next record fetch to confirm the server has successfully received the device’s last modify request.... but I'm having a hard time visualizing this process for what I'm specifically looking to do. Do you think after writing, I do a (in this case) database change fetch to get the up to date token? If so and ignoring changes from that fetch, is there a way I can pin the history to ensure the token I'm getting isn't one containing changes that originated outside of the app (in the case of multiple users editing concurrently).Kind of a weird question, but any insight would be much appreciated!
Posted Last updated
.
Post not yet marked as solved
0 Replies
741 Views
Is there any follow-up on this? Is it just limited to messaging Apps? Has Apple begun to roll anything out with iOS 13, yet?I ask because interacting with app intents which have a conflict with the system is BEYOND a terrible experience and seems to have nose dived since the introduction of Siri Shortcuts. With the same Siri query, half of the time she'll use a 3rd party app and the other half she'll use 1st party. "Using app name [Command]" versus "[Command] using app name" is also incredibly inconsistent. I'm frustrated and have no doubt users would be, too.I'm curious as to how this is planning to be handled or if I can expect any benefit from it.
Posted Last updated
.
Post marked as solved
1 Replies
894 Views
I don't know how I did it, but my Ubiquity Container is no longer syncing and I can't delete the contents by using the Manage Storage section in iCloud contents (Mac says try again, iOS doesn't do anything).I build an option into my app to try and delete everything from the container and have done it on every device that's connected, restarting, reinstalling applications — the works, nothing will sync across my iOS devices.At this point, I am getting pretty frusterated. I can no longer use my app on my account with iCloud. It's working fine for other testers, sandbox users, etc. But my own Ubiquity Container won't sync.Please anything out there, this is impacting my development pretty dramatically (I've thrown at least 5 hours into this today!).
Posted Last updated
.
Post not yet marked as solved
1 Replies
1.5k Views
I am using fetchAllRecordZones to get the zones in sharedCloudDatabase.Using this, I can successfully query the zones to get the records in them from the sharedCloudDatabase. I can also make a subscription to the sharedCloudDatabase.However, I can't write back into the sharedCloudDatabase using the ZoneID I retrieved with fetchAllRecordZones!<CKError 0x280d24390: "Partial Failure" (2/1011); "Failed to modify some records"; uuid = E33E6EA8-824A-4BBB-9455-5DD58091C696; container ID = "iCloud.com.my-id"; partial errors: { 9E2B5947-536F-4DBB-8473-0902428AFA0E-67855-0000882339B04A4B:(SharedZone:_947ea1c9f3aeeb7dca58149ad40080e9) = <CKError 0x280d25890: "Invalid Arguments" (12/2006); server message = "Only shared zones can be accessed in the shared DB"; uuid = E33E6EA8-824A-4BBB-9455-5DD58091C696>}>But I am accessing a shared zone using the shared DB. I can confirm that SharedZone:_947ea1c9f3aeeb7dca58149ad40080e9 is the zone that is in my sharedCloudDatabase that I am trying to write to in Dashboard.So I'm not sure what to do to get my sharee to be able to edit the shared document 😟I've tried several things, one of those is using the privateCloudDatabase, but I get "PrivateDB can't be used to access another user's zone" which makes sense and can at least confirm my zone is legit. Any help?!
Posted Last updated
.