bloomLog

고정 헤더 영역

글 제목

메뉴 레이어

bloomLog

메뉴 리스트

  • 홈
  • 태그
  • 분류 전체보기 (28)
    • iOS (19)
      • RxSwift (14)
      • Swift (4)
    • Temporary (2)
    • 개발일기 (4)
    • 네이버 부스트캠프 (1)

검색 레이어

bloomLog

검색 영역

컨텐츠 검색

iOS/RxSwift

  • [RxSwift] Debugging & KVO

    2025.01.21 by kimrindev

  • [RxSwift] Playground & Error Handling

    2025.01.08 by kimrindev

  • [RxSwift] Infallible

    2025.01.03 by kimrindev

  • [RxSwift] Sharing Subscription and the share Operator

    2024.12.26 by kimrindev

  • [RxSwift] Creating an Observable that performs work

    2024.12.24 by kimrindev

  • [RxSwift] Creating your own Observable (aka observable sequence)

    2024.12.22 by kimrindev

  • [RxSwift] Implicit Observable Guarantees

    2024.12.21 by kimrindev

  • [RxSwift] Disposing

    2024.12.18 by kimrindev

[RxSwift] Debugging & KVO

Debugging Compile ErrorsWhen writting elegant RxSwift/RxCocoa code, you are probably relying heavily on the compiler to deduce types of Observables. This is one of the reasons why Swift is awesome,but it can also be frustrating sometimes. RxSwift/RxCocoa 코드를 작성할때, 컴파일러가 Observable의 타입을 유추하도록 크게 의존하게 됩니다. 이는 Swift가 멋진이유중 하나이지만, 때론 좌절감을 줄수도 있습니다.(아마 타입 추론과 연관된 얘기인듯? ) RxSwift는 클로저와 제네릭을 자주사용함, 이로인..

iOS/RxSwift 2025. 1. 21. 22:37

[RxSwift] Playground & Error Handling

PlaygroundsIf you are unsure how exactly some of the operators work, playgrounds contain almost all of the operators already prepared with small examples that illustrate their behavior.RxSwift의 연산자(operators)가 정확히 어떻게 작동하는지 확실하지 않다면, Playgrounds에서 제공되는 작은 예제를 확인할 수 있습니다.Playgrounds에는 **거의 모든 연산자에 대한 예제**가 준비되어 있으며, 이를 통해 연산자의 동작을 쉽게 이해할 수 있습니다.  To use playgrounds, please open Rx.xcworkspace, bu..

iOS/RxSwift 2025. 1. 8. 23:05

[RxSwift] Infallible

Infallinble is another flavor of `Observable` which is identical to it, but it's guaranteed to never fail and thus emit error. This means that when creating your own Infallible (using Infallible.create or one of the method mentioned in "Creating your first Observable"), you will not be allowed to emit errors.   Infallible은 Observable의 또 다른 유형 으로, Observable과 동일하지만 절대 실패하지 않으며, 에러를 방출할수 없습니다. 즉,I..

iOS/RxSwift 2025. 1. 3. 21:00

[RxSwift] Sharing Subscription and the share Operator

But what if you want that multiple observers share events (elements) from only one subscription? 만약 여러 Observer가 하나의 구독에서 생성된이벤트(요소) 를 공유하도록 만들고 싶다면 어떻게 해야할까요?   There are two things that need to be defined   1. How to handle past elements that have been recevied before the new subscriber was interested in observing them (replay latest only, replay all, replay last n). 2. How to decide when to f..

iOS/RxSwift 2024. 12. 26. 21:00

[RxSwift] Creating an Observable that performs work

Ok, now something more interesting. Let's create that `interval` operator that was used in previous examples. 이제 조금더 흥미로운 작업을 해보겠습니다. 이전 예제에서 사용된 interval 연산자를 직접 구현해보겠습니다. This is equivalent of actual implementation for dispatch queue schedulers func myInterval(_ interval: DispatchTimeInterval) -> Observable { return Observable.create { observer in print("Subscribed") // 글로벌 큐에..

iOS/RxSwift 2024. 12. 24. 21:10

[RxSwift] Creating your own Observable (aka observable sequence)

Observable 생성의 핵심개념 There is one crucial thing to understand about observables.observable에 대해서 알아야할 중요한점이 하나 있습니다. When an observable is created, it doesn't perform any work simply because it has been created. observable이 생성된다고 해서 곧바로 작업을 수행하는것은 아닙니다. 지연실행(Lazy execution) 방식으로 동작하고 단순히 작업이 어떻게 수행될지 정의하는 객체일뿐 생성만으로는 어떠한 작업도 실행되지 않으며 Observer가 구독할때 비로소 시작됨  observable은 지연 실행의 특성을 가집니다.  단순히 생성하는 것..

iOS/RxSwift 2024. 12. 22. 21:10

[RxSwift] Implicit Observable Guarantees

암묵적인 Observable 보장There is also a couple of additional guarantees that all sequence producers (`Observable`s) must honor.모든 시퀀스 생성자(Observable)는 반드시 준수해야 하는 몇 가지 추가적인 보장이 있습니다. It doesn't matter on which thread they produce elements, but if they generate one element and send it to the observer `observer.on(.next(nextElement))`, they can't send next element until `observer.on` method has finished..

iOS/RxSwift 2024. 12. 21. 21:10

[RxSwift] Disposing

There is one additional way an observed sequence can terminate. When we are done with a sequence and we want to release all of the resources allocated to compute the upcoming elements, we can call dispose on a subscription.Here is an example with the interval operator. 관찰되는 시퀀스가 종료되는 또 다른 방법이 있습니다. 시퀀스 작업이 끝났고, 다가올 요소들을 계산하는 데 할당된 모든 리소스를 해제하려는 경우, 구독(subscription)에서 dispose를 호출할 수 있습니다. 다음은 int..

iOS/RxSwift 2024. 12. 18. 21:40

추가 정보

인기글

최신글

페이징

이전
1 2
다음
TISTORY
bloomLog © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바