How to use Swift in iOS programs for WiFi/HomeKit networking?

How to use Swift in iOS programs for WiFi/HomeKit networking?
Currently, our development documentation provides the Objective-C process for iOS. Users need to convert it to Swift language on their own.