janlionly / ObjectTracker

Detecting an object deallocing which proivdes a closure callback.

Home Page:https://github.com/janlionly/ObjectTracker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ObjectTracker

Version Carthage Compatible License Platform Swift

Description

ObjectTracker which is detecting an object's deallocing, when occurs, it proivdes a closure callback. Compatible with both Swift and Objective-C.

Installation

CocoaPods

pod 'ObjectTracker'

Carthage

github "janlionly/ObjectTracker"

Swift Package Manager

.package(url: "https://github.com/janlionly/ObjectTracker.git", .upToNextMajor(from: "0.0.1")),

Usage

// your detecting ctrl
ObjectTracker.trackObject(ctrl) { (ctrl) in
   print("============= \(ctrl) deinit =============")
}

Requirements

  • iOS 9.0+
  • Swift 4.2 to 5.2

Author

Visit my github: janlionly
Contact with me by email: janlionly@gmail.com

Contribute

I would love you to contribute to ObjectTracker

License

ObjectTracker is available under the MIT license. See the LICENSE file for more info.

About

Detecting an object deallocing which proivdes a closure callback.

https://github.com/janlionly/ObjectTracker

License:MIT License


Languages

Language:Shell 32.8%Language:Swift 28.2%Language:Objective-C 26.4%Language:Ruby 12.6%