concept book manager in category ios

appears as: books manager, books mager
iOS Development with Swift

This is an excerpt from Manning's book iOS Development with Swift.

  • Instantiate the books manager in your new class:
    var booksManager = BooksManager()
    To inject the books manager into both view controllers, you’ll set up an Injectable protocol that both view controllers will adopt. Create the Injectable protocol in the TabBarController.swift file, with an inject method ready to pass in the books manager.
    protocol Injectable {
       func inject(data: BooksManager)
    }