Post

Replies

Boosts

Views

Activity

How do I debug SwiftUI AttributeGraph cycle warnings?
I'm getting a lot of AttributeGraph cycle warnings in my app. Is there any way to debug what's causing it? This is what shows up in the console: === AttributeGraph: cycle detected through attribute 11640 === === AttributeGraph: cycle detected through attribute 14168 === === AttributeGraph: cycle detected through attribute 14168 === === AttributeGraph: cycle detected through attribute 44568 === === AttributeGraph: cycle detected through attribute 3608 ===
1
0
4.2k
Jul ’20
Detect if the active keyboard on macOS has a physical `Fn` key in Swift
I want to use the Fn modifier key if available, and if not, offer the user a different modifier. But only offer it to users without a Fn key. Some external keyboard do not have a Fn key. Is there any way to detect whether the active keyboard has a physical Fn key? (I am not asking how to detect a Fn key press) I'm looking for a solution in Swift that works within a sandboxed app. I already tried asking on Stack Overflow.
0
1
640
May ’22
Request review without having a view controller?
SKStoreReviewController.requestReview() is deprecated in favor of AppStore.requestReview(in:). The problem is that AppStore.requestReview(in:) requires passing in a NSViewController, and in some contexts, this is not possible. For example, a menu bar app that only has a NSMenu when you click it. It has no NSViewController that could be passed in. How are we supposed to request a review for such apps? FB14887376
1
1
258
Aug ’24