• Living in The Netherlands (what was I thinking) • Freelance iOS consultant • Currently working at Nederlandse Spoorwegen frederik jacques - @thenerd_be 3
names.asObservable() .subscribe(onNext: { (theNames) in print(theNames) }) names.value.append("Tom") names.value.append("Spencer") frederik jacques - @thenerd_be 29
current one) let nameSubject = PublishSubject<String>() • Add data on the stream with onNext method nameSubject.onNext("Frederik") frederik jacques - @thenerd_be 30
value let nameSubject = BehaviorSubject<String>(value: "Frederik") • Add data on the stream with onNext method nameSubject.onNext("Steven") frederik jacques - @thenerd_be 33
specified in the buffer from earlier events let nameSubject = ReplaySubject<String>.create(bufferSize: 2) • Add data on the stream with onNext method nameSubject.onNext("Frederik") frederik jacques - @thenerd_be 35
they don't get deallocated within the local scope of a function or get properly disposed when you class gets deallocated frederik jacques - @thenerd_be 38