将我的Xcode更新为10.2.1后,我收到此错误。编写以下代码的正确形式是什么。
private func findHairline() -> UIImageView? {
return navigationController?.navigationBar.subviews
.flatMap { $0.subviews }
.flatMap { $0 as? UIImageView }
.filter { $0.bounds.size.width ==
self.navigationController?.navigationBar.bounds.size.width
.filter { $0.bounds.size.height <= 2 }
.first
}