Perhaps I'm defining my closure wrong, but when defining a closure to work with a responsive label, the subsequent action execution attempts to pull a closure out of self.textStorage at memory address 0x00000
In this example, cell.containedView is a ResponsiveLabel, and hashtagResponder is an ivar defined as:
fileprivate var hashtagResponder: PatternTapResponder?
hashtagResponder = { [weak self] hashtag in
if let strongSelf = self, let hashtag = hashtag {
strongSelf.delegate?.didTapHashtag(name: hashtag, storySectionController: strongSelf)
}
}
cell.containedView.enableHashTagDetection(attributes: [NSForegroundColorAttributeName : UIColor.primaryBrand, RLTapResponderAttributeName : hashtagResponder! as AnyObject])

(lldb) po tapResponder
0x0000000000000000
This is not a reuse issue, because the controller that owns the PatternTapResponder is still in memory.
Any help is appreciated.
Perhaps I'm defining my closure wrong, but when defining a closure to work with a responsive label, the subsequent action execution attempts to pull a closure out of
self.textStorageat memory address0x00000In this example,
cell.containedViewis aResponsiveLabel, andhashtagResponderis an ivar defined as:This is not a reuse issue, because the controller that owns the
PatternTapResponderis still in memory.Any help is appreciated.