I have to implement a logic for including a giant amount of numbers into the Name Listing Extension.
I take advantage of this perform for producing and including numbers:
func generatePhoneNumbers(from sample: String, to context: CXCallDirectoryExtensionContext) {
func generate(present: String, index: Int) {
if index == sample.rely {
if let quantity = Int64(present) {
context.addBlockingEntry(withNextSequentialPhoneNumber: quantity)
}
return
}
let char = sample[pattern.index(pattern.startIndex, offsetBy: index)]
if char == "#" {
for digit in 0...9 {
generate(present: present + String(digit), index: index + 1)
}
} else {
generate(present: present + String(char), index: index + 1)
}
}
// Begin technology
generate(present: "", index: 0)
}
This method permits me so as to add most 2_000_000 numbers however I would like extra. After the 2000000th quantity I see an error
maximumEntriesExceeded
How might I load extra? Are there any methods to broaden the extension capability?