mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
15 lines
358 B
Swift
15 lines
358 B
Swift
import UIKit
|
|
|
|
import CommonCorePublic
|
|
|
|
final class VisibilityTrackingCardView: UIView, VisibleBoundsTrackingContainer {
|
|
var blockView: VisibleBoundsTrackingView? {
|
|
didSet {
|
|
oldValue?.removeFromSuperview()
|
|
blockView.map { addSubview($0) }
|
|
}
|
|
}
|
|
|
|
var visibleBoundsTrackingSubviews: [VisibleBoundsTrackingView] { blockView.asArray() }
|
|
}
|