Code Monkey home page Code Monkey logo

musicdiscover's Introduction

MusicDiscover

Discover your music!

First time using RxSwift and RxCocoa. ๐Ÿคฉ

  • Learned RxSwift and RxCocoa,

  • Made MVVM structures (Model, view, viewModel

  • Made Music models,

  • Made API Searvice then checked it works well with Music models,

  • Defined ViewModel input/output (Abstraction of the view),

  • Made Views

  • UICollectionView

  • UICollectionViewCell

  • UISearchController

  • Binded View and ViewModel

  • Fetch Musics

  • Pagination

  • SearchKeyword on UISearchController's searchBar

  • UIActivityIndicatorView animation

  • searched results shuffle

  • View settings

  • Corner Radius or the item

  • Navigation title

  • SearchBar icon changing ( icon should display an activityIndicator while fetching )

This is the first time using RxSwift and RxCocoa. It was a really new way of seeing bind and data as a flow (sequence). It was a fun time to learn and use RxSwift and RxCocoa.

It was surprisingly simple that bind data (Music array) of the ViewModel to collectionview. ๐Ÿ˜„

It is a little bit tricky making pagination and request up to 5. It took a long time to wrote calculating the last indexPath.item with music array and request the next page.

The result of Internet research on how to change the search bar icon was long and complex. If the results were the same, I thought it would be better to try another way. So I chose to wrap the view up to show the activity indicator, and implemented it in a few simple lines of code. (yeah!)

musicdiscover's People

Contributors

jagpavv avatar

Stargazers

Derrick avatar

Watchers

James Cloos avatar  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.