Skip to content

Commit

Permalink
Fixing #72
Browse files Browse the repository at this point in the history
  • Loading branch information
marmelroy committed Oct 3, 2016
1 parent c15aa2e commit dbf05d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PhoneNumberKit/PartialFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public class PartialFormatter {
weak var parser: PhoneNumberParser?
weak var regexManager: RegexManager?

convenience init() {
public convenience init() {
let phoneNumberKit = PhoneNumberKit()
self.init(phoneNumberKit: phoneNumberKit, defaultRegion: PhoneNumberKit.defaultRegionCode())
}

convenience init(phoneNumberKit: PhoneNumberKit, defaultRegion: String, withPrefix: Bool = true) {
public convenience init(phoneNumberKit: PhoneNumberKit, defaultRegion: String, withPrefix: Bool = true) {
self.init(regexManager: phoneNumberKit.regexManager, metadataManager: phoneNumberKit.metadataManager, parser: phoneNumberKit.parseManager.parser, defaultRegion: defaultRegion, withPrefix: withPrefix)
}

Expand All @@ -34,7 +34,7 @@ public class PartialFormatter {
}


var defaultRegion: String {
public var defaultRegion: String {
didSet {
updateMetadataForDefaultRegion()
}
Expand Down

0 comments on commit dbf05d3

Please sign in to comment.