Skip to content

cozzin/DeinitObserver

Repository files navigation

DeinitObserver

Observe object's deinit from outside of object

πŸš€ Motivation

🧰 Setup

  1. In your Xcode project, navigate to File > Swift Packages > Add Package Dependancy...
  2. Paste the following into the URL field: https://github.com/cozzin/DeinitObserver

πŸ§‘β€πŸ’» Usage

import DeinitObserver

DeinitObserver(for: target) {
    print("target did deinit!")
}.observe()

About

πŸ‘€ Observe deinit from outside of object

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages