diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b5f57c5..b08bfe5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ - **Add**: `LoggingPresenter`to present list of logs with ability of sharing it - **Add**: `TILogger` wrapper object to log events. +### 1.27.1 + +- **Fix**: Weak target reference in `RefreshControl` + ### 1.27.0 - **Add**: Tag like filter collection view diff --git a/TIUIElements/Sources/Views/RefreshControl/RefreshControl.swift b/TIUIElements/Sources/Views/RefreshControl/RefreshControl.swift index a78796fb..cadcfcb1 100644 --- a/TIUIElements/Sources/Views/RefreshControl/RefreshControl.swift +++ b/TIUIElements/Sources/Views/RefreshControl/RefreshControl.swift @@ -1,8 +1,10 @@ import UIKit open class RefreshControl: UIRefreshControl { + private var action: Selector? - private var target: NSObjectProtocol? + + private weak var target: NSObjectProtocol? // Handle .valueChanged event of refresh control public override func addTarget(_ target: Any?, action: Selector, for controlEvents: UIControl.Event) {