@objcMembers public final class ObjectPool: NSObject
Handles the management of recyclable objects.
If a recycled object is available for re-use, that object is returned.
If not, a new object of the given type is instantiated.
NoteObjects obtained through this method should be recycled through
public func object<T>(forType type: T.Type) -> T where T: NSObject
An object of the given
prepareForReuse()on the object and stores it for re-use later.
NoteObjects recycled through this method should be obtained through
public func recycleObject(_ object: Recyclable)
Removes all recycled objects from memory.
public func removeAllRecycledObjects()