SkillAgentSearch skills...

NetGuard

NetGuard is a lightweight native iOS network debugger. 🚀

Install / Use

/learn @batikansosun/NetGuard

README

<p align="center"> <img width="400" src="https://github.com/batikansosun/NetGuard/blob/main/NetGuardDemo/logo.png?raw=true"> </p> <p align="center"> <a title="Pod Version" href="https://cocoapods.org/pods/NetGuard"><img src="https://img.shields.io/badge/pod-v1.0-green"/></a> <a title="Swift Version" href="https://cocoapods.org/pods/NetGuard"><img src="https://img.shields.io/badge/Swift-v5-red"/></a> <a title="MIT LICENSE" href="https://github.com/batikansosun/NetGuard/LICENSE"><img src="https://img.shields.io/badge/LICENSE-MIT-lightgrey"/></a> <a title="Support" href="https://twitter.com/batikansosun"><img src="https://img.shields.io/badge/Twitter%20Support-%40batikansosun-yellow"/></a> <a title="Platform" href=""><img src="https://img.shields.io/badge/Platform-iOS-yellowgreen"/></a> <a title="Cocoapods" href="https://cocoapods.org/pods/NetGuard"><img src="https://img.shields.io/badge/Cocoapods-compatible-green"/></a> </p>

Preview

NetGuard NetGuard NetGuard NetGuard

Introduction

  • NetGuard is a lightweight native iOS network debugger.
  • NetGuard monitors and capture network requests.
  • NetGuard stores and lists what it has captured in readable, detailed and secure form.
  • NetGuard makes debugging fast and reliable.
  • Just shake iPhone and NetGuard will show.

Requirements

  • iOS 10.0+
  • Xcode 10+
  • Swift 4, 4.1, 4.2 and Swift 5

Installation

CocoaPods

target 'YourTargetName' do
    use_frameworks!
    pod 'NetGuard', :git => 'https://github.com/batikansosun/NetGuard.git', :tag => '2.0'
end

Usage

All you need is to call the "loadNetGuard" method in "didFinishLaunchingWithOptions" "AppDelegate". That's it

//import NetGuard
  func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
      NetGuard().loadNetGuard()
      return true
  }
//@import NetGuard;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [[NetGuard new] loadNetGuard];
}

Parameters

'enabled' default value is true. You don't need to setting up to 'true'. 'false' value disables network watching.

NetGuard.enabled = false

'shakeEnabled' default value is true. You don't need to setting up to 'true' for shake for showing request list UI.

NetGuard.shakeEnabled = false

You can disable shake with setting up to 'false' and you can call 'showNetGuard()' anywhere.

NetGuard().showNetGuard()

With 'blackListHosts' you can exclude requests you defined.

NetGuard.blackListHosts = ["example.com"]

Contributing

  • If you found a bug, please open an issue.
  • If you have a feature request, please start a new discussion.
  • If you want to contribute, please submit a pull request.

For all questions please start a new discussion

Made with ❤️ by Batikan Sosun

For more follow me on the Twitter Batikan Sosun

MIT License

NetGuard is available under the MIT license. See the <a href="https://github.com/batikansosun/NetGuard/blob/main/LICENSE">LICENSE file</a> for more info.

Related Skills

View on GitHub
GitHub Stars32
CategoryDevelopment
Updated4mo ago
Forks2

Languages

Swift

Security Score

92/100

Audited on Nov 15, 2025

No findings