CHANGELOG

4.1.1

4.1.0

4.0.5

4.0.4

4.0.3

4.0.2

4.0.1

4.0.0

Breaking changes

Fixes

3.0.1

Bug Fixes

3.0.0

Breaking Changes

2.5.1

2.5.0

2.4.0

2.3.0

While the NibLoadable protocol is adapted to views loaded from XIB but that are set as the root view of the XIB, this new NibOwnerLoadable protocol is adapted to view loaded from XIB too, but that are set as the XIB's File's Owner.

2.2.1

2.2.0

This parameter is only needed if you can't write … as MyCell (to let Swift infer the cell type from the return type), which might be the case for example when your cell class is stored in a variable:

let cellType: Any.Type = self.cellTypeForIndexPath(indexPath)
// Can't do this in this case (because cellType is a variable):
let cell = tableView.dequeueReusableCell(indexPath: indexPath) as cellType  // compiler error
// But now we can use that alternate way for such cases:
let cell = tableView.dequeueReusableCell(indexPath: indexPath, cellType: cellType)

But if you know the type at compile time, you can omit the cellType parameter and still do this, letting the return type infer it for you:

let cell = tableView.dequeueReusableCell(indexPath: indexPath) as MyCell

2.1.1

2.1.0

There is now a dedicated NibLoadable protocol which can be used on any arbitrary UIView (even non-"reusable" views) to load it from a XIB (via the loadFromNib() function injected via the protocol extension).

_The NibReusable protocol still exists for reusable cells but is now declared just as a combination of both the Reusable and NibLoadable protocols.

2.0.0

1.1.0

1.0.0

0.1.0

Initial version. Only one Reusable protocol No demo project, but has a podspec and a Package.swift