Use SwiftFormat version 0.49.x and enable some new rules (#527)

This commit is contained in:
Danny Moesch 2021-12-28 02:57:11 +01:00 committed by GitHub
parent b62c5fa2e5
commit cdedff0d4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 139 additions and 126 deletions

View file

@ -14,9 +14,7 @@ class CredentialProviderViewController: ASCredentialProviderViewController {
PasscodeExtensionDisplay(extensionContext: extensionContext)
}()
private lazy var passwordsViewController: PasswordsViewController = {
(children.first as! UINavigationController).viewControllers.first as! PasswordsViewController
}()
private lazy var passwordsViewController: PasswordsViewController = (children.first as! UINavigationController).viewControllers.first as! PasswordsViewController
private lazy var credentialProvider: CredentialProvider = { [unowned self] in
CredentialProvider(viewController: self, extensionContext: extensionContext, afterDecryption: NotificationCenterDispatcher.showOTPNotification)

View file

@ -27,9 +27,7 @@ class PasswordsViewController: UIViewController {
return uiSearchController
}()
lazy var searchBar: UISearchBar = {
self.searchController.searchBar
}()
lazy var searchBar: UISearchBar = self.searchController.searchBar
override func viewDidLoad() {
super.viewDidLoad()