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.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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?
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.