Configurable

public protocol Configurable

Usually views might conform to this protocol so it’s possible to pass view model without typecasting.

  • Pass view model to view so it can configure itself.

    Declaration

    Swift

    func configure(viewModel: Any)