Post

Replies

Boosts

Views

Activity

Reply to Sequoia Group Container for Mac Catalyst Apps
@DTS Engineer Non-Catalyst apps deployed via the Mac App Store may also use an iOS-style app group name (group.*) as long as that group is registered to the app’s team. This is the first criterion mentioned in the release notes (“the app is deployed through Mac App Store”). Does this apply for dev-builds running directly from Xcode? Like, if a build from Xcode is prompting users to "Allow" data from other apps, will it still prompt if it's installed from the mac app store? My macAppStore app is prompting me to allow. It's using group.* because it used to be a catalyst app.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’24
Reply to OutlineView in SwiftUI
I say don't bother. While the SwiftUI framework makes things that resemble an OutlineView, they fall very very far short of the flexibility offered by the Appkit and UIKit frameworks. Notably, if you want users to be able to rearrange the items between parent / grandparent items, beware. You will not be able to do so in a way that users find intuitive, if at all, in pure SwiftUI. I requested the ability to be able to drag items from one SwiftUI ForEach to another after WWDC22 revealed no improvements. (FB10064943). For me, this inhibits making a rock-solid sidebar, and while the TabView APIs this year get closer, they come with other design baggage I'm not sold on yet. If you've already got an AppKit implementation, just drop that into SwiftUI land via the representable APIs. There are many places in SwiftUI that will get you 80% of the way to a great user experience, but the other 20% requires a fully bespoke solution that won't resemble the system provided UIs or support accessibility considerations. Why it's taken over 2 years to add the ability to drag things between sections I'll never know. Probably deprioritized.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’24
Reply to Loading object on NSItemProvider is delayed until drop exit
The documentation indicates that you should use performDrop to load from the item provider. enter and exit is only to indicate that a drag operation is targeting a view.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Is it intended for onchange to work with let properties?
I think it will be called on re-build if the identity of the view is the same, so SwiftUI considers them the ”same”
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Page-Curl Shader -- Pixel transparency check is wrong?
:facepalm: I needed to call .compositingGroup() before applying the .layerEffect. I'm gonna go lie down.
Topic: Graphics & Games SubTopic: Metal Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to [NewbQs] Is this possible with AppIntentDomains?
Bump? Any framework engineers know how to use this stuff?
Replies
Boosts
Views
Activity
Sep ’24
Reply to Open an specific view or sheet of the app from a control widget button
I think you need to explore “deep linking” solutions in your app. That’s the concept of entering the application at a screen lower than the first view. I chose to solve it with a singleton but I think there’s a new @Dependency you can use these days.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Sequoia Group Container for Mac Catalyst Apps
@DTS Engineer Non-Catalyst apps deployed via the Mac App Store may also use an iOS-style app group name (group.*) as long as that group is registered to the app’s team. This is the first criterion mentioned in the release notes (“the app is deployed through Mac App Store”). Does this apply for dev-builds running directly from Xcode? Like, if a build from Xcode is prompting users to "Allow" data from other apps, will it still prompt if it's installed from the mac app store? My macAppStore app is prompting me to allow. It's using group.* because it used to be a catalyst app.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to [iOS18] QLPreviewController - No more swipe to dismiss?
Workaround: Assign a delegate and implement: func previewController(_ controller: QLPreviewController, transitionViewFor item: QLPreviewItem) -> UIView? { UIView() } If anyone at Apple would like this fixed, please file a radar.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to [iOS 18] Image views on widget appear blank when in tint-mode.
:facepalm: Just needed that extra 5 minutes of search-fu. .widgetAccentedRenderingMode(WidgetAccentedRenderingMode.fullColor
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to SwiftUI Navbar on VisionOS like the photos app?
FB14172673
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to SwiftUI Navbar on VisionOS like the photos app?
Any framework devs have an answer? I read that there was supposed to be a larger presence on the forums this summer.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to No containerBackground content on Widget in iOS 18 tinted home screen style
Discovered that this is also happening to my heavily-image based widgets. Is there a new API in iOS18 to account for this? I see that the Photos app widget appears to correctly tint the displayed images.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to Selection in new iOS 18 Container APIs?
It seems that I can simulate selection by tracking it all myself, but I don’t think I can inform the contextMenu closure to perform the nice aggregation animation that users are used to. Maybe I’m missing something or maybe I gotta wait a year+
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jun ’24
Reply to OutlineView in SwiftUI
I say don't bother. While the SwiftUI framework makes things that resemble an OutlineView, they fall very very far short of the flexibility offered by the Appkit and UIKit frameworks. Notably, if you want users to be able to rearrange the items between parent / grandparent items, beware. You will not be able to do so in a way that users find intuitive, if at all, in pure SwiftUI. I requested the ability to be able to drag items from one SwiftUI ForEach to another after WWDC22 revealed no improvements. (FB10064943). For me, this inhibits making a rock-solid sidebar, and while the TabView APIs this year get closer, they come with other design baggage I'm not sold on yet. If you've already got an AppKit implementation, just drop that into SwiftUI land via the representable APIs. There are many places in SwiftUI that will get you 80% of the way to a great user experience, but the other 20% requires a fully bespoke solution that won't resemble the system provided UIs or support accessibility considerations. Why it's taken over 2 years to add the ability to drag things between sections I'll never know. Probably deprioritized.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to where is macOS APIs including user space file system support?
FSKit but it’s not documented yet and there’s no sessions about it.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to View count of open SecurityScoped Resources?
@DTS Engineer Please also file a feedback. I don't get paid to do so, and my batting average for "suggestion" feedbacks is dismal. 13812072
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’24