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
727
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
359
Dec ’20
Preview in Canvas not working due to 'duplication of library code'
In my project I use several third party Swift-packages and a single target. Everything builds and runs fine. However SwiftUI-views don't show any previews. When I press 'Resume' and 'Diagnostics' on the canvas it says: Swift package target 'CNIOSHA1' is linked as a static library by 'HAP' and 2 other targets. This will result in duplication of library code.
9
0
2.2k
Jun ’20