Fixed divcomponents reset in playground

commit_hash:4847d019beb8a904968b0eee7e4f3bd5b49d66fb
This commit is contained in:
burstein
2024-12-27 19:10:12 +03:00
parent 438ed20baf
commit b314ac469b
2 changed files with 5 additions and 2 deletions
@@ -82,5 +82,3 @@ open class DivViewController: UIViewController {
divView.accessibilityIdentifier = identifier
}
}
private let cardId: DivCardID = "DivViewCard"
@@ -30,5 +30,10 @@ final class DivViewProvider {
.onAppear { [weak self] in
self?.jsonProvider.load(url: url)
}
.onDisappear { [weak self] in
self?.divKitComponents.reset(cardId: cardId)
}
}
}
let cardId: DivCardID = "DivViewCard"