Skip to content

Commit

Permalink
Fix a retain cycle between RichTextView and its delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytonyli committed Jul 11, 2023
1 parent db15a47 commit 901801b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import UniformTypeIdentifiers


@objc open class RichTextView: UIView, UITextViewDelegate {
@objc open var dataSource: RichTextViewDataSource?
@objc open var delegate: RichTextViewDelegate?
@objc open weak var dataSource: RichTextViewDataSource?
@objc open weak var delegate: RichTextViewDelegate?


// MARK: - Initializers
Expand Down

0 comments on commit 901801b

Please sign in to comment.