Merge pull request #2920 from AlphaWallet/fix-swiftlint-warnings

Fix: SwiftLint warnings
pull/2924/head
Hwee-Boon Yar 3 years ago committed by GitHub
commit d149f54f3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      AlphaWallet/Settings/Coordinators/HelpUsCoordinator.swift
  2. 1
      AlphaWallet/Settings/ViewControllers/EnabledServersViewController.swift
  3. 6
      AlphaWallet/Tokens/Views/TextField.swift

@ -47,7 +47,7 @@ class HelpUsCoordinator: Coordinator {
}
//Intentionally hold strong reference to self for UIAlertAction to work. Making `self` weak requires current coordinator to be retained; too easy to forgot
let subscribeAction = UIAlertAction(title: R.string.localizable.emailListPromptSubscribeButtonTitle(), style: .default, handler: { action in
let subscribeAction = UIAlertAction(title: R.string.localizable.emailListPromptSubscribeButtonTitle(), style: .default, handler: { _ in
guard let email = controller.textFields?.first?.text else { return }
EmailList(listSpecificKey: Constants.Credentials.mailChimpListSpecificKey).subscribe(email: email)
})

@ -92,7 +92,6 @@ class EnabledServersViewController: UIViewController {
switch result {
case .success:
strongSelf.markForDeletion(server: server)
break
case .failure:
break
}

@ -151,12 +151,12 @@ class TextField: UIControl {
}
var placeholder: String? {
set {
textField.placeholder = newValue
}
get {
textField.placeholder
}
set {
textField.placeholder = newValue
}
}
init() {

Loading…
Cancel
Save