-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
similar issue
In my case, I forced setNeedLayout after textNode attributedText value with a few sec delay
Observable.just(NSAttributedString(string: "test")
.delay(2.0, scheduler: MainScheduler.asyncInstance) // a few sec delay
.subscribe(onNext: { [weak self] value in
self?.textNode.attributedText = value // update attributedText (data)
self?.setNeedsLayout() // call setNeedsLayout
}
.disposed(by: disposeBag)
Texture 2.6 is correctly work like this picture
But, I got unwanted UI in Texture 2.7 like this picture
I check frame value from debugger
I found that UITableViewCellContentView frame isn't equal with ASCellNode frame
So, just update ASCellNode frame with UITableViewCellContentView frame on didEnterVisibleState like this code
override func didEnterVisibleState() {
super.didEnterVisibleState()
self.frame = self.view.superview?.frame ?? self.frame
}
Metadata
Metadata
Assignees
Labels
No labels