Address

public struct Address : Codable, Hashable

Address separated by the components

  • Undocumented

    Declaration

    Swift

    public var houseNumber: String?
  • Undocumented

    Declaration

    Swift

    public var street: String?
  • Undocumented

    Declaration

    Swift

    public var neighborhood: String?
  • Undocumented

    Declaration

    Swift

    public var locality: String?
  • Undocumented

    Declaration

    Swift

    public var postcode: String?
  • Undocumented

    Declaration

    Swift

    public var place: String?
  • Undocumented

    Declaration

    Swift

    public var district: String?
  • Undocumented

    Declaration

    Swift

    public var region: String?
  • Undocumented

    Declaration

    Swift

    public var country: String?
  • Undocumented

    Declaration

    Swift

    public var postalAddress: CNPostalAddress { get }
  • Address format style manage address string representation

    See more

    Declaration

    Swift

    public enum AddressFormatStyle
  • Build address string in requested style. All empty components will be skipped. Separator “, ” would be used to join all the components. House number will separated with “ ” separator For example, for .short style: “50 Beale St, 9th Floor” and for .medium – “50 Beale St, 9th Floor, San Francisco, California”

    Declaration

    Swift

    public func formattedAddress(style: AddressFormatStyle) -> String?

    Parameters

    style

    address style to be used

    Return Value

    Address string