Reactive Programming with Swift 4 : Build asynchronous reactive applications with easy-to-maintain and clean code using RxSwift and Xcode 9.
RxSwift belongs to a large family of Rx implementations in different programming languages that share almost identical syntax and semantics. Reactive approach will help you to write clean, cohesive, resilient, scalable, and maintainable code with highly configurable behavior.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2018.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Migrating from Swift 3 to Swift 4; What's new in Swift 4?; Setting up the environment; Whatâ#x80;#x99;s changed?; Changes/improvements in Dictionary; Grouping initializer; Key-based subscript with default value; Convert tuples to Dictionary; Convert arrays to Dictionary; Resolving duplicates; Reserving capacity; Changes/improvements in Strings; Bid bye to string.characters; String protocol; Changed interpretation of grapheme clusters; Access modifiers; What's new; JSON encoding and decoding.
- Multiline String literalsSmart key paths; One sided ranges; Pattern matching with one sided ranges.; swap versus swapAt; Improved NSNumber; Directly access unicode scalars of characters; Migrating to Swift 4; Preparation before migration; Swift migration assistant; Swift 4 migration changes overview; SDK changes; Notable special cases; New String; Differentiating between single-tuple and multiple-argument function types; Adding tuple destructuring; Default parameter values must be public; After migration; Known migration issues; Using Carthage/CocoaPods projects; Summary.
- Chapter 2: FRP Fundamentals, Terminology, and Basic Building BlocksFunctional reactive programming; What is functional reactive programming (FRP)?; Imperative programming; Functional programming; Reactive programming; Basic building blocks; Event streams; State; Side effects; Immutability; RxSwift foundation; Reactive extensions; Observable; Subject; Marble diagrams; Schedulers; Railway-oriented programming; Summary; Chapter 3: Set up RxSwift and Convert a Basic Login App to its RxSwift Counterpart; RxSwift in action; Let's build the environment first; Setting up the environment.
- RxSwift with CocoaPodsInstalling RxSwift; Installing RxSwift with Carthage; Let's get started â#x80;#x93; The Login page; Setting up; Steps to set up; Functional programming to the rescue; Summary; Chapter 4: When to Become Reactive?; Creating and subscribing to Observables; Project setup; Getting started; Different types of subject; PublishSubject in action; BehaviorSubject in action; ReplaySubject in action; Variable in action; Understanding traits and its types; What are traits?; Different types of trait; The single trait; The completable trait; The maybe trait; Summary.
- Chapter 5: Filter, Transform, and SimplifyWorking with events using operators; Environment setup; Transforming operators; flatMap and flatMapLatest in action; Scan, reduce, and buffer; Scan; Buffer; Filtering operators; The filter operator; The distinctUntilChanged operator; The takeWhile operator; Summary; Chapter 6: Reduce by Combining and Filtering and Common Trade Offs; Combining and filtering Observable sequences; Project setup; Concatenating and prefixing; Merging; Combining elements of different types; Introducing zip; Performing side effects; doOn in action; Setting the project.