MBCountryFilter

@objc
public protocol MBCountryFilter : AnyObject

Protocol used to describe a country filter used in country selection view controller. Use it to filter countries you want to show your users.

  • Filter’s an array of countries, create a new array of fitlered countries based on the filter implemented in the method

    Declaration

    Swift

    @objc
    func filter(countries: [MBCountry]) -> [MBCountry]

    Parameters

    countries

    array of countries

    Return Value

    filtered array of countries