Rename method
This commit is contained in:
parent
545186da96
commit
b3eef51a9d
6 changed files with 8 additions and 8 deletions
|
|
@ -39,7 +39,7 @@ class CredentialProviderViewController: ASCredentialProviderViewController {
|
|||
credentialProvider.identifier = serviceIdentifiers.first
|
||||
let url = serviceIdentifiers.first.flatMap { URL(string: $0.identifier) }
|
||||
passwordsViewController.navigationItem.prompt = url?.host
|
||||
passwordsViewController.showPasswordsWithSuggstion(matching: url?.host ?? "")
|
||||
passwordsViewController.showPasswordsWithSuggestion(matching: url?.host ?? "")
|
||||
}
|
||||
|
||||
override func provideCredentialWithoutUserInteraction(for credentialIdentity: ASPasswordCredentialIdentity) {
|
||||
|
|
@ -57,7 +57,7 @@ class CredentialProviderViewController: ASCredentialProviderViewController {
|
|||
}
|
||||
credentialProvider.identifier = credentialIdentity.serviceIdentifier
|
||||
passwordsViewController.navigationItem.prompt = identifier
|
||||
passwordsViewController.showPasswordsWithSuggstion(matching: identifier)
|
||||
passwordsViewController.showPasswordsWithSuggestion(matching: identifier)
|
||||
}
|
||||
|
||||
@objc
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class PasswordsViewController: UIViewController {
|
|||
tableView.dataSource = dataSource
|
||||
}
|
||||
|
||||
func showPasswordsWithSuggstion(matching text: String) {
|
||||
func showPasswordsWithSuggestion(matching text: String) {
|
||||
dataSource.showTableEntriesWithSuggestion(matching: text)
|
||||
tableView.reloadData()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ class PasswordsTableDataSource: NSObject, UITableViewDataSource {
|
|||
return
|
||||
}
|
||||
|
||||
filteredPasswordsTableEntries = passwordTableEntries.filter { $0.match(text) }
|
||||
filteredPasswordsTableEntries = passwordTableEntries.filter { $0.matches(text) }
|
||||
showSuggestion = false
|
||||
}
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ class PasswordsTableDataSource: NSObject, UITableViewDataSource {
|
|||
}
|
||||
|
||||
for entry in passwordTableEntries {
|
||||
if entry.match(text) {
|
||||
if entry.matches(text) {
|
||||
suggestedPasswordsTableEntries.append(entry)
|
||||
} else {
|
||||
otherPasswordsTableEntries.append(entry)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue