no message

This commit is contained in:
Peter 2018-09-07 02:08:09 +03:00
parent b1d6217dd7
commit def73a2713

View File

@ -441,7 +441,7 @@ private func traceViewVisibility(view: UIView, rect: CGRect) -> Bool {
if view.window == nil {
return false
}
if let index = siblings.firstIndex(of: view.layer) {
if let index = siblings.index(where: { $0 === view.layer }) {
let viewFrame = view.convert(rect, to: superview)
for i in (index + 1) ..< siblings.count {
if siblings[i].frame.contains(viewFrame) {