diff --git a/sample-swift/SendBird-iOS/Chatting/ChattingView.swift b/sample-swift/SendBird-iOS/Chatting/ChattingView.swift index b0cbcb0..64a3bd8 100644 --- a/sample-swift/SendBird-iOS/Chatting/ChattingView.swift +++ b/sample-swift/SendBird-iOS/Chatting/ChattingView.swift @@ -37,7 +37,7 @@ class ChattingView: ReusableViewFromXib, UITableViewDelegate, UITableViewDataSou var stopMeasuringVelocity: Bool = true var initialLoading: Bool = true - var delegate: (ChattingViewDelegate & MessageDelegate)? + weak var delegate: (ChattingViewDelegate & MessageDelegate)? @IBOutlet weak var typingIndicatorContainerViewHeight: NSLayoutConstraint! @IBOutlet weak var typingIndicatorImageView: UIImageView!