Coder Social home page Coder Social logo

tcagithubsearch's Introduction

TCAGithubSearch TCA v1.0.0

TCA Github Search Example App

Let's Swift 2022 워크샵 402C 영상을 참고하여 제작했습니다.

  • 기본적인 프로젝트 셋팅입니다.
  • SwiftUI와 MVVM 패턴으로 기본적인 feature를 구성합니다.
  • SearchStore를 만들어 View와 연결합니다.
  • @BindingStateBindableAction/BindingAction을 사용하여 양방향 데이터 바인딩을 구현합니다.
  • .continuousClock을 활용하여 바인딩된 keyworddebounce를 추가합니다.
  • search action 횟수를 requestCount에 표출합니다.
  • 테스트 코드에 TestClock을 추가하여 debounce를 구현합니다.
  • 네트워킹을 위한 SearchClient를 만들어 SearchStore에 주입합니다.
  • SearchStore에서 API를 fetch하여 succssfailure케이스를 작성합니다.
  • 받아 온 데이터를 화면에 노출합니다.
  • 테스트 코드를 위한 mock을 SearchClientSearchEntity에 작성합니다.
  • 위의 내용을 테스트 코드로 작성합니다.
  • 현재 키워드와 이전 키워드를 화면에 띄우기 위해 seach action이 실행될 때 Effect.concatenate()를 사용하여 두 개의 Effect를 합칩니다.
  • 위의 내용을 테스트 코드로 작성합니다.

tcagithubsearch's People

Contributors

allie0147 avatar

Watchers

 avatar

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.