Post

Replies

Boosts

Views

Activity

Missing characteristics for Irrigation system
When I configure a 'Sprinkler' type accessory (with an 'Irrigation system' service as the primary service) in the Homekit Simulator or when I create the same accessory in code using the HAP and then add that accessory to the home app, some characteristics are missing. For instance the switch for setting the accessory 'Active'(enabled) doesn't show. When I use third party apps (like Eve or Home+) everything works as expected.
0
0
619
Jan ’23
SwiftUI-lifecyle and app properties
In a SwiftUI-lifecyle App I have two (viewless-)controllers that are owned by the App-struct itself. Within an app with a delegate-based-lifecyle I would have used 'NSApplication.shared.delegate' to get acces to the App (and the two properties in it). How do I accomplish the same with a SwiftUI-lifecyle?
1
0
274
Dec ’20
How to extend NSManagedObject in Swift
Hi, I created a Core Data model for a Swift Project and take full advantage of the auto-generated subclasses of NSManagedObject. However I would like now to extend those subclasses because my entities contain several transient attributes. How can I do that in Swift and keep the possibility to regenerate my NSManagedObjects if changes are made to the xcdatamodeld.
0
0
341
Jul ’20
Runtime error using example code for logging In XC12
When trying to add the example code from WWDC 2020 to my project I get dyld: lazy symbol binding failed: Symbol not found: _$s2os6LoggerVMa ... Expected in: /usr/lib/swift/libswiftos.dylib @available(OSX 10.16, *) let logger = Logger(subsystem: "com.example.Fruta", category: "giftcards") @available(OSX 10.16, *) @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate {     var window: NSWindow!     func applicationDidFinishLaunching(_ aNotification: Notification) {         logger.log("logged Message")
3
0
1.2k
Jun ’20
UUID always nil
Hi,In my Mac OS app I'm trying to create an UUID from a stringthe code is taken straight from the documentation but it returns nil every timeimport Foundation let test1 = UUID(uuidString: "E621E1F8-C36C-495A-93FC-0C247A3E6E5F") // Returns nil let test2 = UUID() //Works fineit works fine in a playground but not in my app.any ideas?
4
0
2.4k
Dec ’19