Coder Social home page Coder Social logo

evdmello / mvvm-with-rxswift-mentoring-008 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from essentialdevelopercom/mvvm-with-rxswift-mentoring-008

0.0 0.0 2.0 566 KB

Project and source code of the iOS Dev Mentoring #008 - Test-driven MVVM with RxSwift

Home Page: https://www.essentialdeveloper.com

License: MIT License

Swift 98.64% Ruby 1.36%

mvvm-with-rxswift-mentoring-008's Introduction

iOS Dev Mentoring #008 - Test-driven MVVM with RxSwift

Project and source code of the iOS Dev Mentoring #008 - Test-driven MVVM with RxSwift.


Challenge

Ready to practice and test your skills? Fork the repo and test-drive these extra functionalities:

  1. Prevent suggestion requests for empty query strings.

  2. Return to 'All fields' state when the keyboard is dismissed (via the return key).

  3. When a suggestion is selected:

    • Update the fields according to the suggestion values (if any).
    • There might be a running suggestion request, in which case you should stop/ignore it.
  4. The suggestion service may fail, but we don't want to bother the user with any error messages because suggestions are not a critical part of the flow, and there's nothing they can do about it. You need to ignore suggestion service errors, so they don't propagate in the stream.

  5. As you type in fields that receive suggestions, many async requests will be fired to the suggestions service (one for each character typed). But we want only the latest one to complete (the latest text entered by the user). So, you need to stop/ignore previous requests.

  6. Validation:

    • IBAN, Tax number, and Bank name are mandatory fields. So, you need to add Field validation and show formatted errors in the UI.
    • Add a right navbar button to submit the form. The button should be enabled when all fields are valid and disabled when any field is invalid.
  7. Load bank name from another service based on the IBAN number

    • Request every time IBAN changes and is valid. But we don't want to override user input, so only request when the bank name is empty.
    • Stop request when the user starts typing in the bank name field to avoid overriding user input.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.