HomeKit completion block in Swift: Cannot convert the expression’s type ‘Void’ to type ‘String!’
The parameters for your completionHandler closure are reversed, they should be: (home: HMHome!, error: NSError!) Also note that you don’t need to specify the types for the parameters, since the method signature specified them for you – thus you can simply list the parameter names you want to use, and they will automatically be assured … Read more