I am using this method to configure the Wi-Fi:
open func apply(_ configuration: NEHotspotConfiguration, completionHandler: (((any Error)?) -> Void)? = nil).
However, in actual usage, regardless of whether the connection succeeds or fails, the Error is always nil, which makes it impossible to determine whether the specified Wi-Fi has been successfully connected.