From a86802859a4465c45dd87adbb997ced0d07216ab Mon Sep 17 00:00:00 2001 From: Choi <365473321@qq.com> Date: Mon, 26 Sep 2022 13:56:23 +0800 Subject: [PATCH] Fix Issue #46 #trivial --- NSObject+Rx.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NSObject+Rx.swift b/NSObject+Rx.swift index 65386bb..7da09ab 100644 --- a/NSObject+Rx.swift +++ b/NSObject+Rx.swift @@ -28,7 +28,7 @@ public extension Reactive where Base: AnyObject { } } - set { + nonmutating set { synchronizedBag { objc_setAssociatedObject(base, &disposeBagContext, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC) }