mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-07 23:03:35 +00:00
no message
This commit is contained in:
parent
b1d6217dd7
commit
def73a2713
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user