MBCountry
@objc
public class MBCountry : NSObject, MBLocalizable
                Class containing country code for countries and country providers
- 
                  
                  
Country code that matches the values found in
NSLocale.isoCountryCodeDeclaration
Swift
@objc public let countryCode: String - 
                  
                  
MBCountryProviderinstance represents all the documents that are supported for this countryDeclaration
Swift
@objc public let countryProvider: MBCountryProvider - 
                  
                  
Localized country name based on the country code value
Declaration
Swift
@objc public var localized: String { get } - 
                  
                  
Initializes the country using the current device region code.
Declaration
Swift
@objc public convenience override init() - 
                  
                  
Initialize country using one of the
MBSupportedCountryenum valuesDeclaration
Swift
@objc public convenience init(supportedCountry: MBSupportedCountry)Parameters
supportedCountrysupported country
 - 
                  
                  
Initialize country using a country code
Declaration
Swift
@objc public convenience init(countryCode: String)Parameters
countryCodecountryCode
 - 
                  
                  
Intialize country using a country code and country document provider
Declaration
Swift
@objc public required init(countryCode: String, countryProvider: MBCountryProvider)Parameters
countryCodecountry code
countryProvidercountry document provider
 - 
                  
                  
Used to compare
MBCountrytype andMBSupportedCountrytype Needed becauseMBSupportedCountry.countryCodevar inMBSupportedCountrycan’t be exposed to objcDeclaration
Swift
@objc public func isEqual(toSupportedCountry supportedCountry: MBSupportedCountry) -> BoolParameters
supportedCountryMBSupportedCountry
Return Value
true if countryCodes match otherwise false
 - 
                  
                  
Returns all countries provided by
NSLocale.isoCountryCodesDeclaration
Swift
@objc public class func getAllCountries() -> [MBCountry]Return Value
all countries defined in NSLocale.isoCountryCodes
 
            View on GitHub
          
            Install in Dash
          
      MBCountry Class Reference