RxAnimated icon indicating copy to clipboard operation
RxAnimated copied to clipboard

Memory leak

Open StefaniOSApps opened this issue 3 years ago • 0 comments

Hi, I used v0.9.0 with RxSwift 6.2 on latest xCode.

i have a memory leak by using:

Observable
   .combineLatest(
      foo1.asObservable(),
      foo2.asObservable()
   )
   .map { string in
      NSMutableAttributedString(string: string)
   }
   .bind(to: rx.animated.fade(duration: 0.1).attributedText)
   .disposed(by: bag)

I can solve this leak with:

Observable
   .combineLatest(
      foo1.asObservable(),
      foo2.asObservable()
   )
   .map { string in
      NSMutableAttributedString(string: string)
   }
   .bind(to: rx.attributedText)
   .disposed(by: bag)

how do you think?

StefaniOSApps avatar Nov 28 '21 21:11 StefaniOSApps