A network status diagnostic tool for iOS, compatible with DDKitSwift.
When making network requests, failures may occur due to device issues or website/server outages. This tool helps diagnose problems from multiple perspectives, including device network status, website accessibility and latency, Apple site connectivity, etc., to determine whether the issue lies with the user's device or the server.
- Detects network type (Wi-Fi / Cellular)
- IPv4 / IPv6 support
- DNS resolution issues
- Proxy / VPN configuration
- Low Data Mode detection
- Simulates HTTP requests to the specified website
- Performs ping tests to evaluate network speed
- Simulates requests to well-known sites like
apple.com
,baidu.com
, andaliyun.com
- Helps verify whether the device can access public websites normally
pod 'DDNetCheck'
DDNetCheck.shared.showVC(url: "https://api.yechan.cn")
DDNetCheck.shared.hideVC()
If you want to manually control the test view, you can use DDNetCheckVC
:
let vc = DDNetCheckVC(url: "https://www.yechan.cn")
vc.modalPresentationStyle = .fullScreen
self.present(vc, animated: true)