-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vertical_parameter_alignment_on_call shouldn't trigger after blocks #1630
Comments
I personally quite like the new format of UIView.animate(
withDuration: 0.4,
animations: {
blurredImageView.alpha = 1
},
completion: { _ in
self.hideLoading()
}
) However, what is problematic is last argument closures: transition(
from: fromController,
to: toController,
duration: 0.75,
options: options.union([.curveEaseInOut]),
animations: {
toController.view.snp.makeConstraints { make in
make.edges.equalToSuperview()
}
}
) { _ in
fromController.removeFromParentViewController()
toController.didMove(toParentViewController: self)
self.changeRightBarButtonItem(to: newRightButton)
} If I do indent the |
Here's another erroneous case: collectionView?.performBatchUpdates({ [weak self] in
guard let strongSelf = self else { return }
strongSelf.performChanges()
},
completion: { [weak self] (_) in
guard let strongSelf = self else { return }
strongSelf.delegate?.collectionViewBatchUpdaterDidCompleteBatchUpdates?(strongSelf)
}
) As in my previous example, moving the first closure to a newline triggers the An argument label cannot be added to the first closure argument as this is a UIKit function which is exposed in Swift as |
The text was updated successfully, but these errors were encountered: